ActionScript 3.0 :: Control Timeline In An Embedded Movie Clip From Scene 1?
Dec 12, 2010How do I control the time line in an embedded movie clip from Scene 1?[code...
View 9 RepliesHow do I control the time line in an embedded movie clip from Scene 1?[code...
View 9 RepliesI have a movie clip that plays within my scene.I have only 1 scene which has 2 frames.How do I control what frame the scene is on from the movie clip? is it:
Scene1 on (release) {
gotoAndStop(2);
}
I have my flash document set up in the following way: On the main timeline I have my buttons that I want to play movie clips embedded inside a movie clip on the main timeline.However, when I click each different button, the current movie clip stops playing and then the movie clip corresponding to the button plays.
I want them all to be able to play at once. So for example you push button 1 and the alien plays, but half way through you could click button 2 and the alien clip would keep playing, but also the helicopter clip would begin to play as well.Here is the code I have so far:
building_btn1.addEventListener(MouseEvent.CLICK, alien);
building_btn2.addEventListener(MouseEvent.CLICK, helicopter);
function helicopter(e:MouseEvent):void {[code]......
I put a button in a movie clip to control actions in the main scene. Shouldn't that work? For some reason it doesn't.
View 11 RepliesWhat is the script to control the volume of multiple audio tracks embedded within a movie clip?
View 1 RepliesI am simply trying to tell my main timeline to go to the next frame when a movie clip reaches the end of its timeline (using AS3). Here is what I have which does not work.
Code:
MovieClip(root).gotoAndPlay(nextFrame);
I have a movie clip with buttons placed on the stage. I set the buttons in the movie clip to GoToandStop on unique frame labels on the stage. However, the buttons are not working.
View 26 RepliesIn Flash CS3 using Action Script 3, how can I tell the main timeline to gotoAndStop(); a certain frame from within a movie clip.
I have a menu (which is a movie clip) with various buttons. Each button corresponds to a certain frame in the main movie. So if a user click on Button1, it should gotoAndStop(1); and Button2 should gotoAndStop(2); and so on.
In Action Script 2, I could use _root.gotoAndPlay(2); from what I understand, but that does not work in Action Script 3.
Trying to load a movie clip into another movie clip and control the loaded clip timeline from main stage.
Code:
var myLoader:Loader = new Loader();
addChild(myLoader);
var url:URLRequest = new URLRequest("Transcription-RNAChain.swf");
[code]....
The movie appears to load, as it appears on the stage, but it throws the following error in the debugger on frame 1:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
Additionally, I'm getting neither the result of function loadingError or function finishedLoadingFunction.
I have a button action not working to control another movie clip timeline. The movie clip timeline I want to control has an instance name but for some reason it's not playing. The button is on a different movie clip timeline. Both movie clips are on Scene 1. I think there is something wrong with my target path?
on(release){
_root.insMcWorkNav.gotoAndPlay("lbWork04");
insMcWorkNav is the movie clip, lbWork04 is the frame to play
im trying to navigate through a movie clip and stop at frame labels using individual buttons to call to individual labels while being able to see the on the way to the frame(for a blurred effect).my goal is to jump from point A to point F to point Z and see all the frames in between and visa versa.
View 1 Replieswhy the timeline inside these movie clips and the timeline on the main scene have to correspond to work. [URL]
View 1 RepliesI've got a main timeline .swf file called "blank.swf" which contains nothing but two blank movie clips one called called "pproduct", the other called "ppalette". In the script frame of this main timeline I use the simple "Loader = new Loader();" method to load a URL of an .swf file into the "ppalette" movie clip. The "ppalette" movie clip contains several color chip buttons, each of which use the same Loader method above to load an external .swf into a clip. Here's what I want to do: let those color chip buttons, when the "blank.swf" file loads, be used to load an .swf movie into the "pproduct" clip on the main timeline. I'm wanting to be able to swap depths with various movie clips which will take out the movie which has the palette, but I want whatever that palette has loaded in the original "pproduct" clip to stay there.
[Code]...
I'm trying to get a movie clip to automatically load up another external clip, after playing an embedded flv.
This is what I've tried so far:
var holdFrame = setInterval( holdFrame, 5000);
gotoAndPlay(
_root.mc_holder.loadMovie("swf/library.swf"));
clearInterval (holdFrame);
Although it throws no errors, the setInterval is ignored and it just loads direct into the next mc clip.
I am making a web site in flash in which I have multiple movie clips.I have mc_buttonMenu on the main timeline.Inside of mc_buttonMenu, I have 3 buttons that are all button symbols.From the main timeline, I have a movie clip called mc_allPages.In this movie clip, I have a few layers.I have the content layer.This layer controls how my pages display.I have another layer called labels.I labeled frames 1 to 10 as 'home' and layers 11 to 20 as 'contactUs'.I have another layer in mc_allPages called actions.I put a stop(); on frame 10 and frame 20 on this layer.I want to be able to control the movie clip mc_allPages from within the movie clip mc_buttonMenu.I put some action script in various places, but it never worked.I tried this action script:
_root.btn_home.onPress()
{
Gotoandplay("home");[code]...........
I tried placing that code on the main timeline, inside mc_allPages, inside mc_buttonMenu and split up into both buttons appropriately for btn_home and btn_contactUs.Sometimes the animation would stop on frame 10 and sometimes it would just play through to frame 20 and ignore the stop(); I put on frame 10 inside the mc_allPages movie clip.However, whenever I pressed the button ( btn_contactUs ), it never went to the frame labeled "contactUs" in the allPages movie clip.
Is there a way to control the sound of an embedded flv in a flash movie? I haven't seen any tutorials on controlling the sound volume for an embedded video vs. netstream.
View 5 RepliesI am using an embedded flash movie in my web page. I would like to show some alerts on the page when the movie has played for x seconds, pause the movie while the user views and dismisses the alert and start playing the movie again after that (or the user can press the play button, not important). The important parts being - the app being able to find out if x secs worth of movie has played, pausing the movie then and showing an alert. Is this possible using a php/javascript code within the web page? Or will I have to do this within the flash movie itself?
View 1 RepliesI cannot seem to find anything of what I need from google.(Well, I can find the reverse method to what i need ) Basically I wish to access a variable declared in the Root Timeline from my Movie clips timeline.
[Code]...
I am trying to embedded an flv into a flash movie timeline that runs at 12fps.My source avi is 60 seconds in duration. However using cs3 video encoder with the frame rate set to 12 fps results in an flv that uses up 1440 frames of my timeline.In fact any frame rate selected always results in an flv of this frame length? Assuming that I need the flv to be 720 frames total (60 seconds * 12 frames), and not twice that duration as that would still have to be played at 24 fps. I undertand that there is a relationship to the original fps the movie was shot in (in this case 24fps) but will/does the encoder not produce an flv with the frame rate altered to match my timeline fps? or do you basically have to use a camera that shoots the original avi at 12fpsto get it to play in 12 fps timeline??
View 4 RepliesI have a file comprised of 1 scene and two movie clips. The clips are instanced into the Main Timeline and occupy Frames 1 and 2 respectively.MovieClip1 is an animation that has navigation buttons that appear at the end of the clip. I'm trying to get mouse click navigation to make Frame 2 on the Main Timeline active.
Here is what I'm trying but it is not working:
btExplore.addEventListener(MouseEvent.CLICK, ExploreClick);
function ExploreClick (evt:MouseEvent):void {
gotoAndStop(2);
}
this takes the animation to Frame 2 of the Movie Clip Timeline not Frame 2 the Main Timeline.
I am trying to place buttons inside a movie clip to control the timeline of the same movie clip. This does not seam to work like buttons on the main timeline. When I play the movie the cursor does not turn into a hand and the rolloever affects only sort of work. I have read about controling the movie clip with buttons on the main timeline, but I need one of the buttons to change halfway through the movieclip. I want to be able to jump to interior shots while in the exterior section and vice versa. It would seem that button would work the same way inside a movie clip as they do on the main timeline, but that does not appear to be the case. I am using CS3. Action scrip 2.0 is selected, but I could change it to 3.0 if it would make a difference.
View 6 RepliesI am targeting a a movie clip. The problem is that all the syntax I have found for targetting clips looks like this: _root.sample_mc.sample2.mc. etc. The problem is, my target clip is in an swf that I've loaded into a container clip from my main timeline. So, essentially, I have a home.swf that loads menu.swf into a container called 'location'. In menu.swf, I have an MC called center, which contains the MC I am targetting called 'target'.
View 2 RepliesFor example you have a flash with many navigation buttons. Each button will show different page.
Which is the better way: to use scenes or only using movie clips?
I've got a scrolldown menu and want a button w/in that MC to point back to a frame in Scene 1 on the main timeline. How would I do that? I tried the following code but it doesn't work. The frame I'm trying to get to is "facelift" (the site is for a plastic surgeon).
function toFacelift(e:Event) {
gotoAndStop (1, "facelift");
}
faceliftBtn.addEventListener (MouseEvent.CLICK, toFacelift);
ok we are talking about as2 here. here is the thing thats bugging me. I made an animation in a movie clip. It is in the first frame of my main(and only) scene which is called "main". At the end of the animation in my movie clip ive set up a frame with the following script:
gotoAndStop("main", 2);
but instead of going to the second frame on my main scene, it goes to the second frame in the movie clip and stops there.
I have a function "GetTime()" in the actions layer of Scene1 In Scene 1 I have a MovieClip called seconds_mc in the actions layer of seconds_mc I want to have a Enter_Frame Event that calls GetTime(). addEventListener(Event.ENTER_FRAME, ????.myFunction) What replaces the question marks to get me to the function on Scene1?
View 2 Repliesi want to click on a button and before i go to another scene i want to see first a movie clip playing. How can i do it?
View 1 RepliesI'm trying to call a scene from a movie clip. But nothing works. I tried to label the first frame in the second scene but that didn't work, root and crap also failed. I'm deparate. I was trying to link the chalkboard from the first scene (clipboard) to the second scene (board). There is a button within the movieclip I'm trying to use, but it just doesn't work.
View 1 Repliesim not still working on the project currently... but... im just curious about somthin... i was making a website for a project for school... and i was calling movie clips within movie clips with a lot of telltarget... then within one of them i had a button and i wanted to go to the second scene... but it wouldnt work... it wouldnt go to the scene... my friend had the same problem with somthing he was working on... im just curious if there is a way... like maybe a path or somthing for the scene...
oh yeah... also say i have a movie clip called "clip1" and a movie clip within "clip1" called "clip2"... ok... if i am in "clip2"... is there a way i can access "clip1" from inside of it... like using telltarget sort of inside out like i guess...
I have in the Scene 1, on layer 2, Frame 2 a movie clip named "Festival_conteudo_mc".And inside of this i have a buton ( close_btn ) that I would like to close this movie clip and go to the Scene 1 - to the main menu.On Scene 1 I have my menu buttons ( Festival and Contacts ).
The problem is that i dont know how to make them communicate, I've tryed _root, and As3 tells me it doesnt exist and its replace by Stage...I too new in this stuff. What happens when i put
close_btn.addEventListener(MouseEvent.CLICK,menu)
function menu(Event:MouseEvent):void
{
gotoAndStop("Scene 1", 1);
}
It give Script no error, but when i Export the movie a error 1067 is reported.