AS3 Plays All Movieclips In Timeline Before A Given Frame?
Ok, I am going to try to explain this problem as best I can, but it is kind of hard to put into words... It seems like a bug to me, but I could be wrong, maybe this is the way AS 3 supposed to work.
I have 4 movieClips in my library named "MC1","MC2,"MC3","MC4" Each with 2 layers and 2 frames, on Layer 2 is just a textfield that says what movieclip it is, Like "MC1" which spans 2 frames, on layer 1 I have trace commands...
On frame 1
trace("MC1 Start") //this obviously changes to MC2 Start...etc with whatever movieclip i am in
on Frame 2
trace("MC1 Stop")
On the Stage timeline here is what I have
Frames 1-4 -- Blank
Frames 5-10 -- MC1
Frames 10-14 -- MC2
Frames 15-19 -- MC3
Frames 20-24 -- MC4
If in frame one I say--
gotoAndStop(15)
which is where MC3 resides, here's what I get in the output window:
MC1 Play Start
MC2 Play Start
MC3 Play Start
MC3 Play Stop
If I put:
gotoAndStop(20)
Which is where MC4 resides, heres what output says:
MC1 Play Start
MC2 Play Start
MC3 Play Start
MC4 Play Start
MC4 Play Stop
So in AS3 if you go to a frame number each and every movieclip before that given frame is loaded into memory and the first frame plays?!? Is this how it is supposed to work?
The reason I even started examining this, is because if you have an embedded sound in any of those movieclips and you go to frame 20, all embeded sounds before that clip will play as well. Am I missing something here, or is this a bug? Please let me know. If there are any questions about the problem, I will be happy to provide an .fla.
Thanks
Adobe > ActionScript 3
Posted on: 12/15/2007 02:03:28 PM
View Complete Forum Thread with Replies
Sponsored Links:
A Button That Plays An MC Clip, But Goes To A Diffrent Frame On Main Timeline
Hey all
Newbie in need of some help, am using Flash MX 2004. Ok, im trying to deisgn a photography site and need some help with the buttons. When you click between pictures (Clicking on the thumbnails) I want a disolve to white, between the images, so theres a smooth transition.
How I thought I could do this is to have an MC, that is called into action when the button is clicked. So the process would be like this......
On click-play movie
-jump to frame X and stop.
The movie would be a second or so long, but the jump to frame would have to be done quicker than that, and underneath the MC- if that makes sense.
I know that this can be done by using diffrent scenes, but I have about 100 pictures to put on and dont really fancy making 100 scenes!
If anyone can help with this then you will make my day, cheers
View Replies !
View Related
Sound Plays But Not Timeline
I have got two separate movie clips on the stage which are bot not working as planned. They both work if I put the as right within the clip but I need to speak to them from the root... One is a video which I set auto play to false; and I want to make it play using action script. when I put this:
container.attachMovie("introClip","introClip",6);
introClip.vidPlayer.play();
only the sound plays - the video does not play.
then there is another movie clip that is a timeline animations with sound on it and again when I tell it to play using actionscript only the sound plays. none of the animation plays.
what am I doing wrong?
-M
View Replies !
View Related
Gotoandstop - Timeline Plays
Hi all,
Is there a way to use something similar to gotoandstop (framename), but instead of it jumping to that spot, the timeline would actualy play until it got there? And if the frame was before the current location, the timeline would play backwards to the destination? (Basically, I am going to have a strip of images, and I want it to look like a film strip going by when people choose to look at each one out of order...)
Thanks -
View Replies !
View Related
Advance Timeline After FLV Plays. . .
I have built a fla file to load a flv externally, and once the flv is finished playing, to advance the timeline. It has worked beautifully for me, but now that I'm getting beta testers replying back, I'm discovering a problem: it seems that occasionally the eventListener will advance the timeline prematurely, before the video is finished playing. I believe it's a bandwidth issue, but I can't have this happening because we're anticipating a lot of crappy computers accessing this site (people accessing it from their ancient company desktops.) and I need them to be able to watch the entire video. This is the code I'm using now:
var vidList : Object = new Object();
vidList.complete = function()
{_level0.gotoAndPlay(2);}
vid.addEventListener ("complete",vidList);
stop();
You can see the site at http://www.bullydoguniversity.com, but you'll have to register to watch the videos. Please forgive me, I'm an actionscript n00b and need help. If anyone has ideas on how to edit this code to be more stable, or has another take on how to make this work, your input is more than welcome! Thanks guys.
View Replies !
View Related
[F8] Pause Timeline As Sound Plays
How would you go about pausing the play head in the timeline only for the duration of a sound file?
Have a series of screens -- using the presentation screen feature -- on each of which there is a sound file that I dragged out for about five frames, though the actual audio goes on for two minutes of so. I want the playhead to stop at the end of the audio sprite, play the duration of the wav file, then advance one frame at which time an CLICK ON NEXT ARROW message pops up. In Director this is easy to do and am looking for the Flash equivalent.
View Replies !
View Related
Why Do Movieclips Inside Movieclips Have Different _x And _y Than The Timeline?
I'm confused, why does a MC inside another MC have different _x and _y values than the main timeline?
What I am trying to do right now is animate a MC inside another MC then get the main MC holding everything to move where that new MC ended animating at (it's part of a game I'm making.)
I know it's confusing but Flash shows the cursors current X and Y in the info panel, which is the same as the main timeline. Yet inside the movieclip, an x of 76 and a y of 277 on the timeline is -195 and -30.9 (respectively) inside the MC.
How do I fix it so I can get the _x and _y values to match up so I can tell the main MC to reposition itself to the new X and Y (of the inside MC)
View Replies !
View Related
Help Moving To Next Frame After FLV Plays
I don't know much about Actionscript 3. With that said, I'm hoping somebody can help me figure out how to solve my navigation problem.
I'm working with the following Actionscript in my first frame:
function showVid1(evt:MouseEvent):void {
vid_comp.source ="videos/alzheimers.flv";
//vid_comp.width = 253;
//vid_comp.height = 204;
//vid_comp.x = 0;
//vid_comp.y = 0;
}
alzheimers_btn.addEventListener(MouseEvent.CLICK, showVid1);
function showVid2(evt:MouseEvent):void {
vid_comp.source ="videos/cancer.flv";
}
cancer_btn.addEventListener(MouseEvent.CLICK, showVid2);
function showVid3(evt:MouseEvent):void {
vid_comp.source ="videos/heart_disease.flv";
}
heart_btn.addEventListener(MouseEvent.CLICK, showVid3);
function showVid4(evt:MouseEvent):void {
vid_comp.source ="videos/polio.flv";
}
polio_btn.addEventListener(MouseEvent.CLICK, showVid4);It works just fine, but now I need to have a short movie clip play after each segment and stop there with the movie buttons (showVid1-4) still available. I would have written stop, gotoandplay before, but I'm unsure of how to achieve this effect in Actionscript 3.
I'm wondering A) Is creating a another keyframe containing my movie and navigation the best way to go
B) If yes, how can I get the movie to move to that keyframe after each one of the videos plays.
Thanks for your time.
Andy
View Replies !
View Related
FLV Plays One Frame Then Freezes
Does anyone know of any reasons that this might be happening?
ATTACH CODE-----------------------------------------------------------------------
var my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.html = true;
my_xml.onLoad = function(success) {
if (success) {
var videos = this.firstChild.childNodes;
var number_vids:Number = videos.length;
for (var i = 0; i<number_vids; i++) {
var currVid = videos[i];
var currVidElements = currVid.childNodes;
var currVidTitle = currVid.firstChild;
var currVidImageFile = currVidTitle.nextSibling;
var currVidImageFile_str = currVidImageFile.firstChild.toString();
var currVidHead = currVidImageFile.nextSibling;
var currVidVidFile = currVidHead.nextSibling;
var currVidVidFile_str = currVidVidFile.firstChild.toString();
var currVidLength = currVidVidFile.nextSibling;
var currVidLink = currVidLength.nextSibling;
var currVidLink_str = currVidLink.firstChild.toString();
// trace("Elements "+i+": "+currVidElements.length);
// trace("Title "+i+": "+currVidTitle.firstChild);
//trace("Image File "+i+": "+currVidImageFile.firstChild);
// trace("Head "+i+": "+currVidHead.firstChild);
// trace("Video File "+i+": "+currVidVidFile.firstChild);
// trace("Length "+i+": "+currVidLength.firstChild);
// trace("Link "+i+": "+currVidLink.firstChild);
var the_video = _root.vid_menu.vidClips.attachMovie("vidclip_maste r", "vidclip_"+i, 10+i, {_x:0, _y:90*i});
the_video.onRelease = function() {
var theString:MovieClip = this._name;
var thesubString:String = new String();
thesubString = (theString.substring(theString.lastIndexOf("_")+1, theString.length));
var theNumString:Number = Number(thesubString)+1;
// LOAD VIDEO
load_the_vid(theNumString);
//trace("videos/clip0"+theNumString+".flv");
};
B_lank.onRelease = function() {
getURL(currVidLink_str, "_blank");
};
the_video.highlighter.onEnterFrame = function() {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 100;
} else {
this._alpha = 0;
}
};
the_video.image_holder.loadMovie(currVidImageFile_ str);
the_video.Clip_number.htmlText = currVidTitle.firstChild;
the_video.Title.htmlText = currVidHead.firstChild;
thevideo.Duration.html = true;
the_video.Duration.htmlText = currVidLength.firstChild.nodeValue;
}
}
};
my_xml.load("videos_r2.xml");
_root.vid_menu.scroller.up_but.onRelease = function() {
clearInterval(moving_dn);
};
_root.vid_menu.scroller.dn_but.onRelease = function() {
clearInterval(moving_up);
};
_root.vid_menu.scroller.up_but.onDragOut = function() {
clearInterval(moving_dn);
};
_root.vid_menu.scroller.dn_but.onDragOut = function() {
clearInterval(moving_up);
};
_root.vid_menu.scroller.up_but.onReleaseOutside = function() {
clearInterval(moving_dn);
};
_root.vid_menu.scroller.dn_but.onReleaseOutside = function() {
clearInterval(moving_up);
};
_root.vid_menu.scroller.up_but.onPress = function() {
clearInterval(moving_up);
moving_dn = setInterval(move_em_dn, 10);
};
_root.vid_menu.scroller.dn_but.onPress = function() {
clearInterval(moving_dn);
moving_up = setInterval(move_em_up, 10);
};
function move_em_up() {
if (vid_menu.vidClips._y>=(-1*(vid_menu.vidClips._height-150))) {
_root.vid_menu.vidClips._y -= 1;
}
}
function move_em_dn() {
if (vid_menu.vidClips._y<=10) {
_root.vid_menu.vidClips._y += 1;
}
}
function load_the_vid(theNumString:Number) {
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
stream_ns.setBufferTime(.1);
thevideo.attachVideo(stream_ns);
//stream_ns.play("videos/chris_close_for_import.flv");
stream_ns.play("videos/clip0"+theNumString+".flv");
stream_ns.onMetaData = function(infoObject:Object) {
for (var propName in infoObject) {
trace(propName+" = "+infoObject[propName]);
}
};
stream_ns.onStatus = function(infoObject:Object) {
trace("infoObject: "+infoObject.code);
if (infoObject.code == "NetStream.Play.Start") {
//stream_ns.pause();
stream_ns.clear();
}
if (infoObject.code == "NetStream.Play.Stop") {
}
};
}
View Replies !
View Related
Controlling Which .swf Plays In Which Frame...
Hi - I am working on a project where I want a navigation .swf in one frame of a page which will hopefully control a number of .swfs in other frames - so say I have navi.swf in my frame called "Navgation" and I had another frame called "Main" - could I use actionscript to replace (I know that's the wrong word...) the .swf in the frame "Main"
Thanks...
View Replies !
View Related
Stop A Movie After It Plays To A Certain Frame.
I have Flash 5.
I have a weather barometer, which I want to move up and down depending on changes in the temperature.
The movie is 100 frames long, 1 frame for each degree.
How can I get the barometer movie to play upto the current temperature, and then stop playing when it reaches the currect temparature?
Thanks.
View Replies !
View Related
Movie Clip Only Plays 1 Frame
Hi all,
I have a mc of 50 frames inside a parent clip of 1 frame.
The Parent clip is loaded onto the main stage when a button is pressed using attachMovie().
Now, when a second button in the Parent clip is pressed, I want the tween to start on the child.
I'm doing this like this:-
Code:
//code attached to child clip, inside the parent clip.
onClipEvent(load){
gotoAndPlay(2);
}
It all works, except the fact that the child's clip animation stops at Frame 2 and doesn't play the other 48 frames!
Any ideas?
View Replies !
View Related
Movie Clip In Frame Plays Through All Scenes
Hi,
I have action script that is within a frame to play snow, I wanted this to stop playing in scene 3 at frame 300 but it keeps playing throughout. I have tried movie clip controls but everything I do doesn't work to stop the snow movie clip.
Any help would be great.
Thank you in advance.
Curtail/
View Replies !
View Related
How To Trigger Event When Frame Of Nested MC Plays?
I know this must have a simple answer, because either it can be done or not done...here is what I would like to do:
I have a parent movie clip "Parent_mc" and it has a two children based on library MC "Child_mc". Child_mc has 20 frames that loop. The two instances of "Child_mc" are named Child1_mc and Child2_mc respectively.
Say I want Child1_mc to loop, but Child2_mc I want to stop on frame 10.
Is there a way to put AS on Parent_mc that basically says: when Child2_mc plays frame 10 stop()?
For the life of me I can't figure this out without putting AS on the child and making multiple library clips (which is a really crappy solution) or putting stop conditionals in the child_mc that are set by the parent (another really crapy solution). It seems like this should be so easy.
thanks in advance!
-AB
View Replies !
View Related
Can An Html Page Dictate What Frame A SWF Plays Or Goes To?
Hello,
I have wondered this for a long time, hopefully some of you clever lads & lasses will be able to help me.
I have a flash header for a web site, that appears on every page. What I would like, is that when it's on the home page, the header.swf shows the home page view, and when on the contact page it shows the contact page view etc.. different artwork different text but same header file.
IE the html page sends information to the swf file telling it which frame to go to and stop (or play as the case maybe)
Is this possible?
Or do I need to create a new header for everypage, which seems a bit of a wasteof resources.
Any help greatly appreciated
Thank you
Tilly
View Replies !
View Related
A Button That Plays A Movie Clip And Goto Frame
Hi all.
Ok im a newbie when it comes to Flash, but im learning and thats the main thing! Anyway im trying to build a site and would like some help with a transition im trying to make. What im trying to do is play a movie clip between frames. So say we have two menus, when you are on menu 1 and you click the button for menu 2, a short movie clip plays and then you stop on menu 2. I realise I can do this by putting the movie clip on the main scene timeline, but is there anyway i can put it on the button? I think the action script would be something along the lines of "On release play MovieClip and goto frame X"
As i said i want the movie to play as an almost filmic transition between menus, with a fade up and then out (Have got that bit sussed using the alpha controls)
Im pretty rubbish at scripting so far, so if this is easy and im just being silly then i apologise!
Thanks if you do relpy
View Replies !
View Related
Button Plays Frames, But Only If Scene 1 Is On A Certan Frame
ok, im pretty new to flash so this may be an elementary question. The problem: I have a nav menu i made in flash. all of the nav buttons are movie clips and they are placed in scene 1. i have one nav button that plays a couple frames in scene1. these frames bring in a sub nav which is in the movie (scene 1) and not a movie clip. I want the buttons that arnt connected to this sub nav to play the 2nd frame in scene to get rid of that sub nave in scene 1 but only if the current position of scene 1 is frame 38. im sure there is a way to do this, but i have no idea really. any help apreciated
View Replies !
View Related
How Do You Open A New Window With Flash Movie That Plays At Certain Frame?
I'm trying to make an image gallery thing of sorts and I am having a hard time figuring it out.
I have a .swf file and I want the user to be able to click on it and it opens a new window that will play a new .swf file at certain frames based on what they clicked in the original .swf file?
So if the user clicks on button 1 in the main .swf file it opens a new window that plays the other .swf file and starts at frame 1.
And if the user clicks on button 2 in the main .swf file it opens a new window again and starts at frame 2 and so on and so on.
I'm fairly new to flash so I don't even know if this is possible but Im sure if it is, someone here would know.
Any help would be greatly appreciated!
View Replies !
View Related
Hold Playhead In Frame While Flash Video Plays
Hi
I have a streaming flash video in my movie, whcih plays fine. When the user
presses a button the playgead goes to a certain frame where the flash video
is placed. A stop() in Actions layer holds the playhead there and the whole
movie plays. Fine.
However, I want the playhead to move to the next frame when the flash video
finishes playing. How do I do that? I would be grateful if you could point
me in the right direction. I am working with Flash MX Pro. on Windows XP.
Thanks.
Nishi
View Replies !
View Related
Cant Get Frame In Main Timeline To Play Frame In Movie Clip
Hi all,
Ok, I want a section of a movieclip to play up until a certain frame on the main, or _root timeline. Then I want a different section of the same movie clip to play. Now I have the movie clip all set up all fine and dandy, yet I cant get it to the frames or 'section' it is playing when it reaches the apropriate frame. I have the following code on the _root timeline frame.
Code:
gotoAndPlay("stop");
(I have a frame label "stop" where it should be) Is this the right code I should be using? It has worked in the past, but it has been in between an on (something) event/action (not quite sure of the correct termanology there)
Please help.
View Replies !
View Related
Looping On Current Frame Till Movie Clip Plays
Hi,
I am making a self running presentation. I have around 10 items and their descriptions to be displayed on screen one after the other. I am making 10 movie clips, for all the ten items. All the animations, etc are done in the movie clips. Now I just want to place the movie clips on the timeline and play them.
The problem that I am facing is that, my movie clips have different frames some have 25 frames while some have 250 frames also. While placing these clips on the timeline I am facing a problem, I don't know how many frames to assign to each clip, some movie clips loop and some play half while viewing the final flash swf.
Can tell me how can make the playhead stop on the current frame till the movieclip finishing playing, I don't want to keep experimenting by dragging frames on the timeline.
I know it is possible in director, to make the playhead stop on the current frame till the movie playing on the current frame ends, but I am not sure if we can do the same in Flash.
I use Flash MX.
Any suggestions on this are welcome, I am close to my deadline of submitting the presentation.
Regards,
Vaibhav Kapoor
View Replies !
View Related
How Do U Start & Stop MC On Frame 3 On The Timeline & Proceed Onto Frame 4 W/ New MC
1.What I'm doing is setting up a "Cell Phone Slide Show" to load images and .AVI’s (Movie Clips) into the phone screen strictly when the user presses the cell phone button. So, when the user presses the cell phone buttons (“OK”, #1, #2, #3, “CLR”, etc.., an image or MC loads into the cell phone screen.
2.My Time Line consists of 5 Layers: actions, cell phone buttons, cell phone screens items, cell phone, cell phone description
3.“action” Layer uses: stop(); from Frame 1 to Frame 5 – to stop at the last frame 5.
“cell phone buttons” Layer uses: on (release) {nextFrame(); } from Frame 1 to Frame 5 – to proceed to the next frame.
”cell phone description” – from Frame 1 to 5 - loads a new cell phone text description on each frame.
”cell phone” - from Frame 1 to 5 – just a background image of the cell phone.
“cell phone screen items”: I am loading images and Movie Clips on this Layer. For example, Frame 1: Image, Frame 2: Movie Clip (the movie needs to start and stop to go into frame 3). Frame 3: Another Movie Clip (the movie needs to start and stop to go into frame 4).
Frame 4: an image with movie clip label. Frame 6: Another Movie Clip (the movie needs to start and stop to go into frame 7).
Frame 8: an image with movie clip label. Etc…… This will proceed to 30 frames.
I am trying to start and stop these movies on specific frames by adding action within that frame on it’s own separate Time Line:
This Movie Clip time line consists of 70 frames. The Movie Clip is called: “tud_vid1”. I put a Label on frame 1 called: “Start” and put a label on frame 70 called: “stop”
My code for this Movie Clip Time Line is:
_root.tud_vid1.gotoAndPlay(start);
_root.tud_vid1.gotoAndStop(stop);
4.The problem I’m having is instead of the Movie Clip on Frame 3, for example, Starting and Stopping when the user clicks on the cell phone button, and going onto Frame 4 to play the next Movie Clip (with Start and Stop Action) ; the Movie Clip on Frame 3, “Keeps on Looping” and doesn’t move onto Frame 4.
5.How would I set up this “Cell Phone SlideShow” to Start and Stop my .AVI’s on each frame and move onto the next frame and play the next movie from beginning to end or play the next image.
6.I attached a screen shot of my main time line: CellPhone_Timeline1.jpg
7.I attached a screen shot of the separate Movie Clip time line on frame 3: CellPhone_MC_Timeline1
View Replies !
View Related
Help Load A Movie (and Frame) On A Specific Frame In My Timeline
I need to Load a movie and go to a specific frame within that loaded movie.
I know how to do this "on press & release" commands but how do I get it to load when a certain frame is reached in my timeline.
Example. When finished preloading it plays frame 25. When it gets to frame 25 I wan't a movie to load and start on a certain frame.
If you need more info or I am not making myself clear, please let me know.
Thanks in advance.
View Replies !
View Related
How To Get All Movieclips From One Timeline
Hi everyone,
I'd like to loop through all movieclips in a timeline but don't know, how many of them are on this timeline at a certain frame (nor do I know the instance names).
Best thing would be an array or collection - just like all properties of a movieclip.
The goal is to stop all mc's with a "pause"-button - and of course start them again with "continue".
Does anybody know an answer or a hint to this problem?
tia
Edi
View Replies !
View Related
Timeline And Movieclips
Could someone please explain how I step into and out of a movieclip's timeline when the movieclip is placed into a single frame on the main timeline?
At present when I step through the movieclip itself it plays fine but when I add the movieclip to the main timeline and try to play it the clip appears to be skipped over.
Any help would greatly be appreciated.
View Replies !
View Related
Help With Timeline In Movieclips,
I have a movieclip on level1 in my movie.
The main timeline level0 is stopped,
but after this movie on level1 finishes playing, I want it to go to Scene 2
the problem is, placing goto andplay scene 2 frame 1 ( or _root.goto.andplay. bla bla) at the end of the movieclip doesn't work.
any ideas? advice?
Thankyou VEry much
--wyatt
View Replies !
View Related
Movieclips And Timeline
Attached is a small file of what I am trying to do. I do not know if this is the right way to do this. I am trying to make a animated movieclip and put it on the
main timeline on frame 1 and then on frame 2 of the main timeline have it disapear and another movieclip apear. Just learnig Flash.telekes@rcn.com if you want to email me.
View Replies !
View Related
Help With Timeline In Movieclips,
I have a movieclip on level1 in my movie.
The main timeline level0 is stopped,
but after this movie on level1 finishes playing, I want it to go to Scene 2
the problem is, placing goto andplay scene 2 frame 1 ( or _root.goto.andplay. bla bla) at the end of the movieclip doesn't work.
any ideas? advice?
Thankyou VEry much
--wyatt
View Replies !
View Related
Movieclips And The Main Timeline
Have a preloader in a movieclip placed on the timeline.
Now it calculates the percentage which is fine and works.
Now when the movie loads and percentage gets to 100 there
is a button placed within the movieclip to continue to a label named MUSIC on the main timeline.
the button is not working. What is the correct code
to be used for this script to get the moviclip to recognize the label "MUSIC" on the main timeline.
sorry not at home unable to give the code......
View Replies !
View Related
Movieclips That Control Timeline
I need to play the main timeline using actionscript in a button contained in a movieclip. My movieclip is a dragable button and when it hits an area it is supossed to run the main timeline.
This is the script I'm using on the button but it doesn't work:
on (press) {
startDrag("/box", true, 401, 186, 669, 383);
}
on (release) {
stopDrag();
if (_root.box, hitTest(_root.area2)) {
gotoAndPlay("Scene 1", 5);
}
}
I have no actions on the movieclip
Thanks in advance!
View Replies !
View Related
Movieclips Apearing In Timeline
Is there a way that we can preview the movieclips on the main timeline in flash? Instead of going in the movieclip to see houw long the duration of the animation is and then setting the correct number of frames on the timeline.
Its just such a tedious process that would be much easier if i could just see the movieclip animate on the timeline instead of constantly seeing the first frame of the mc.
View Replies !
View Related
MovieClips In Timeline Levels Again.. Help. Still.
OK i've posted this a couple times but nothing has worked,
I'm trying to get the movie to go to Scene 2 at the end of a movieclip.
Below is an example of what I'm trying to do.
_root.gotoandplay doesn't work
and neither does gotoandplay
so i'm stuck. still, any help or advice on where i could find help would be real awesome. Thanks!
--wyatt
View Replies !
View Related
Animated MovieClips On A Timeline..
I have a series of thumbnails that I have made into movieclips so that I could animate them. I have named all the instances. I have a main jump page to go to a particular picture. Each picture has a set of thumbnails (movie clips) that are animated on each. When I built it, they work fine by themselves, but when I created my "jump page" the smaller thumbs lose their overstate and onRelease. My actionscript loads on the jump page and to a frame that I request with no problem, but. Why is my actionscript not working?
stop();
mike.onRollOver = over;
mike.onRollOut = out;
mike.onRelease = down;
function over() {
this.gotoAndPlay(2);
}
function out() {
this.gotoAndPlay(5);
}
function down() {
this._root.gotoAndPlay(101);
}
john.onRollOver = over;
john.onRollOut = out;
john.onRelease = down1;
function over() {
this.gotoAndPlay(2);
}
function out() {
this.gotoAndPlay(5);
}
function down1() {
this._root.gotoAndPlay(110);
}
gretchen.onRollOver = over;
gretchen.onRollOut = out;
gretchen.onRelease = down2;
function over() {
this.gotoAndPlay(2);
}
function out() {
this.gotoAndPlay(5);
}
function down2() {
this._root.gotoAndPlay(120);
}
johnathan.onRollOver = over;
johnathan.onRollOut = out;
johnathan.onRelease = down3;
function over() {
this.gotoAndPlay(2);
}
function out() {
this.gotoAndPlay(5);
}
function down3() {
this._root.gotoAndPlay(130);
}
george.onRollOver = over;
georoge.onRollOut = out;
george.onRelease = down4;
function over() {
this.gotoAndPlay(2);
}
function out() {
this.gotoAndPlay(5);
}
function down4() {
this._root.gotoAndPlay(140);
}
pablo.onRollOver = over;
pablo.onRollOut = out;
pablo.onRelease = down5;
function over() {
this.gotoAndPlay(2);
}
function out() {
this.gotoAndPlay(5);
}
function down5() {
this._root.gotoAndPlay(150);
}
View Replies !
View Related
MovieClips In Timeline Levels Again.. Help. Still.
OK i've posted this a couple times but nothing has worked,
I'm trying to get the movie to go to Scene 2 at the end of a movieclip.
Below is an example of what I'm trying to do.
_root.gotoandplay doesn't work
and neither does gotoandplay
so i'm stuck. still, any help or advice on where i could find help would be real awesome. Thanks!
--wyatt
View Replies !
View Related
Actionscript Or Timeline Tween Frame By Frame?
Hi just wandering if someone can tell whether this
http://cmd9.m78.com/works/fmxdf3/index.html animation would have been done using actionscript or just frame tweening as it looks very fast and slick compared to the frame by frame stuff I have done! Slowly realising that there seems to be only so far you can go with frame by frame...
Cheers for tips
View Replies !
View Related
Playing Movieclips In Main Timeline
I asked this question in the MX forum but nobody gave me any useful advice apart from the file size wasn't big enough to make it play slowly.
I'm using MX. basically my problem is this. I have a webpage I've made in flash, on the first frame I have a preloader (the loading with the dots thing) and I've scripted onto it, goto and stop on frame two. on frame two I have an instance of an animation which is 150 frames long. on the animation itself I have a stop action, and a goto and stop on scene 1 frame 3. BUT when I play the swf it just loops the animation on frame 2 and never gets to frame 3. If I make the frame one action a goto and play then it jumps straight to frame 3.
PLEASE someone help me. I'm feeling SO dumb here. I'm sure it must be something basic I have got wrong.
thanxs heaps
View Replies !
View Related
Co-ordinates Of Movieclips On Main Timeline
I have two movie clips, one called 'panel', the other 'box'. Both have registration points set to top left 0,0. I put one instance of each on the main timeline, their registration points roughly on the same location, with 'box', which is smaller, on top of 'panel'. Since 'box' will be draggable, I wanted to find a way to check if 'box' is inside the boundary of 'panel'.
I used some text boxes on the main timeline to check their co-ordinates, and put in actions such as:
boxTY = _root.box.boxshell._y;
panelTY = _root.panel._y;
where boxTY and panelTY are text boxes designed to show the top y position of box and panel, and boxshell is the background in 'box'.
I thought their value would be similar since I put them on near the same location. But they differ by nearly 200. This seems so illogical, but there must be an explanation. Can anyone tell me how to get the comparable co-ordinates of the two movie clips on the main timeline, so that I can check their position relative to each other? is this possible?
View Replies !
View Related
|