ActionScript 3.0 :: Impoting Swf, Target Specific Frame?
May 14, 2010this code retrieves my swf file ("home"), but can I send it to a specific frame (or label)?
[Code]...
this code retrieves my swf file ("home"), but can I send it to a specific frame (or label)?
[Code]...
I have been doing really well figuring everything out up until now.[code]How it stands, what is this link pointing to? Can I make it target a specific frame in a specific movie clip?And if someone would be so kind and explain what this is saying in 3rd grader terms.
View 3 RepliesWhat is the best way to target a specific frame from an exterally loaded swf?
View 3 RepliesWhat is the best way to target a specific frame from an exterally loaded swf?
View 3 RepliesI have two movie clips on the main stage: mcNav and mcContent1 (mcContent1 is located in the 2nd frame).
When I click btn1 which is a movie clip within mcNav, I want to go to the 2nd frame on the main stage where mcContent1 is located.
And then go to frame 10 within mcContent1 and stop.
Here's what I have:
btn1.onRelease = function() {
_root.gotoFrame(2).mcContent1.stop(frame 10);
i need to change the colour of a graphic in a specific movie in a specific frame. if i have a movie clip instance-named "sidetext" thats 15 frames long, and i want a graphic in the movie, called "letterp" to change to one of four colours that i want it to randomly at frame 10 and stay that colour uintil frame 15, how can i do this?
View 2 Replieshow do i export specific frames not all frame. ex: if flash has 1 to 200 frames. here i want to export 51 to 150 frames as a movie. if there is any command or plugin to export movie like this.
View 0 RepliesBasically once my animation loads I want to pull in an external SWF at a specific frame, basically like the "home page" swf that will display first. Underneath that I will have "About Us, Contact, etc..." and those will each load an external SWF into my movie clip. My movieclip right now is called mcHolder. Here is the code I am currently using for the buttons:
Code:
//About Us Button
function test2(evt:Event):void{
[code].....
I'm trying to get the following movieclip smallbutton to link to frame 5 on movieclip cont.The way the timeline is built is as so:content_mc > cont > (more mcs) > smallbuttonThis seems to be an issue from every answer I've tried so far since the movieclip "cont" is not being called in the main timeline; first there's content_mc and then comes cont.How would I go about getting the movieclip "smallbutton" to link to the 5th frame of movieclip "cont"?This is for AS 2.0So far I'm at:on (release) { _root.gotoAndPlay("cont"); _root.smallbutton.gotoAndPlay(5);
View 7 RepliesI got this rectangle_mc such that when I drag it to either the mask1_mc or mask2_mc, it will load movie_mc and plays it on the specific mask. But there's something wrong with my code.Here's the code:
Code: Select allimport flash.display.MovieClip;
var movie_mc:MovieClip = new movie();
rectangle_mc.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
[code]....
I'm trying to get this function to target myClip_mc and movethe frame head to another frame label.
var counter:Number = 1;
//textBeGone
invisible_btn.onRelease = function(){
counter++;
if(counter % 2 = true) {
[code].....
there is a button on 1st frame. there is a movie clip on frame 2. I named the movie clip as "ball_mc" I want to go to frame 2 when I click on button on 1st frame. I know that the code "gotoAndPlay(2);" on button will work. But for some reasons, i want to try another way.... i tried several codes:
1. this.ball_mc.gotoAndPlay();
2. _level.ball_mc.gotoAndPlay();
3. _global.ball_mc.gotoAndPlay();
4. _root.ball_mc.gotoandPlay();
However these codes dun work. Is there other way to resolve this besides this code "gotoAndPlay(2)"?
I did this:
Code:
var mc_array:Array;
mc_array = new Array(3);
mc_array[0] = mc1;
[code]....
I want to use arrays to shorten things, but I don't know how to get and set the properties of individual entries of the array (with a mouse click).
I'm working on a small project right now, and it consists of three toggle buttons that control various displayed data. I'm trying to make another toggle button, that once selected, will set the three existing toggle buttons to their "on" state. I'm pulling my hair out trying to target these individually through a loop. I'm currently working in the "//Begin Turn All On" section.
Code:
//New Button Collection Embedded in Movie Clip mc"buttonCollection"
var myBtns:Array = [buttonCollection.button1,buttonCollection.button2,buttonCollection.button3]; //Put all your buttons here
[Code].....
I have a all flash site that has several FLV's that people can click on called Green Solutions, Home Control, Temperature Control. My client wants to know if its possible to put a hyperlink in a email to his clients that would directly link them to any one of those videos. I assume I need to pass a variable of some kind but I am at a lost of where to start with this thing.
View 5 Repliesany way to target a specific instance name based on what a variable is equal to? would be ALOT better than having to write the function 36+ times..
View 19 RepliesI want to load a movie loadMovie ("target", _root....) and so on. My question is can you target a specific scene in the load movie command?? I have a movie with a button that loads a new movie into level 0 so it replaces the first movie. Now in the new movie I have a button that unloads the new movie and loads the previous one. But it starts it off at the veru beginning of the movie. I want it to pick up where the first button click took place.
View 2 Repliesif its possible, via AS3, to create a frame label in a movieclip on a specific frame.
Obviously I can do it by manually by setting up labels on the timeline within the target movieclip, but I would rather use an array so I can loop through it, creating a label name on a the specific frame each time?
so for example I would end up with:
myLabelOne on frame 10
myLabelTwo on frame 25
myLabelThree on frame 115
etc
I am loading a swf into an empty MC with this code:
on(release) {
loadMovie("movie.swf", _root.container);
}
what I want to do is also go to a specific frame or frame label in that loaded movie. I thought I could do it by adding something like this:
_root.containter.gotoAndPlay("frame");
Is there a way to get the frame label on a specific frame, without it being the current frame?
I've tried accessing it through:
this.scenes[0].labels but it doesn't allow me to check a specific point on the timeline.
I have a movie clip on my stage that has its own timeline with 7 frames, each a keyframe with different content. How would I target a movie clip that appears only on one of these frames within the parent clip?
I'm used to using dot syntax to target clips within clips (eg. parentClip.myClip.onRelease = function(){...), but when I try this with a clip that only appears on one of the frames in the parent clip it doesn't work. Do I need to address that frame specifically? How would I do this? I'm using AS2 in CS3 on a Mac.
my frame label contains a movie clip... when the playhead goes to the frame label "corporate", i want it to play the movie clip sitting on the frame label, but starting at frame 20 of the movie clip... have the following code but doesn't work and i can't understand why... i attached an example of what i have made...
Button Code
Code:
on (release) {
[code].....
I am using a flash template with a _urls.txt file. I would like to change the code so I can display a target html page in an inline frame. My goal is to change the page content when a when a nav item is choosen without reloading the swf.I have tried several methods with no luck. What should I do to accomplish my goal?Here is the original code in the template.
on (rollOver) {
gotoAndPlay("s1");
}
[code].....
How do I target the labeled frame in my main timeline.[code]...
View 1 RepliesI am using this code to send to URL instead of sending to a frame , is not working , is ther anything wrong with it ?
try { navigateToURL(new URLRequest(items[selectedIndex].targetFrame), _blank); } catch (e:Error) {}
I want to load a movie and have it start on a specific frame within that movie instead of starting on frame one. The code I have now is this:
stop();
loadMovieNum("mc2.swf", 2);
I want it to start on the frame label in the movie called "in" instead of on frame one. How the hell do I do this, I looked everywhere
Can i target the second key frame of an empty movieclip which is created by actionscript.as for example:this.createEmptyMovieClip("target_mc",1);I want to write some script on the second keyframe on the target_mc movie clip. Is that possible.
View 1 RepliesI am trying to make an animation with addEventListener, different buttons, same target frame. My problem is that the animation keeps changing automatically from one frame to another. Here's my zipped fla file.
[Code]...
How do i target a frame in a movie Clip. I'm using the loadmovie command and want an alternative pathway through the site. That is, when user cliks button they go to frame 15 instead of frame 1.
View 2 Repliesis it possiable to target/query a specific frame in a movie that i am loading into an empty MC...?
eg:
on (release){
if (loadedMoviePath._currentframe == 10);
loadedMoviePath.MC1.play();
}
loadedMoviePath - what would the path to the MC in the movie that has been loaded be?
whatGoesHere.MC1