ActionScript 3.0 :: Buttons On The Main Page Doesn't Goto And Stop At Other Frames In The Main Scene

Jun 14, 2010

I added a website preloader in a separate scene to the main frame of my website and scripted it to go to and Play the main scene or frame of the website when finished loading. I then put a command in the first frame of the main scene for the movie to stop (); at that point. The problem is that now the buttons on the main page don't respond to any behaviour commands to go to and stop at other frames in the main scene. I'm not sure if this is a conflict between the stop(); command in the main scene and the button behaviour command to go to and stop at another frame or an error with the way I'm identifying the scene and frame.

View 5 Replies


Similar Posts:


Professional :: Adding Music - Stop And Play Buttons On Main Page

Nov 9, 2010

I have my mp3 audio clip and made my play and stop button. I am using cs4 and as3. I want to have the play and stop button on my main page but still have the music play when the users clicks onto one of the buttons which takes them to a new page.

View 6 Replies

ActionScript 2.0 :: If Statement - Goto Different Scene In Main SWF File

May 25, 2007

I have a movieclip in my main timeline as a menu. I want to go to a different scene in the main swf file depending on what scene I am in. Right now I'm using an if statement on the button within the menu (see below) but when I click on the button it only plays the first line of the if statement.

on (rollOver, dragOver) {
gotoAndPlay("s1");
} on (rollOut, dragOut) {
gotoAndPlay("s2");
} on (release) {
[Code] .....

View 3 Replies

ActionScript 2.0 :: Movie Clip To Blur When The Main Scene Hits Certain Frames

Jan 22, 2009

Is there any code that basically says, if root frame = 2 then do this.. I basically need my movie clip to blur when the main scene hits certain frames. The movie clip pans around though with script thats why i cant just add a blurred image to a layer in the main scene.

View 6 Replies

ActionScript 2.0 :: Galley Doesn't Show In Main Page?

Jul 12, 2011

I made a gallery follow this tutorial [URL]

And it's work perfectly fine, but just only in the file itself

when I make a main page and get it loadmovie the gallery, it doesn't work and report "NaN"

View 1 Replies

ActionScript 2.0 :: CS3 Making A MovieClip Play It's Frames, Then Stop On A Main Timeline Frame?

May 12, 2010

I am currently in the middle of making a "sniping" flash game. In the first level there are a series of moving targets which are also movie clips. Inside the movie clip there is a 7 frame animation of the target exploding. Inside that is a tween of the target moving up and down. And inside that there is a plain old button.

What I want to happen is when you click on the moving target it explodes and brings you to a new frame of the main timeline. (ex. Main Timeline frame #27) But I'm pretty sure it thinks I was to play the seven frame animation of it exploding and then go to frame 27 inside the movie clip, rather then frame 27 on the main timeline.

Here's what my AS looks like on the target (ActionScript 2.0 is what I'm using.)

on (press) {
play();
}
on (release){
gotoAndStop(27)}

So how do I make it explode and then take me to frame 27 on the main timeline?

View 3 Replies

ActionScript 3.0 :: 3 Main Buttons Doesn't Seem To Unload Loaded .swf?

Jun 12, 2009

I'm trying to create app. that has 3 main buttons that goto 3 pages each with 15-30 buttons that each load external .swf that covers most of primary swf xpt 3 main buttons. Clicking on those 3 main buttons should unload previously loaded .swf and each loaded .swf should have preloader in its start.

1.) preloader works fine when i launch file separately, but when i load it from main .swf, it just shows "100%" at once...

2.) 3 main buttons doesn't seem to unload loaded .swf...

Main .swf code:

PHP Code:[code].....

View 2 Replies

Stop(); Not Working - Main Menu Automatically Switches To The Next Page After About Six Seconds

May 3, 2009

I have a home page and five other pages. The five pages have a main menu at the top containing buttons that allow you to go to the other pages:

on(release){
gotoAndPlay("gallery");
}

I have an actions layer. Each section has the following action in the first frame: stop(); When I view the website the home page works correctly. However, any page with the main menu automatically switches to the next page after about six seconds. The code seems pretty straightforward so I have no idea what I'm missing.

View 4 Replies

Professional :: 12 Movie Clip Buttons On The Main Page?

Aug 25, 2010

I have 12 movie clip buttons on the main page (3 rows of 4 buttons).When a button is pressed,it gives the answer to a question which remains visible.On this answer screen, there is another button to click for further information. I pointed to this button to go to another frame within the same movieclip (containing the further information).However, this "further information" shows up  UNDERNEATH the 12 buttons, and you can't read it.

View 14 Replies

ActionScript 2.0 :: Main Navigation Buttons - Dynamic Page Indicator

Jun 21, 2004

I have a website, basic overview. I have my main movie, which contains the logo and navigation. I have a blank movieclip created with actionscript that loads the individual movie swf files. That works fine. What I want to do is dynamically have the main navigation buttons' text indicate what page you the user is on. Right now the code is on each button instance, example:

Code:
//work button Definition
on(press){
if(_root.pageHolder != "work") {
_root.pageHolder = "work";
_root.mcContainer.loadMovie(_root.pageHolder+".swf", this);
[Code] .....

Each button has the same code, just pointing to their respective pages. Here is the code in the first frame for setCurrentMarker()n function:
var aMenu = new Array(home, jschaer, work, contact);
function setCurrentMarker(){
for(i=0; i<= (_root.aMenu.length-1); i++){
if(_root.aMenu[i] == pageHolder){
[Code] .....

So the variable aMenu holds the moveclip names of the buttons. PageHolder holds the the name of the current page that is loaded. Thats how I change the pages to be loaded. To explain, if you look at the button code, the text for each button is by default greay and when you rollover it becomes black and off and it becomes gray again. That is on the first frame.

On the second frame the text is black. In the code I tried to make the black dynamically, but it didn't work, so I settled for going to the second frame and stopping. How do you get those little scroll boxes where you can put code. I guess its preference, but is it generally good to put the code on each instance of a button or put in in the main frame where your code lies. Is there any benefit either way?

View 5 Replies

ActionScript 2.0 :: Buttons Load The External Swfs Except When Click On The Contact Button That Is In The Main Flash Page

Feb 23, 2011

I am loading swfs into a movie clip. However, the contact button is not a loaded swf any longer. It's in the main flash page. This is what I want to do. All the buttons load the external swfs except when I click on the contact button that is in the main flash page. I need to get the other buttons to load after I click the contact flash button. Below is the code for the contact button and the one under for one of the other buttons.

[Code]....

View 3 Replies

ActionScript 2.0 :: Have A Main Scene, Then Sitting In The Root Scene Have 2 Movie Clips.1)?

Dec 28, 2009

No..not that type of parenting ;DOK,I have a main scene, then sitting in the root scene I have 2 movie clips.1)centro2)fotoIn the first movie "centro" there is a menu btnI want this menu btn to call up mclarge + its frame (1) thats housed 3 levels inside the foto mc in root.

Main scene - (1) centro (banner which houses menu btn)
(2) foto_mc
- Main_boy_mc (<---works if menu btn houses in here)

[code].....

View 0 Replies

ActionScript 1/2 :: Preloader Scene With Main Movie Scene

May 7, 2009

I can get by and make nice flash sites, but I'm still learning what goes where and am still borrowing code to get by.I've laid the problem out in some detail as I am sure that will save a lot of questions later on, but feel free to ask if you want more info.Problem is as follows: I've built a two scene flash site using open source code for the preloader scene:[code]The main scrolling menu scene works great when it's a one scene movie and the preloader code works fine with a load of other sites I've built, but when I put them together on this site (the code for the scrolling menu precludes the addition of a preloader directly into that scene so separate scenes are a necessity) everything goes to pot.When testing the site (both as a standalone SWF file and when embedded in an HTML file) the preloader works fine and the main scene appears correctly, but when you click on any button to move back or forth along the menu/timeline it jumps and jerks along very roughly and stops short of its designated point.

This causes the whole scene to fail as the designated timeframe for each button contains a movie instance that won't function until the specific timeframe is reached.It's odd behavior and I'm stumped as both chunks of code work fine separately.I've even tried a much simpler preloader that doesn't display percentage or anything, it just cycles between frame one and two until the movie loads and then plays it (just like this one, but with no bells or whistles).Unfortunately my lack of actionscript knowledge prevents me from even finding a simple term to sum up the problem so I've failed to find any similar issues on any forums or Google.

View 3 Replies

ActionScript 2.0 :: Stop Advanced Gallery When Goto Another Scene?

Aug 9, 2010

I have tried to get the advanced gallery to work and now it does but it does not disappear when you going to another scene. What should I write to get it to stop when you want to go to another scene and where should I write it? I used the tutorial on this site to get my gallery: [URL]

The code lookes like this, written in the first frame in a scene:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var myGalleryXML = new XML();
myGalleryXML.ignoreWhite = true;
myGalleryXML.load("gallery.xml");
myGalleryXML.onLoad = function() {
[Code] .....

View 1 Replies

ActionScript 2.0 :: Goto Main Timeline From A Movieclip

Dec 22, 2004

I have seemed to have forgotten how to go from a movieclip to a frame in the main timeline. I have done it a few months back but I dont have the fla right now to reffer.

View 4 Replies

ActionScript 2.0 :: Goto Main Timeline From A Movieclip?

Dec 22, 2004

I have seemed to have forgotten how to go from a movieclip to a frame in the main timeline. I have done it a few months back but I dont have the fla right now to reffer.

View 4 Replies

ActionScript 2.0 :: Multiply Buttons On Scene On Release Goto And Wait

Jan 25, 2011

I have been really strugling getting my buttons working. I have one scene that have multiply buttons that shows from time to time on the timeline. My needs is that each buttons when released goes to an specific frame number (label) waits for 5 sec and then continue playing the scene from were it did stop and wait.

I have mamage to make the first buttons work, but when scene changes to the rest of the buttons on the timeline nothing happends. I have tried to place actionscript on an actionlayer (timeline), also tried to apply actions to each button. Same problem. I use actionscript 2. All buttons have instance name, and they shuffle, meaning that they show and dont show depending were on the timeline you are. This is for an adult site, so I am not sure that it is allowed to post an link to the flash scene.

View 1 Replies

ActionScript 3.0 :: Flash Buttons In Array - Goto Scene Not Frame

Mar 18, 2011

I have a number of buttons (that are in an array), I want to add a function that basically says:
If the name of the button that you have just clicked on == (is the same as the name of the scene label) then go to that scene: Now I have used this handler function which seems to work O.K, except for the fact that it keeps trying to goto the FRAME label instead of SCENE label.

I keep getting the error message when i click on a button saying:
ArgumentError: Error #2109: Frame label mars not found in scene home.
at flash.display::MovieClip/gotoAndStop()
function autoGoTohandle(event:MouseEvent):void {
for (var i:int = 0; i < arrayItem.length; i++) {
if (event.currentTarget == arrayItem[i]) {
gotoAndStop((destArray)[i]);
}}}

I figured it must be this line of code at the end: gotoAndStop(+(destArray)[i]);
But how do I change it so it goes to the scene label name and not the frame label name? I Tried adding quote marks like
gotoAndStop(("destArray)[i]");
But I am getting errors.

View 1 Replies

ActionScript 2.0 :: Use The GotoAndPlay To Direct The The Main Timeline To Goto Frame 2

Sep 30, 2004

After the HitTest, How do I use the gotoAndPlay to direct the the main timeline to goto frame 2, and not frame 2 of _root.circle MC? with _parent?

I know this might be a simple question, but my brain hurts from the previous 'debugging'.....

both of these give me the same results.

onClipEvent (enterFrame) {
if (_root.circle.hitTest(_root.box1)) {
gotoAndPlay(2);
;

[Code].....

View 4 Replies

AS2 :: IDE - Goto Previous Frame - Main Movie Clip To Flicker

Jan 23, 2009

I'm using a simple piece of code on a button...

on(press){
_level0.prevFrame();
}

... to go to previous frame but for some reason it causes the main movie clip to flicker. Is this a known problem or am I doing something wrong?

View 2 Replies

ActionScript 2.0 :: Button Go Back To The Main Timeline And Then Goto Another Mc Nested In Another Mc?

Jan 23, 2005

I'm trying to have a button go back to the main timeline and then goto another mc nested in another mc. For some reason it the output section when i test this says the following...Target not found: Target="_root.printmc" Base="_level0.instance8.instance29" Here is the script I have on the button.

on (rollOver) {
gotoAndPlay("move");
}
on (press) {[code]....

View 4 Replies

ActionScript 2.0 :: Dilemma - Get Loaded In Swf To Goto Frame Label On Main Timeline?

Oct 21, 2005

I have a button that is loaded into my main movie at level 2. in my main movie on the timeline I have a frame label called guestbook. I want my button, when released to go to trigger the frame label. on my button i have the script:

on (release) {
_root.gotoAndStop("guestbook");
}

Obvously this does not work because it references the wrong timeline so i tried:

on (release) {
_parent.gotoAndStop("guestbook");
}

thinking that somehow it would see the parent swf and work - haha - me and my dumb ideas of course it doesnt work.do you know how i can get it to work. Perhaps i should mention that the button that loads in at level 2 is inside a movie clip (for reasons of animation)

View 1 Replies

AS3 :: Go From A Main Scene To A Second Scene In Flash?

Nov 30, 2010

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.

View 1 Replies

ActionScript 3.0 :: Controlling - Sound Will Stop When Goto Page 2

Jan 17, 2011

for example i have a two pages, in page 1 theres a sound thats playing, but if i will try and go to page 2 the sound will stop, but if i will go back to page 1 the sound will be played again..

View 4 Replies

ActionScript 3.0 :: Flash Video Not Stop Playing When Goto Another Page

Jun 25, 2009

I am having a problem with the video on my website. I put a couple of videos on there and I have them working. But if I click on another page, the sound is still playing on the video until it is over. I found a temporary solution by putting in the code to STOP ALL. This make it work how it should. But the thing is I want background music, and with the code I have know the music would shut off every time I go to another page. Is there any code where I could just shut the sound off for that video when I click on something else and not ALL sound?

View 8 Replies

Jump Out Of A Movieclip To The Main Scene?

Apr 11, 2009

I have a movieclip in my main scene. Inside the movieclip, there's a button. I wanted to so if I click on the button, it takes me out of the movieclip's timeline and play on the main scene's timeline. I tried gotoAndPlay("Scene 1", 1), but it just take my back to the first frame of the movieclip, not first frame of the main scene (scene 1)

View 4 Replies

ActionScript 2.0 :: Main Timeline To Scene?

Dec 2, 2010

From the main time line after clicking one button named "btn_mc" I go to a different scene named "About us" now if i want to come back to the main time by clicking another button named "Back to Main Menu" how can I write the code.

To enter into the "About us" scene I wrote this code to the button "btn_mc" which is in the main time line is something like this.

Code:
btn_mc.onRelease = function (){
gotoAndPlay ("About us",1);
}

View 3 Replies

ActionScript 3.0 :: Get Main Timeline To Stop In The Beginning On Button Press To Play And At The End Stop Again?

Feb 1, 2008

I just got Flash CS3. I'm trying to get my main timeline to stop in the begining, on button press to play and at the end stop again. In AS2, you would just put stop(); on the first keyframe and stop(); on the last key frame and program your buttons accordingly.

The stop(); does not work!!!! It's driving me crazy. What am I missing? I've gone through the tutorials in Flash and they don't work either.Also, if you have MovieClip that contains an animation and you don't want the movie clip to be on a continuous loop how do you stop it from playing. In AS2, I would put a stop(); on the last keyframe of the movieclip's animation. This also does not work in AS3.

View 9 Replies

On Button Click Page Flashes Back To Main Page

Oct 23, 2009

I have a movie clip that loads in the main timeline, when i click on any of my buttons theres a quick flash of the main page. Im loading my movies on level 1 so i guess my question is, how do i get rid of the movie on the main time line?

View 2 Replies

ActionScript 2.0 :: Load External Swf Into Main Page And Remove When Nav To New Page

Jan 7, 2009

I am trying to load an external swf with a number of quotes into an empty movie clip on the home page. then I want it to obviously disappear when nav to any other page.

1) know that you need a loaderEmpty_mc to load the swf into

2) don't know code for how to get it to load on entering the home page

3) don't know how to cdde for leaving the home page and making it disappear

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved