ActionScript 2.0 :: Load A Movie And Gotoandplay?

Apr 2, 2007

im having a problem with Loadmovie().im trying to load a movie and gotoandplay it like this

Code:
var placeholder:MovieClip = this.createEmptyMovieClip("monster", 5);
monster.loadMovie(_root.monsterfile);
monster._x = placeholder._x;[code]....

but it doesn't work .it does load the movieclip though

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Flash GotoAndPlay- Write The Code To Play The Movie After 1 Minute Of The Page Load?

Jul 14, 2011

How can I mention in the actionscript 3 that the movie clip on frame no. 10 should play after the webpage loads (or after 1 minute)? then stops? The code would be on Frame no. 1.

View 3 Replies

ActionScript 2.0 :: LoadedXML & GotoAndPlay - Load The Image And Text

May 7, 2005

I'm trying to create an effect, that, when the image and or text is loaded, a box slides up (via an gotoAndPlay function), so the image and or text becomes visible. Now, I can get it to load the image and text, but when I try to tell it to do the action when image and or text is loaded, it doesn't work.

[Code]...

View 3 Replies

ActionScript 2.0 :: Goto And Play Scene - _root.gotoandplay And Even Scene1.gotoandplay Won't Work?

Nov 9, 2007

For some reason i'm having problems swapping scenes in my flash movie. At first i put the action in a "actions" named layer and a link to a button. So basicly when scene1 loads the frame 1 action is "stop ();". The viewer clicks on button1 which has a code of;

[Code]...

View 1 Replies

Set A GotoAndPlay Event On A Movie Clip?

May 12, 2010

Basically trying to set a gotoAndPlay event on a movie clip (onPress / onRelease)

I've tried laying an invisible button over the top of the movie clip which did work, but disabled the movie clip from playing on rollover.

I found the following code on a Adobe forum, but don't really understand it.

myMovieClip.onPress = function () {
trace ("onPress called");
};

View 3 Replies

ActionScript 2.0 :: GotoAndPlay In Other Movie Clip

Nov 2, 2010

I have some sendAndLoad code which works good. Instead of outputting something to a text box I'd like to go to a different place in my movie. I've got quite a few embedded movie clips and the path is the following:

pages_all -> action sc copy 12 -> action content copy 13. Within the pages_all movie clip I'd like to go to frame number 13. How can I use the gotoAndPlay function to go to another movie clip.

I did try the following:

this._parent.gotoAndPlay(13)

View 0 Replies

ActionScript 3.0 :: GotoAndPlay Movie In Root?

May 24, 2011

In the past I've used _root.smoke.gotoAndPlay(1);.I can't seem to target this "smoke" movie clip that is on the root with actionscript 3.

View 7 Replies

ActionScript 2.0 :: Put A Gotoandplay() In Mc Of The External Movie?

May 26, 2003

I have this situation:

- main movie
- external movie
- 1 mc into external movie

I load the external movie into main movie and i want to put a gotoandplay() in mc of the external movie, to the external, like this:

[AS]on (release) {
_root.gotoAndPlay (45);
}
[/AS]

but it takes action in the main movie and not in external movie..

View 3 Replies

ActionScript 2.0 :: GotoAndPlay With Movie Clips?

Nov 1, 2010

I have some sendAndLoad code which works good. Instead of outputting something to a text box I'd like to go to a different place in my movie. I've got quite a few embedded movie clips and the path is the following: pages_all -> action sc copy 12 -> action content copy 13. Within the pages_all movie clip I'd like to go to frame number 13. How can I use the gotoAndPlay function to go to another movie clip. I did try the following:

this._parent.gotoAndPlay(13)

That didn't work.

View 1 Replies

Stop Movie Then GotoAndPlay On Mouse Click

Apr 9, 2009

I have a presentation which is one movie clip in one frame on the main timeline. The movie clip has quite a lengthy timeline. What I need to do is stop the movie at a frame then play on mouse click and in some cases gotoandplay, then stop again. There are no other movie clips inside the main movie clip and I want there to be no buttons. Just proceed to the next bit on mouse click.

View 2 Replies

ActionScript 3.0 :: GotoAndPlay Buttons Want To Play Movie?

Dec 17, 2009

I have buttons that i've created to play a movie clip.My movie has labels for different parts of the movie.
 
on_btn.addEventListener(MouseEvent.CLICK, turnOnTv);
 
function turnOnTv(event:MouseEvent):void{    gotoAndPlay (20);}
 
Do I have to put the name of the movie clip that should play?

View 2 Replies

ActionScript 1/2 :: HitTest GoToAndPlay(2) - Play The Movie

Sep 26, 2010

when my character hits a certain object, I want it to play the movie. BUT since the hitTest is techincally always true if my character is just sitting on the object the entire time, it continuosly player frame #2. What is the simple fix for this? The code that will just play movie clip ONE TIME, and not restart continuosuly?

View 1 Replies

ActionScript 3.0 :: GotoAndPlay To Last Frame In Movie Does Not Work?

Oct 28, 2010

Why with AS3 when i create button with gotoAndPlay(2); in movie with 2 frames it does not work? Its because its last frame. What would be work around?

ActionScript Code:
stop();
movieClip_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame);

[code]....

View 1 Replies

ActionScript 2.0 :: [FMX]: Using GotoAndPlay With An Empty Movie Clip?

Jan 15, 2003

[fmx]

related files: 7MB .FLA File
Okay...

At the _root I have an instance using an empty clip named mainPageEmptyClip. Inside of that, are various other movies.

Now, at the _root there is a menu which, when clicked, should access one of the layers within the empty clip's content.

The problem here is that I can't discern what the target would be to actually access the clip. The action worked fine before I implemented the empty clip, but now it won't work any longer.

I've tried using the target tool built into FlashMX, but it doesn't list any of the instances withing mainPageEmptyClip - that's as far as it goes. I've tried entering in what would seem to be the path, based on the instance names of subordinate movies, but it does me no good - I'm continually given the error of Target Not Found.

These are the two options I've tried....

_root.mainPageEmptyClip.gotoAndPlay(351);
_root.mainPageEmptyClip.webLayer.gotoAndPlay(156);

View 2 Replies

ActionScript 2.0 :: GotoAndPlay In A Movie Clip Using Scenes?

Feb 14, 2005

in the end of a frame of a movie clip, can i have some kind of action script that makes that movie clip stop, and then play a frame in a scene?

this is what i have-

stop;
gotoAndPlay("Scene 2", 60)

it works, but instead of going to frame 60 of scene 2, it just goes to frame 60 of the movie clip that's still in scene 1.

View 4 Replies

ActionScript 2.0 :: GotoAndPlay In A Buried Movie Clip

Dec 13, 2005

I've got a 'simple' problem with some actionscript and movie clips. I have a 1 frame movie with 2 Layers. On Layer 1 I have a movie clip called green1_mc. In this movie clip I have another called green2_mc. This animation is 120 frames long, with a stop(); on frame 59. On Layer 2 of the main timeline I have another movie clip called green_back. This is my button. I've put the following code on the clip.

[Code]...

View 3 Replies

IDE :: GotoAndPlay To A Special Frame When Movie Start

Apr 26, 2009

I have a problem when I try do to my flash movie starts at frame 20 when playing.

In the timeline, I have some stop() function at frame 5, 10, 15...
And at frame 1, I put this action gotoAndPlay(15) for starting the flash from frame 15 When I play on my PC (local), it's ok, but when i upload to internet and play, it stops at frame 5 (where i put the stop action)

make to flash movie start at the special frame.

View 1 Replies

ActionScript 3.0 :: GotoAndPlay A Specific Frame Of Loaded Movie

Oct 28, 2009

I have a swf movie that loads to my main scene using a preload. I have a button found on the main scene. When that button is pressed I would like to use the GotoAndPlay command to play a specific frame in that movie. How do I do this. my swf is called inter_mc.swf. I created a function for the button but somehow Im thinking I need to designate the swf in the goto code. This isn't working but it is what I have so far.

[Code]...

View 2 Replies

Professional :: GotoAndPlay Nested Movie Clip In Class?

Dec 26, 2010

I have a class controlling all my targets, I want to play a death scene for each target when they get shot. My targets involve several nested movie clips, I want to put the death scene on the second level of my targets nested clipsWhat code do I use to tell flash to go to the second level in my targets and play there?Here is my class code in it's entirety. I have highlighted the part thats currently playing my targets.

package {import flash.display.MovieClip;import flash.events.Event;import flash.events.MouseEvent;import flash.media.Sound;
public class SquaresClass extends MovieClip {function SquaresClass()

[code].....

View 3 Replies

ActionScript 3.0 :: Movie Clips Reset On GotoAndStop/gotoAndPlay

Jan 19, 2010

I have an avatar that's made up of several child movie clip sink points such as head, arm, pants, etc. I'm trying to be able to swap out items, such as a new hat, new gun, etc dynamically based on the user's selection.

I'm able to modify a regular movie clip in AS3, but I've now moved to having a avatar that's composed of several labeled animations such as "walk" "idle" "jump", etc. The problem is, once I modify the avatar, and do a gotoAndStop("walk"), the avatar reloads all the original assets that were created when the avatar was rigged up.

View 2 Replies

ActionScript 2.0 :: GotoAndplay A Frame In Scene 1 From A Movie Clip?

Jan 25, 2005

I need to make it so when the movie clip that is in frame 1 of scene 1 is done it plays frame 2 of my scene 1. How do I do this Im making a cartoon where a characters mouth which is the movie clip which is moving and when it is done moving i want it to go to and plays frame 2 on scene one. Its to late to do everything on the timeline, and I cant just copy the movie clip, i could but I want to just be able to do this go to and play on scene one from the movie clip instead of doing all my work all over again

View 3 Replies

ActionScript 2.0 :: Write A Function That If Some Movie Clips Are In Some X And Y Value Then GotoAndPlay('end');?

Sep 6, 2007

I would like some help on writing a piece of code.I need to write a function that if some movie clips are in some x and y value, then gotoAndPlay('end');

Code:

function gotoEnd() {
if
(tv_mc._x = 41.8;
tv_mc._y = 157.3;)
then
gotoAndPlay('end');
}

View 5 Replies

ActionScript 2.0 :: GotoAndPlay Next Scene In Movie On Pressing Enter

Apr 2, 2008

I put a movie stopped, I want that when I press (enter) the movie go to and play my next scene. How I can make that?

View 2 Replies

ActionScript 3.0 :: Send Movie Clip To Blur Instead Of GotoAndPlay?

Oct 19, 2009

How can I sent my movie clip to blur instead of gotoAndPlay?

Code:

shirt.gotoAndPlay(2);

View 3 Replies

ActionScript 3.0 :: Movie Clip Doesn't Respond To GotoAndPlay()?

Aug 4, 2010

My movie clip doesn't respond to gotoAndPlay(1) command at all. Here is the situation: The Main.fla has a movie clip instance "Mov1" and the following AS3 code in the first timeframe:

function LoadSWF(Mov:Object, swf:String ):void {
fl_Loader = new Loader();
fl_Loader.load(new URLRequest(swf));[code]......

Once it's loaded it plays once (there is a stop(); at the end).So far so good but... the following code in the button script doesn't trigger any action at all:

Mov1.gotoAndPlay(1);

Any other code in that button works fine, so the button itself works ok.

View 5 Replies

ActionScript 2.0 :: Key Press & GotoAndPlay - Skip The Movie And Go To Frame

Jan 4, 2004

I have a movie that plays as an introduction. If a user wants to skip the movie and go to frame 225 but continue playing the movie then I thought I would use this code:

[Code]...

what actually happens is the movie skips to frame 225 but then stops. Now if I leave the movie to play from the start it will get to 225 and continue playing... strange??? Yes... Here is the file:

[Code]...

View 1 Replies

ActionScript 2.0 :: GotoAndplay Frame In Scene 1 From A Movie Clip

Jan 25, 2005

I need to make it so when the movie clip that is in frame 1 of scene 1 is done it plays frame 2 of my scene 1. How do I do this , PLEASE HELP ME!!! Im making a cartoon where a characters mouth which is the movie clip which is moving and when it is done moving i want it to go to and plays frame 2 on scene one. Its to late to do everything on the timeline, and I cant just copy the movie clip, i could but I want to just be able to do this go to and play on scene one from the movie clip instead of doing all my work all over again.

View 3 Replies

ActionScript 2.0 :: If Movieclip Leaves Movie Boundaries, GotoAndPlay New Frame?

Jun 4, 2010

I am using an older version of flash. This is technically a game question but it is in older flash.My MC is a movable char that can jump, fall, and land on platforms. I would like to program a way for if the char falls and doesn't meet ground (i.e. falls out of view entirely) for a new frame to play on the main timeline OR for a movie clip to load asking it to try again OR for the game to start over completely. Whichever method is easiest.

View 1 Replies

ActionScript 2.0 :: Using GotoAndPlay From Inside A Movie Clip To Go Back To The Main Timeline

Aug 12, 2009

I have a ten-frame Flash doc. Seven of these frames have movie clips. What I want to do is be able to have a user navigate to another frame in the main timeline by clicking a button at the end of each movieclip.

I'm using this code:

on(release){
gotoAndPlay("Scene 1",6);
}

[Code]....

And I"m not getting errors but it's not working when I launch the movie.

View 5 Replies

ActionScript 3.0 :: Button - GotoAndPlay(frame Label) For A Movie Clip With The Instance Name Content

Jun 12, 2011

I want to do something like gotoAndPlay(frame label) for a movie clip with the instance name content. I am using an array for my buttons placing multiple instances of the button mc on the stage. When I add content.gotoAndPlay I get an access of undefined property error. If I add it inside the parenthesis I get an expecting identifier before my frame label name error.

[Code]....

View 2 Replies







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