ActionScript 2.0 :: Close LoadedSwf And Back To MainSwf To Certain Frame?

May 21, 2008

I have my main swf ("index.swf") and loaded another swf as a submenu ("submenu.swf") into it. I want to click on one of the thumbnails within submenu, unload the swf ("submenu.swf") and want to go back to the mainSwf and call a certain frame("frameTest").

index.swf->submenu.swf->click btn:
unload: submenu.swf
goto: index.swf->"frame"

It does go back to the mainSwf but just won't stop at the named frame("f05_work")!Does it have anything to do with the Depth?what the code is for the thumbnail button within the swf(submenu)?

btAd1.onRelease = function():Void{
loadMovieNum("index.swf",0);
this._parent.unloadMovieNum("submenu.swf",1);

[code]....

View 8 Replies


Similar Posts:


ActionScript 3.0 :: Back Button Close Video

Mar 2, 2011

i have a problem with a back button when i click BACK the video of the FLV video component continue and also when i'm back in the home page i can hear the sound...how can i stop it here is the code of my back button

stop();
back_btn.addEventListener(MouseEvent.CLICK,backvid eo);
function backvideo(event:MouseEvent):void {
gotoAndPlay("1");
}

the video instance name is my_video I try to put my_video stop(); but nothing

View 2 Replies

ActionScript 2.0 :: How To Close Menu Or Reset It Back

Jan 29, 2009

I have a movie clip that sits just of my stage. When clicked the mc slides out based on the _x,_y position. The problem I have is how do I close my menu or reset it back to it;s original position as to appear closed. Heres the code I've placed in the timeline:[code]indicate what code would I use within the 'else statement'. I have this cmmon problem when I want a button to provide a loop type function. I.e toggle sound on and off with one button.I want this menu to be available all the time so it would sit in the _root (index swf file). The rest of the pages are called using loadMovie as external files.

View 1 Replies

ActionScript 3.0 :: Cannot Close NetStream And Open It Back Up

Nov 6, 2010

I have a NetStream publishing properly using multicasting for fp 10.1. My problem is that I can not close the steam and open it back up. I call .close() on the netstream object and receive this message:
NetStream.Unpublish.Success
I then call .publish("same stream name") and receive this error:
Netstream.Publish.Badname

View 2 Replies

Professional :: Back Button On Web Browser Goes Back To First Frame Instead Of Actual Last Page?

Oct 21, 2010

I have a Flash website with 3 interfaces( 3 frames with movie clips inside). they have a button that goes to different loaded .html page(text). But once the back button is pushed on the web browser, it always goes back to the first frame instead of the actual last page, which might have been frame 2 or 3.

View 1 Replies

ActionScript 3.0 :: Close Window When Back Button Is Clicked On Movie Presentation

Jul 1, 2009

I have a .swf movie that is accessed through a link on a website. At the end of the movie are two buttons: one for "Back" and the other for "Replay." I have the buttons working so the Back button goes to the previous URL and the Replay button, well, replays. However, the Back button opens a new window. Is there a piece of Action Script 3 that I can add to the following to close the window in my .fla Action Script Window to close the window as it jumps to the URL? Here is the script.

[Code]...

View 2 Replies

CS3 Typing-Button Interaction - Only Plays Next Frame And Then Goes Back To The Frame Where It Stopped

Mar 20, 2010

I hit enter,it only plays next frame and then goes back to the frame where it stopped. What I've tried was something like:

stop();
Key.addListener(Key.ENTER)
if (Key.isDown.ENTER){
play();
};

I want it to play all the way to the end,not just go back.

View 1 Replies

Actionscript 3 :: If Statement Not Working - Loop Carrera(a Lenghthy Movieclip) From Frame 2 Back To Frame 1

Nov 25, 2011

This is an if stament on a frame on the root. I want to loop Carrera(a lenghthy movieclip) from frame 2 back to frame 1. (For testing purposes) This is the code:

[Code]...

View 3 Replies

ActionScript 1/2 :: Buttons - Take The Movie Back To The First Frame And Works On The Third Frame

Jun 21, 2009

I've got a movieclip acting as a button. Code on the button itself handles roll-over/-out states, and I define an onRelease function in the main timeline as follows:

[Code]...

This code takes the movie back to the first frame and works on the third frame. For some reason, though, the same code on the fifth frame has no effect. The button doesn't do anything. I have tried using the same button, I tried inserting a new keyframe with a new button, renaming the button, etc. and for some reason I just can't get it to work on the fifth frame. If it helps to visualize, I am essentially making a menu. The first frame contains buttons to take you to submenus, located on following slides. This button to go back to the original menu is on each frame with a submenu, but for some reason only works on one of them.

View 1 Replies

ActionScript 2.0 :: If / Then - Loop Back To Frame 1 Once The Next Frame It Hits Is Higher Than 5

Jul 6, 2003

I'm trying to write an if then statement that will loop back to frame 1 once the next frame it hits is higher than 5. For some reason it doesn't work and I could easily go to frame six and add a go to and play but, I'd like to learn what's wrong instead of doing it the easy way.

[Code]...

View 14 Replies

ActionScript 3.0 :: Timeline - When It Reaches Frame 20, It Goes Back And Plays At Frame 5?

Feb 26, 2010

how do you do the following

A movieclip is playing...

When it reaches frame 20, it goes back and plays at frame 5. Then it keeps doing this. To me this is harder than it looks

View 6 Replies

Go Back To Frame 1 When The Timeline Reaches A Certain Frame?

Oct 7, 2009

I have a timeline that has some label frames at the very end of the timeline. During the timeline a user will hit a button on a frame and will jump to one of the label frames. On the label frame is another button that when clicked - returns the user to the previous frame. How do I make the movie return to frame 1 - without a button - but before it reaches the label frames? In other words, by simply reaching a certain frame in the movie, I want the timeline to go back to frame 1.

View 3 Replies

ActionScript 3.0 :: Thumbnails And Player To Close / When Navigate Away From Frame

Jul 22, 2009

I am trying to make a multimedia player where has different pages:

- about us

- our videos

- contact us

now on the "our videos" page there are 12 thumbnails (reading from an xml file) and by clicking on them the video player shows the proper video. Till now I have been able to set it up. But when someone wants to go back to the about us, contact us ext. the player and the thumbnails still remain.How can I close them when page navigates away from that specific frame (lets say for example all of this is done on frame 150)?I would like the thumbnails and player to close when we navigate away from that frame.[code]

View 0 Replies

ActionScript 2.0 :: Currentframe - Send Movie Clip To A Specific Frame On The Main Timeline When Close

Jun 25, 2006

I have a movie clip which, when closed, should send you to a specific frame on the main timeline... I have used frame labels on the main timeline... Here is a bit of my code so far:

[Code]...

View 5 Replies

ActionScript 2.0 :: Close Browser By Clicking On Close Button Embedded Swf?

Jul 27, 2009

i want to close browser by clicking on close button embedded swf. I have tried fscommand("quit"), but which is not working on browser.

View 9 Replies

ActionScript 3.0 :: On Frame (45) Go Back To First One

Aug 3, 2011

I am trying to do a simple script. When I get to frame 45 I want the play head to go back to frame 1. I have the below code but I am getting errors.
onFrame (45) {
this.gotoAndPlay(1);}
One error says that "is expecting semi-colon before or after first brace.....
Second possible error is "call to possible undefined method onFrame....

View 6 Replies

ActionScript 3.0 :: Go Back/next Frame Label?

Dec 11, 2008

How can I code a button that goes back to the previous frame label and another that goes to the next frame label? I know about prevFrame() and nextFrame(), but I need something similar that references the next/previous named label and not the frame number...

View 16 Replies

Professional :: Movieclip Goes Back To Frame 1?

Aug 25, 2011

I have created an interactivity to simulate a product.  To do this my project has multiple frames.   Each frame contains an individual movie clip. The clips each contain buttons that change the display and go to and stop on specific frames based on which button was pressed.  My problem is, after the interaction a movie clip  may have been stopped on say  frame 12, the next time the frame containing the movieclip is opened on the main timeline I need the movieclip to open on frame 12 .  However, the movie clip opens back up at frame 1 each time not saving the interaction.

View 10 Replies

IDE :: Linking Back To Flash Frame From XML URL?

May 27, 2009

I am but a lowly martial arts instructor who has 'foolishly' decided to try and do our website. I decided to use a flash template which has actually worked out ok (word to the wise - DON'T BUY FLASH TEMPLATES UNLESS YOU ARE WILLING TO KISS YOUR LIFE GOODBYE FOR A COUPLE OF MONTHS).

Anyway, I wanted to put a news ticker on the site to display 'latest news' - I took an example that was kindly supplied from this site, and it works fine. However, I just cannot figure out how to create a link in the XML file that when clicked takes you back into another part of the flash site. I can get it to link to an external URL no problem at all but just cannot get the link to take it back to a section of the site I want it to go to.

[Code]...

View 5 Replies

ActionScript 2.0 :: Go Back To Previous Stopped Frame?

Nov 6, 2002

I'm tryin to create a button that sort of "rewinds" but it doesn't have to show the rewind- all i want it to do is jump back to the previous frame with a stop action on it. So kind of like a "back" or "previous" button.It's been a while since I have programmed a lot and I forget everything

View 9 Replies

CS3 :: Go Back A Few Frames And Play A MC At A Specific Frame When Hit?

Jul 1, 2009

I'm using Flash CS3 and AC2... I have a button on my main TL and I want to go back a few frames and play a MC at a specific frame when hit.

View 3 Replies

Go Back To Frame 1 When A User Clicks Anywhere On The Stage?

Dec 11, 2009

I want the ability to go back to frame 1 when a user clicks anywhere on the stage that doesn't contain an object. Is this possible?

View 2 Replies

ActionScript 2.0 :: Replaced Cursor In One Frame, Can't Get It Back In The Next

Jul 21, 2010

Using Flash CS4 actionscript 2 Used the following code bellow in one frame to replace the curser, works perfectly but when I go to the next frame I want the curser back to normal.

Actionscript Code:
onMouseMove = function(){Mouse.hide();Bumbles._x = _root._xmouse;Bumbles._y = _root._ymouse;updateAfterEvent();}

View 1 Replies

ActionScript 3.0 :: Make Back Button To The Specified Frame

May 31, 2010

Im trying to make a back button using AS3 in CS4 here is the code im using function onClick12(event:MouseEvent):void {gotoAndPlay(50);} reo_btn.addEventListener MouseEvent.MOUSE_UP, onClick12); it brings me back to the specified frame but when I click next on that frame it brings me to the frame following the one with the back button. here is my code for one of those frames stop();

[Code]...

View 5 Replies

ActionScript 3.0 :: Instance Lost When Go Back From Frame

May 6, 2010

Let's say I have a graphic on Frame 2. I want to make that Graphic to be a button. So I convert it to symbol, as movieclip, and giving its instance a name, let's say... "goButton". So I code it like this

Code:
goButton.addEventListener (MouseEvent.MOUSE_DOWN,goNext);
function goNext(e:Event):void
{

[Code].....

Is there anyway around this? The hard way would be create the button dynamically, but if its not just one button, it would create a lot of coding.

View 7 Replies

ActionScript 2.0 :: Back Button That Is Not Sequential Frame

Feb 2, 2012

I have a button that needs to goes back to the last frame. But the user can get to each frame in different configuations so back is not a sequential frame. Is there a way to go to the last frame that was accessed?

View 6 Replies

ActionScript 3.0 :: Disable A Function After Going Back To Frame?

Feb 11, 2012

In my Timeline there are two keyframes with some complicated functions, but the mistake lays in several lines. In the first one I have:

ActionScript Code:
stop();
var fadein:Tween = new Tween(pictureOne,"alpha",Strong.easeOut,0,1,true);

In the second one I have:

ActionScript Code:
stop();
button.addEventListener(MouseEvent.CLICK, goBack);
function goBack(e:MouseEvent):void {
gotoAndStop(1);
}

The point is to make the Tween from the first frame work only once after opening SWF and to disable it after using te command gotoAndStop(1); from the second frame.

View 1 Replies

ActionScript 2.0 :: Simple Frame Back And Forward?

Jan 6, 2005

Im trying to make buttons to advance a frame and retract a frame. So I have this for the forward button...

Code:
on(release){
play();

[code]....

View 2 Replies

ActionScript 2.0 :: How To Simple Frame Back And Forward

Jan 6, 2005

Im trying to make buttons to advance a frame and retract a frame. So I have this for the forward button... [code]with a stop(); on each frame.But is there a way to play in reverse?

View 2 Replies

ActionScript 3.0 :: Navigation Away And Back To Frame Resets All Data

Apr 17, 2009

I have some dynamic text fields in a frame called ExerciseFrame (which contain different random numbers, texts, ... and other variables.) When I navigate to another frame called helpFrame and back to the exerciseFrame again, all variables and text fields and other random numbers,... are reset. I mean text fields which contained many data in them becomes empty! I do navigation by a button in exerciseFrame with a simple
eventListener( gotoAndStop("helpFrame");
And in helpFrame another button with this code
(gotoAndStop("exerciseFrame");
How can I keep the state the whole exerciseFrame unchanged when navigating away from it and back to it again? version: AS3 - Flash CS4

View 3 Replies







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