|
|
#1 | ||
|
FFR Player
Join Date: Mar 2005
Age: 34
Posts: 64
|
Ok, well I'm making a scrolling nav banner that is using this style. I can't seem to get it to scroll though, and when I launch it in a browser, it resizes itself to the window. I've uploaded the source file so you can see what I've done so far. I've only started using F8 since last night (7/22/06) and I don't know enough code or about the program to understand what's really going wrong. I do know that I get this error message:
**Error** Symbol=sliding_window, layer=pages, frame=1:Line 1: Clip events are permitted only for movie clip instances onClipEvent (load) { **Error** Symbol=sliding_window, layer=pages, frame=1:Line 6: Clip events are permitted only for movie clip instances onClipEvent (enterFrame) { I understand what this means, but if I move the code to anywhere but where it currently resides, then it won't work anyway. I got this far because of this tutorial. I've searched around on the flashkit.com forums and other sites and looked at dozens of similar posts, but haven't found any definite answers. I realize (now) that my code is not recommended for this type of thing. I need to know all the code to put in and where it goes. I'm not used to the code and what part is a variable and what's not. Help would be greatly appreciated.
__________________
Post on Net Neutrality: Quote:
Quote:
Last edited by glone; 07-24-2006 at 02:03 AM.. |
||
|
|
|
|
|
#2 |
|
FFR Player
|
You need to place that AS on the instance of sliding_pages named "easing". So, find sliding_window in your library, unlock the 'pages' layer, and click on the MovieClip in the center of the Stage.
Also, you need to give your buttons instance names or else the onRelease handlers will never fire. Naming them 'page1', 'page2' etc. would be the easiest option, as the AS already has those instances targeted. |
|
|
|
|
|
#3 | ||
|
FFR Player
Join Date: Mar 2005
Age: 34
Posts: 64
|
Thanks a whole lot. You have no idea how happy I am right now. It's working now (finally), but I'm still getting these 2 errors:
**Error** Symbol=sliding_window, layer=pages, frame=1:Line 1: Clip events are permitted only for movie clip instances onClipEvent (load) { **Error** Symbol=sliding_window, layer=pages, frame=1:Line 6: Clip events are permitted only for movie clip instances onClipEvent (enterFrame) { Now all I need to do is fix 'em make the buttons act as links.
__________________
Post on Net Neutrality: Quote:
Quote:
|
||
|
|
|
|
|
#4 |
|
FFR Player
|
You need to delete the AS that is on the timeline of the sliding_window MC. You only need to have AS on the instance of sliding_pages. (Click the frame with the 'a' on it and delete that AS)
|
|
|
|
|
|
#5 | ||||
|
FFR Player
Join Date: Mar 2005
Age: 34
Posts: 64
|
Ok, well I did get it to work with this code:
Quote:
Quote:
So can anyone suggest some code to use instead of what I have there? I need to know all the code as I'm new to this (as stated in the earlier post) and where to put it. I've uploaded the newest version to the page so you can see what I've done.
__________________
Post on Net Neutrality: Quote:
Quote:
|
||||
|
|
|
|
|
#7 | ||
|
FFR Player
Join Date: Mar 2005
Age: 34
Posts: 64
|
Sweet. Thanks a whole lot.
Now I can really get going on my site. I can improve on it later. I just wanted to get it at this stage. Yessss.
__________________
Post on Net Neutrality: Quote:
Quote:
|
||
|
|
|
|
|
#8 | |||
|
FFR Player
Join Date: Mar 2005
Age: 34
Posts: 64
|
Now I'm having another issue. I can't seem to get the page to open in an iframe. It just opens in a new window. This is the code I'm using on the buttons:
Quote:
__________________
Post on Net Neutrality: Quote:
Quote:
|
|||
|
|
|
|
|
#9 |
|
FFR Player
|
Assuming that your iframe is named correctly, removing the 'target=' part from your existing code should make the function work correctly. The second parameter only needs the String name of the iframe, so the 'target=' is probably just 'confusing' it.
|
|
|
|
|
|
#10 | ||
|
FFR Player
Join Date: Mar 2005
Age: 34
Posts: 64
|
I've tried that ad I still get the same result.
__________________
Post on Net Neutrality: Quote:
Quote:
|
||
|
|
|
|
|
#11 |
|
FFR Player
|
Interesting problem. Sorry about my post before, I haven't used getURL along with iframes for a few years, so I was referencing some code published for either Flash Player 6 or 7.
With the security changes in Flash Player 8, you now need to allow network file access for local testing. It's an option near the bottom of the Publish Settings menu, the attached image shows the menu. The error you were having shouldn't happen if you test the files online, no matter what you select in the box. |
|
|
|
|
|
#12 | ||
|
FFR Player
Join Date: Mar 2005
Age: 34
Posts: 64
|
YOU ARE THE MAN. Thank you so much
. It works perfectly now.
__________________
Post on Net Neutrality: Quote:
Quote:
|
||
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|