Go Back   Flash Flash Revolution: Community Forums > General Discussion > Chit Chat
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
Old 07-23-2006, 11:02 PM   #1
glone
FFR Player
 
glone's Avatar
 
Join Date: Mar 2005
Age: 34
Posts: 64
Default Some Flash 8 help needed please.

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:
Originally Posted by sertman
All I know is I saw a ****load of commercials about it
and they really made no sense... they were just like "If this passes your TV will fly into space"
My Sister:
Quote:
Omg, if you go to Tokyo, you'll go insane. There's like a thousand people every three feet.

Last edited by glone; 07-24-2006 at 02:03 AM..
glone is offline   Reply With Quote
Old 07-24-2006, 02:27 AM   #2
Krilnon
FFR Player
 
Krilnon's Avatar
 
Join Date: Oct 2003
Posts: 11
Send a message via ICQ to Krilnon Send a message via AIM to Krilnon Send a message via Yahoo to Krilnon
Default Re: Some Flash 8 help needed please.

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.
Krilnon is offline   Reply With Quote
Old 07-24-2006, 02:59 AM   #3
glone
FFR Player
 
glone's Avatar
 
Join Date: Mar 2005
Age: 34
Posts: 64
Default Re: Some Flash 8 help needed please.

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:
Originally Posted by sertman
All I know is I saw a ****load of commercials about it
and they really made no sense... they were just like "If this passes your TV will fly into space"
My Sister:
Quote:
Omg, if you go to Tokyo, you'll go insane. There's like a thousand people every three feet.
glone is offline   Reply With Quote
Old 07-24-2006, 03:49 AM   #4
Krilnon
FFR Player
 
Krilnon's Avatar
 
Join Date: Oct 2003
Posts: 11
Send a message via ICQ to Krilnon Send a message via AIM to Krilnon Send a message via Yahoo to Krilnon
Default Re: Some Flash 8 help needed please.

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)
Krilnon is offline   Reply With Quote
Old 07-24-2006, 02:26 PM   #5
glone
FFR Player
 
glone's Avatar
 
Join Date: Mar 2005
Age: 34
Posts: 64
Default Re: Some Flash 8 help needed please.

Ok, well I did get it to work with this code:
Quote:
onClipEvent (load) {
_x = 0;
_y = 0;
spd = 8;
}
onClipEvent (enterFrame) {
_x += (endX-_x)/spd;
_y += (endY-_y)/spd;
};
_root.page1.onRelease = function() {
endX = 0;
endY = 0;
};
_root.page2.onRelease = function() {
endX = -750;
endY = 0;
};
_root.page3.onRelease = function() {
endX = -1500;
endY = 0;
};
_root.page4.onRelease = function() {
endX = -2250;
endY = 0;
};
_root.page5.onRelease = function() {
endX = -3000;
endY = 0;
};
_root.page6.onRelease = function() {
endX = -3750;
endY = 0;
};
But I keep getting this error:
Quote:
**Error** Symbol=sliding_window, layer=Mask, frame=1:Line 1: Clip events are permitted only for movie clip instances
onClipEvent (load) {

**Error** Symbol=sliding_window, layer=Mask, frame=1:Line 6: Clip events are permitted only for movie clip instances
onClipEvent (enterFrame) {
The code is only in the sliding window instance as it should be, but I'm still getting the problem.

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:
Originally Posted by sertman
All I know is I saw a ****load of commercials about it
and they really made no sense... they were just like "If this passes your TV will fly into space"
My Sister:
Quote:
Omg, if you go to Tokyo, you'll go insane. There's like a thousand people every three feet.
glone is offline   Reply With Quote
Old 07-24-2006, 03:54 PM   #6
Krilnon
FFR Player
 
Krilnon's Avatar
 
Join Date: Oct 2003
Posts: 11
Send a message via ICQ to Krilnon Send a message via AIM to Krilnon Send a message via Yahoo to Krilnon
Default Re: Some Flash 8 help needed please.

Actually, you still had some AS where it shouldn't have been. I removed it in this .fla. It looks much nicer if you bump the framerate, though the easing AS could probably be improved.
Krilnon is offline   Reply With Quote
Old 07-24-2006, 08:13 PM   #7
glone
FFR Player
 
glone's Avatar
 
Join Date: Mar 2005
Age: 34
Posts: 64
Default Re: Some Flash 8 help needed please.

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:
Originally Posted by sertman
All I know is I saw a ****load of commercials about it
and they really made no sense... they were just like "If this passes your TV will fly into space"
My Sister:
Quote:
Omg, if you go to Tokyo, you'll go insane. There's like a thousand people every three feet.
glone is offline   Reply With Quote
Old 08-1-2006, 08:23 PM   #8
glone
FFR Player
 
glone's Avatar
 
Join Date: Mar 2005
Age: 34
Posts: 64
Default Re: Some Flash 8 help needed please.

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:
on(release){
getURL("home.html", target="main");
}
What should I add or replace to get it to load in the iframe? Help...meep!
__________________
Post on Net Neutrality:
Quote:
Originally Posted by sertman
All I know is I saw a ****load of commercials about it
and they really made no sense... they were just like "If this passes your TV will fly into space"
My Sister:
Quote:
Omg, if you go to Tokyo, you'll go insane. There's like a thousand people every three feet.
glone is offline   Reply With Quote
Old 08-1-2006, 11:11 PM   #9
Krilnon
FFR Player
 
Krilnon's Avatar
 
Join Date: Oct 2003
Posts: 11
Send a message via ICQ to Krilnon Send a message via AIM to Krilnon Send a message via Yahoo to Krilnon
Default Re: Some Flash 8 help needed please.

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.
Krilnon is offline   Reply With Quote
Old 08-1-2006, 11:13 PM   #10
glone
FFR Player
 
glone's Avatar
 
Join Date: Mar 2005
Age: 34
Posts: 64
Default Re: Some Flash 8 help needed please.

I've tried that ad I still get the same result.
__________________
Post on Net Neutrality:
Quote:
Originally Posted by sertman
All I know is I saw a ****load of commercials about it
and they really made no sense... they were just like "If this passes your TV will fly into space"
My Sister:
Quote:
Omg, if you go to Tokyo, you'll go insane. There's like a thousand people every three feet.
glone is offline   Reply With Quote
Old 08-2-2006, 12:16 AM   #11
Krilnon
FFR Player
 
Krilnon's Avatar
 
Join Date: Oct 2003
Posts: 11
Send a message via ICQ to Krilnon Send a message via AIM to Krilnon Send a message via Yahoo to Krilnon
Default Re: Some Flash 8 help needed please.

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.
Attached Images
File Type: jpg iframeBug.jpg (10.3 KB, 21 views)
Krilnon is offline   Reply With Quote
Old 08-2-2006, 12:20 AM   #12
glone
FFR Player
 
glone's Avatar
 
Join Date: Mar 2005
Age: 34
Posts: 64
Default Re: Some Flash 8 help needed please.

YOU ARE THE MAN. Thank you so much . It works perfectly now.
__________________
Post on Net Neutrality:
Quote:
Originally Posted by sertman
All I know is I saw a ****load of commercials about it
and they really made no sense... they were just like "If this passes your TV will fly into space"
My Sister:
Quote:
Omg, if you go to Tokyo, you'll go insane. There's like a thousand people every three feet.
glone is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 11:38 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright FlashFlashRevolution