ActionScript 2.0 :: Flash CS3 - Loading A New Scene From A Button
Feb 7, 2010
I created a 65 pages slider with buttons from 10 to 10. The pages are simple group items containing a coloured rectangle, a title and a "click to enter" button. Of course they are under a mask, as2 helped with the slide effect from one page to another and.... this is my problem. The button has the mouseover active (I can see the transition when I choose a page and put the mouse over the button but when I click it.... a big nothing. I know that buttons under a mask are tricky, and I need actions in root or something to play the scene on click.
ive made a button in the scene 1 which i have managed to navigate to scene 2 but when i click the button it goes to scene 2 but displays everthing that is in scene 1 in scene 2, how can sort this out so upon the button click in scene 1 it goes to scene 2 and only display content in scene2.
I'm getting this error in the OUTPUT window, when I PREVIEW (COMMAND + RETURN) my SWF:
ArgumentError: Error #2109: Frame label nGallery_btn not found in scene Scene 1. at flash.display::MovieClip/gotoAndStop() at BrookBrovazMusic004_fla::MainTimeline/pageSelect()
- The funny thing is that the SWF works the way I want it to. You can view it here: http://brookbrovaz.com
- I just don't like the idea that something's wrong, according to the OUTPUT window anyway.
I believe I'm not alone in this problem but I don't see any answers in any of the forums.I have a movie clip that has a button that I wish to take me and play my first scene at frame 1.I labeled my the 1st frame "startLabel" and my scene is named "mainScene", and that's where I want to go from my "button" that is placed in my "movie clip symbol scene".
I have an SWF loading in an SWF containing a papervision scene.I've done it before yet problem is, I get an error - I'm not sure what the issue really is.[code]
I have a project set up as scenes.In scene 1 there are two buttons visible from the frame 1licking on these takes us to scene 3 or 4. They work fine. I used code snippet "Click to Go to Scene and Play" the action script is on a keyframe on frame 1 as that is the first frame the buttons appear.From frame 120 a third button appears. So on this frame I have actionscript go to and play scene 5.Problem is it goes to scene 3 instead, like the firstbutton. The buttons are not near each other on screen so its not a case of accidentally clicking wrong button.I think maybe I should've set up my project as movie clips within 1 timeline but I'm too far down the scene route now to change it at this stage.the buttons are all invisible so maybe the third button should also be present from frame 1 and just disabled until frame 120?
everything here is fine. It opens finely. But... i want to pass parameters where if i click a button in html page My.swf should open a particular scene called 'Scene 2' rather than scene 1. i tried
I have a MovieClip that has a button inside of it with an animation, this button takes me to a determined labeled frame that is on Scene 2...and also I want it to load a movie there but I cant seem to do it right...heres my code in the button:
PHP Code:
on (rollOver) { gotoAndPlay(2); } on (rollOut) {
[Code].....
I placed the empty MovieClip in the Scene 2 and is called "container"...the one im trying to load inside is "intentos.swf"
I have a MovieClip that has a button inside of it with an animation, this button takes me to a determined labeled frame that is on Scene 2...and also I want it to load a movie there but I cant seem to do it right...heres my code in the button:
PHP Code:
on (rollOver) { gotoAndPlay(2); }
[code]....
I placed the empty MovieClip in the Scene 2 and is called "container"...the one im trying to load inside is "intentos.swf"
having a problem loading an external txt file into my movie from a different scene I have got the text file to load in with no problem on scean 1 but if I copy the code etc to scene 2 it does not work Okay this is what I have got on scenea. text field with the var: textbob. a blank movie clip that loads an external button with the following code appended to it
CS4 says this has been replaced by flash.display.MovieClip.framesLoaded but this doesnt seem to work the same, i keep getting errors.
Basically I have scene called "Loading" and I want AS3 i this scene to wait until my scene called "Main" has loaded before proceeding to it. I have an animation in the Loading scene to show its loading.
The website I'm working on is a Flash swf hovering at about 2 megs, and although on a broadband connection, it still takes a few long seconds - Is there any actionscript that can tell my preloader to display my homepage immediatley after the homepage is loaded, while the rest of my site loads in the background?
What I'm trying to do is to load a swf, and access a particular scene within that movie. But it seems to have problems getting to that scene (a scene named 'Title'). I have this code on the timeline, and the button has an instance name 'button3'. button3.onRelease = function() { loadMovie("03_diagrams.swf", 1); gotoAndPlay("Title", 1); } Does this code look okay?
I am try to go from a main scene to a second scene in Flash. The code work just fine to take me there, but when the scene appears it seems that I lose focus with the scene and the actions that should runs doesn't until I click once on the screen. Now I am using a button to navigate from one scene to another. If I use a movieclip instead of a button then everything works just fine. In my second scene I am using the keyboard to control different things in the scene.
how to code a simple load sequence scene. This is how I had it set up in AS2 -I've got two scenes, "Scene 1" and "Scene 2". I've got a 10 frame shape tween in Scene 1. On the 9th frame, I assigned actionscript that will check to see if frame 40 of Scene 2 is loaded, and if it is, gotoAndPlay Scene 2, Frame 1. Then have action in frame 10 of Scene 1 that says to gotoAndPlay scene 1 frame 1 of the current scene. This way scene 1 loops until frame 40 of scene 2 is loaded, at that point, scene 2 frame 1 plays.
How could I set this up in AS3? Here is what I tried - I've got two scenes, "Scene 1" and "Scene 2". I've got a MC that is a simple shape tween that loops in the "Scene 1". I'm trying to assign codein "Scene 1" that will check to see if frame 40 of Scene 2 is loaded. If it is, gotoAndplay Scene 2 frame 1. If frame 40 of Scene 2 is not loaded, continure to loop the MC unitil it is. Here is the code I've got for the MC in the "Scene 1"
I'm loading several thumbs of a XML gallery in sequence, one after another, in the _x coordinates. The problem is that the thumbs do no have all the same _width, so they create some empty spaces between them if I set a distance. how can I set a distance of 5 pixels between the thumbs, no mather the width they have?
I am trying to get a rollover button to go from one scene to another. I have been succesfull with this action before with a static button but now can't get it to work. The file can be downloaded from the following location: [URL]..For some reason I can't upload it with this message.
The button is named "btn_1" and I have only applied the action in the Main scence. The button should take the visitor to the scene titled "Korean War."
I have worked in Flash for years, but am new to CS5. Help! I am simply trying to get a button to link to another scene. I set it for Actionscript 2.0 because that's what I know better and the requrirements of this little site are minimal. I am working on the stage (yeah, a graphic designer). I highlighted the button,went to Actions-Button and clicked to get
gotoAndPlay();
I then put in Scene 2 in the brackets. When I test the site it shows that there is a button, but it doesn't link to Scene 2.