ActionScript 2.0 :: Telling Loaded Movie To Play();

Feb 28, 2007

I have a main movie(main.swf). I've loaded a movie into it(loaded.swf). I need the loaded movie to finish playing once a button is clicked in the main.swf. So basically i need something like

when a button in the main.swf is pressed, finish playing "loaded.swf"

View 6 Replies


Similar Posts:


ActionScript 2.0 :: Telling Parent Movie From Loaded Swf

Jul 7, 2004

I have a parent movie that loads a swf(events.swf) file into a movie clip with an instance name of container. (container.loadMovie("events.swf");) It loads fine and seems to work great.

events.swf has a movie clip inside of it called design_mc that contains the content. In that movie clip I have a button that needs to target the parent movie and tell it to gotoAndPlay("eventsout"); which is on the _root of the parent movie. However, anything I try will not target the parent movie. I've tried _parent, _parent._parent, _root, and even assigning the parent movie this._lockroot = true; . Nothing seems to target the parent movie.

View 4 Replies

ActionScript 2.0 :: Telling Parent Movie From Loaded Swf?

Jul 7, 2004

I have a parent movie that loads a swf(events.swf) file into a movie clip with an instance name of container.

(container.loadMovie("events.swf");) It loads fine and seems to work great.events.swf has a movie clip inside of it called design_mc that contains the content. In that movie clip I have a button that needs to target the parent movie and tell it to gotoAndPlay("eventsout"); which is on the _root of the parent movie. However, anything I try will not target the parent movie. I've tried _parent, _parent._parent, _root, and even assigning the parent movie this._lockroot = true; . Nothing seems to target the parent movie.

View 4 Replies

ActionScript 2.0 :: Telling A Movie Clip To Play If Lable?

Oct 12, 2010

I have a movie called book_mc that is on scene1 the movie has several labels (red, green, blue, and yellow) in it's timeline. Also, on scene1 I have a button called book_but. If book_mc is on the label green of it's timeline. I want the button press of book_but to make it goto and play yellow. If book_mc is not on the green label of it' timeline I want the button press of book_but to make the timeline goto and play red.

View 6 Replies

ActionScript 2.0 :: Telling Main Timeline To Play Backwards From Movie Clip

Apr 4, 2007

I am trying to tell flash from within a movieclip to start playing a specific frame within the main timeline only after it has finished playing the movieclip backwards. I can get the movieclip to play backwards fine but it's getting the main timeline to start from frame 1 which doesn't work. I have the following code on the first frame of the movieclip (which is called video) but it doesn't seem to do anything.[code]

View 1 Replies

ActionScript 3.0 :: Loaded Swf Telling Parent Swf To Unload Itself?

Sep 23, 2010

I have a shell swf that is loading a swf. How do you have the loaded swf tell the parent loader to unload itself after the loaded swf finishes playing?

View 3 Replies

ActionScript 3.0 :: Telling Flash To Play A Movieclip Inside Couple Of Other Movieclips

Apr 12, 2009

i have a movieclip within a movieclip within a movieclip... i want to simply tell flash to play that movieclip once i click on it.. however, i get an error saying "1120: Access of undefined property tl_character" when i try to publish the file..[code]i know there might be a solution by using a custom class for "police1" but i'd like to know how i could play that movieclip using a function thats written on the main timeline..

View 2 Replies

ActionScript 2.0 :: [F5] Telling A Movie To Wait

Nov 6, 2003

Is there a way to tell a movie clip to way a number of frames from a specific action being executed (say a button being pushed) before it starts playing?

View 2 Replies

Telling A Movie To Goto A Random Frame Label?

Feb 12, 2002

anyway to write a piece of code telling a movie to goto a random frame label?

View 4 Replies

IDE :: Movie Won't Play When Loaded?

Apr 24, 2009

I have a simple landing page here: www.epistage.sgIt simply reFUSES to play unless the user refreshes their browser....what to do?? My other flash sites have no problem and execute the functions I order them to as soon as its loaded?

View 2 Replies

Preloader Bar Fully Loaded But Movie Does Not Play

Jun 8, 2009

I built a pretty simple Flash movie for a client and put a preloader on frame 1. The preloader works fine then the movie plays. What is happening is if you go to another page on the site and then go back to the home page all you see is the preloader bar fully loaded but the movie doesn't play. You have to refresh the page for the swf to play again. It is doing it to me in Firefox but not IE 8 and it is doing it in IE8 on my clients computer...

Here is the code.
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
function onProgress(e:ProgressEvent):void{ var loaded:Number = e.target.bytesLoaded; var total:Number = e.target.bytesTotal; var pct:Number = loaded/total; loader_mc.scaleX = pct; loaded_txt.text="Loading..." + (Math.round(pct * 100)) + "%";}function onComplete(e:Event):void { gotoAndPlay(2);}

Here is a screen cap of what is happening. After you go back to the homepage all you see is the rpeloader bar fully loaded without the load text.

View 10 Replies

ActionScript 1/2 :: Play A Loaded Movie Clip Swf?

Feb 16, 2010

I've got loadMovie working and it loads a movie clip that has a stop(); on the first frame.At a certain frame within my main movie, I want to tell the loaded clip to play();My symbol is called "load1" without the quotes of course. It's an empty MC and on frame two my movie gets loaded into it. On frame three after a few seconds I have load1.play(); which I figure should work, but it doesn't!

View 1 Replies

ActionScript 1/2 :: Pause/Play Loaded Movie?

Mar 29, 2012

I have a slideshow done in Flash. I have a main movie that has a slide on each frame of the movie, with navigation buttons. On each frame, I have AS2 that loads a different SWF per frame. The AS I'm using is:
 
loadMovie("Data/2.swf", "container");
stop();
 
The number "2" goes up/down based on the slide. I want a hard-wired number versus the frame number because my client is deleting/adding slides and it's easier to keep track of it hard-wired.
 
Right now, each slide I'm loading has its own play/pause toggle button that is this AS2:
 
on(release){
play();
}
 
So what I'd like to do is put the play/pause toggle in the main SWF (and put a graphic footer under all the buttons). So how do I tell the play/pause buttons to play/pause the MC that is containing the slide SWFs?

View 1 Replies

LoadMovie Works But Sounds Don't Play When New Movie Loaded In Next Level?

Jan 10, 2010

Im using loadMovie within a .swf on level 1 to load an external movie into level 2. But when this happens the sound function doesnt work. The 2nd movie being loaded has the newsound defined and everything within itself. It plays if i run that swf seperately or using ctrl+enter. Yet when the 1st movie calls the 2nd movie onto level 1 at runtime.The sound in the 2nd movie doesnt play. But its button sounds all seem to be working.

View 1 Replies

ActionScript 2.0 :: [FMX] Play And Stop Controls For Dynamically Loaded Movie

Mar 31, 2004

i got a swf, which i've dynamically loaded into an mc called pitch_mc . After loading it want flash to stop the file from automatically playing, then have play and stop buttons that trigger the movie.

I can load movies fine, but i havent used transport buttons yet :S

View 5 Replies

ActionScript 2.0 :: Play Frame 30 If 30% Is Loaded Form The Rest Of The Movie

Jan 18, 2005

I have an animation

[Code]....

Now the animation is loaded and i need to play frame 30 if 30% is loaded form the rest of the movie.

View 9 Replies

ActionScript 2.0 :: [FMX] Play And Stop Controls For Dynamically Loaded Movie?

Mar 31, 2004

i got a swf, which i've dynamically loaded into an mc called pitch_mc . After loading it want flash to stop the file from automatically playing, then have play and stop buttons that trigger the movie.

View 5 Replies

ActionScript 3.0 :: Play Partially Loaded Flash Movie While Loading Is Still In Progress?

Nov 1, 2011

Is there any way to play my partially loaded flash movie while loading is still in progress ?like progressive video download.My app is not video based.I have only animations and interactive coding.

View 1 Replies

Php :: Flash - Telling Apart F4V From MP4 Files?

Dec 29, 2011

Both F4V and MP4 files have "video/mp4" as their MIME type. However, I'm working on a Wordpress blog where I want uploaded F4V files to be shown using a Flash video Player, and MP4 files using the HTML5 [video] tag. Obviously, I can't tell them apart using their MIME type. Is there any other way I could do it, aside of the file extension?

View 1 Replies

Actionscript 2.0 :: Movie Clip Play, Stop And Play On Mouse Event?

Sep 1, 2010

I want a movie clip (let's call it homecontent_MC) with 100 frames play to frame 80 and stop.Then when someone clicks a button on the navigation bar (home, about, services, contact, etc...) homecontent_MC would then begin playing from it's position (frame 80) til it reaches 100, at which point it wouldn't be on screen, and the movie clip that corresponds to the navigation button press (say services_MC...) would start from frame 1 and continue til it stops at it's frame 80...

View 7 Replies

ActionScript 1/2 :: Button Sounds In Play Scenes But Not In Play Movie

Oct 11, 2009

I have five different scenes all including three different buttons. When I test the buttons in "play scene" - all buttons sounds correctly in all scenes. But when I play movie, there is sound only with one button (the same button in every scene). I have looked for differences, but this button seem to have all the same parameters as the others.

View 10 Replies

ActionScript 3.0 :: Telling If A User Is Online Or Not?

Feb 20, 2009

In a game, how would I go about keeping records if a user is online or offline? I know when they logged in it could set something in the database that would indicate that they are online, however how would I know when they logout in any other method than pressing the "logout" button? Say if they just closed their browser..

View 2 Replies

ActionScript 3.0 :: Telling If An User Is Online?

Feb 21, 2009

tell if a user is online, once they log in I set something in the database that say's they're online, when they log out change that. And set something up so they will d/c after 5-10 minutes of inactivity in case they log off any other way besides hitting "log out" However, I'm not exactly sure how I would do this, because the only way that I can think of wouldn't work, because say if they just closed their browser, then it would stop running my application, and thus stop running my check to check for inactivity..

how I can make sure if a user is already logged in accurately?

View 2 Replies

ActionScript 2.0 :: Release Play Frame Then Play Movie?

Jul 23, 2004

I am creating a site, and it has a animation that it has to play before loading the next section. What I cant figure out is what function I need to create so that when a user clicks on the vision button it will play the frame after stop(); which will close that section, then have it load the frame for the section that the person clicked on. The only way I can think of doing this is creating 3 different close animations for the three sections. But I figure there has to be a way to have it play the one close animation and then goto the frame which is the portfolio section or vision section (depending on the button clicked).

View 1 Replies

ActionScript 2.0 :: On Release, Play Frame, Then Play Movie?

Jul 23, 2004

I am creating a site, and it has a animation that it has to play before loading the next section. What I cant figure out is what function I need to create so that when a user clicks on the vision button it will play the frame after stop(); which will close that section, then have it load the frame for the section that the person clicked on. The only way I can think of doing this is creating 3 different close animations for the three sections. But I figure there has to be a way to have it play the one close animation and then goto the frame which is the portfolio section or vision section (depending on the button clicked).

View 1 Replies

ActionScript 3.0 :: Telling When Alpha Tween Has Finished?

Mar 29, 2009

I have got a button that is disabled and an alpha Tween that last for 300 frames, how do I enable the button when the Tween has finished?

View 4 Replies

Ruby :: Selenium IDE And Telling It To Record Actions?

May 10, 2010

I am trying to make a little application to allow to record actions within a Flash and Silverlight application. In such manner that you can compile your interactive application in test-mode and then be able to click on elements which then passed the action to Selenium IDE which then adds this command to the testcase.I am curious if this even possible and how I can achieve this in Firefox?

View 1 Replies

ActionScript 2.0 :: Telling Dynamic Text To Update?

Nov 3, 2009

From my main timeline actions, how can I tell a dynamic text box inside a movieclip to update? I have a movie clip with the dynamic text box called catalog. The instance name for the text box is catalogtext. On the main time line, I am using a loop to repeatedly attach the catalog movie clip. I want the dynamic text to show the value of i, and each time the movie clip is reproduced, increase by 1 each time.

Here is my current attempt:

for (i=1; i<=9; i++) {
container.attachMovie("catalog","catalog"+i+"_mc", i+200);
mycatalog_mc = container["catalog"+i+"_mc"];

[code]....

Everything works fine, but the text box won't show the value of i. I must not be calling it correctly?

View 2 Replies

ActionScript 2.0 :: Telling A Null Value In The _droptarget Property?

May 23, 2002

Is there a way of telling a null value in the _droptarget property?

Basically I've got 9 draggable objects, and what I want them to do is if there is no _droptarget when you release the drag, flick back to it's riginal position.

View 2 Replies

IDE :: Telling MovieClip How Many Pixels To Move In X Direction

Apr 29, 2009

I'm moving a movie clip using actionscript (as2) instead of a motion tween (because I want to save file size) and I have this code on the first frame of the main timeline ("stone" is the movieclip instance name) and it tells the movie clip how many pixels to move in the x direction:
Code:
xTargetstone = 600;

I have this code on the movie clip itself ("stone" is the mc instance name) to handle the actual moving of the movie clip:
Code:
onClipEvent (enterFrame) {
xstone = getProperty(_root.stone, _x);
movestone = _root.xTargetstone - xstone;
setProperty(_root.stone, _x, xstone + (movestone/5));
}

The movement works fine, but the issue is that it starts out fast and then slows down over time (even though that amount of time is small). The result is that the movie clip seems to wiggle and vibrate before it stops. Is there a way for me to change the code so that it doesn't wiggle and vibrate? perhaps something with the math I'm just not totally understanding? I would like a nice consistent motion from start to finish, while being able to set the time it takes to move etc.

View 4 Replies







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