ActionScript 3.0 :: Loading A SWF Into A Specific Frame In A SWF
Feb 2, 2010
I'm having a some trouble with loading an SWF into my main SWF. I have found multiple ways of doing it, but I want to find the most appropriate way for what I'm doing.
Here's what I'm doing:
I have a main SWF with 4 frames. I want to click two buttons that will then load two SWF into frame 2 and frame 3. Below is the script I wrote for the buttons. The earlywork_btn needs to load RColeman_EarlyWork.swf into frame 2. This swf is a slide show. The currentwork_btn needs to load RColemna_CurrentWork.swf into frame 3.
I'm not sure which scripts to use to load the SWF's and how to arrange it in the ActionScript panel.
ActionScript Code:
//
stop();
function onbiographybuttonClick(evt:MouseEvent):void {
[Code]...
View 5 Replies
Similar Posts:
Sep 13, 2009
I have two flash files, say a.swf and b.swf.a.swf is the main swf file, embedded in an HTML page for a webpage. There is a preloader in a.swf too. In b.swf, when I click a specific button I need to load a.swf, but not from the preloader, from the content. To be precise, the content starts from Frame 24 of a.swf (obviously Preloader ends in Frame 23). I believe, the frame 24 has to be loaded in a.swf when I click the button in b.swf.
View 2 Replies
Jan 26, 2006
The webpage I am working in is one move. I want to be able though to create an html file that will start the document from a certian frame (not from the beginning). How do i do this without breaking up the whole flash file.
View 3 Replies
Apr 20, 2009
I have a main movie which loads various external SWF's. What I would like to achieve is that when returning to the main movie (using URLRequest & Loader class) that the main movie starts at specific frame.[code]I believe that the way global variables work in AS3 is very different. Is it true that I need to achieve this via an external class ?
View 5 Replies
Oct 1, 2009
Using AS3 how can you load an external swf file at a specific frame of the newly loaded swf file.Using the AS3 loader class I have no problem loading an external image or swf movie onto the stage.But what I want to do is when the swf is loaded, go to the second frame (labeled "two") of that loaded swf.
For example, My main movie "main.swf" is blank.My external movie "loadMe.swf" has a circle on frame one and a square on frame 2.On the main movie (main.swf) is a button and when you click on it I want the square on frame two of "loadMe.swf" to appear.
View 5 Replies
Sep 24, 2009
I'm made a dropdown menu and i have resolved the navigation for the main buttons, but i have problems with the menu sub buttons , my question is: After the movie is loaded, how can i make the sub button go to specific frame. This is the script:
[Code]...
View 4 Replies
May 10, 2004
Is it possible to load in a movie to a specific frame? I am currently loading a movie from a button with:
on (release) {
unloadMovieNum(1);
loadMovienum("Is.swf",0);
}
This works perfect, but I'd like to add usability by directing the button to a specific frame within that new movie. I've tried:
_level0.gotoAndPlay(10);
After loadMovienum in the previous code but it doesn't do anything different. The movie always starts up on frame 1. In the end I'd like to have multiple buttons serving as navigation buttons specifying different frames of the new movie.
View 1 Replies
May 10, 2004
Is it possible to load in a movie to a specific frame? I am currently loading a movie from a button with:
on (release) {
unloadMovieNum(1);
loadMovienum("Is.swf",0);
}
This works perfect, but I'd like to add usablility by directing the button to a specific frame within that new movie. I've tried:
_level0.gotoAndPlay(10);
After loadMovienum in the previous code but it doesn't do anything different. The movie always starts up on frame 1. In the end I'd like to have multiple buttons serving as navigation buttons specifying different frames of the new movie.
View 1 Replies
May 2, 2005
dont know how to load a dinamic text in a text_MC, but make it apear only in the midframe of the background mc...i have a dropdown menu who loads the BG's to the container_MC in the main timeline (its a movieclip too) who has the following code in the button:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "bg2";
_root.contentor.loadMovie("bg2.swf");
[code]...
i know this second part is wrong, but its the best i could do :S how do i make it unload the preview text, and load a new one when the bg finishes the intro animation (gets to the midframe)?[URL]
View 1 Replies
Jun 18, 2011
I am doing a presentation in flash in movie languages I have 7 buttons when some body click button 1 it should go to a new movie called animate frame number 2 when some body click button 2 in movie language it should go to movie animate frame 6 if people click button 3 in language movie it should play movie animate frame 11 like that for all 7 buttons I have used the following code but its always going and stopping at frame number 1 in animate movie
Here is the code:
button 2
on (release) {
unloadMovie
loadMovieNum ("animate.swf", 6);
}
button 3
on (release) {
unloadMovie
loadMovieNum ("animate.swf", 11);
}
View 2 Replies
May 3, 2003
I have a main movie that loads about 30 external swf's, so i have a button which after its pressed it loads an external swf and a specific frame,
i.e
there is a main movie called main.swf and there is an external movie that has about 15 frames and its called movie.swf I added a button to a main.swf so when its pressed it loads that external movie.swf so my question is: how do i load a specifc frame of that movie.swf
View 1 Replies
Aug 3, 2003
how to load frame label "one" of external.swf into main movie.
buton.onPress = function () { loadMovie("external.swf.......??
View 12 Replies
Mar 31, 2006
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 Replies
Sep 15, 2010
how 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 Replies
Dec 3, 2009
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 Replies
Sep 21, 2009
Basically 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].....
View 1 Replies
Sep 1, 2010
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 Replies
Dec 5, 2004
cutting to the chase, Basically im loading a movie externally using this code...
Code:
on (release) {
if (S_Init == Number(S_Init)) {
loadMovieNum("s_menu.swf", _root.S_Init);
[Code].....
View 4 Replies
Dec 5, 2004
cutting to the chase, Basically im loading a movie externally using this code...
Code:
on (release) {
if (S_Init == Number(S_Init)) {
[code].....
View 4 Replies
Aug 6, 2009
if 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
View 3 Replies
Nov 1, 2004
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");
View 9 Replies
Jun 3, 2011
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.
View 2 Replies
Sep 26, 2009
I have a button that uses the Load Graphic Behavior for bringing a SWF, but i want the SWF to come in a specific frame instead than starting at frame 1. For examplel; i click the button, the behavior of Load Graphic brings my SWF to stage but i want to start at frame 50, not at frame 1. How can i do that?After i use the Load Graphic Behavior i try using a gotostop frame, but doesn't work.
View 13 Replies
Jun 22, 2009
I have made a menu in flash . I have a frameset on my page . I want the button to open the link in a specific frame (my frames are bannerframe , leftmenu , rightmenu , bodyframe) . The menu is in the "leftmenu" frame. But whenever i use this :
ActionScript Code:
getURL ("xyz.html", "bodyframe")
the page opens in a new window .. ( i have tried in all browsers chrome firefox IE etc. ) ....
View 0 Replies
Jun 22, 2009
I have made a menu in flash . I have a frameset on my page . I want the button to open the link in a specific frame (my frames are bannerframe , leftmenu , rightmenu , bodyframe) . The menu is in the "leftmenu" frame. But whenever i use this :
Code:
getURL ("xyz.html", "bodyframe")
the page opens in a new window .. ( i have tried in all browsers chrome firefox IE etc. ) ....
View 5 Replies
Apr 22, 2009
I want to jump to a specific frame in the swf I load using the Loader class. As it is now it goes directly to frame1 in the file, which I dont really want it to do. I'm using Flash CS4
View 2 Replies
Jun 3, 2009
im trying to code a btn to got to a specific frame in another mc
my code is
stop();
gfhtml.addEventListener(MouseEvent.CLICK,gfclick);
[code].....
View 4 Replies
Nov 8, 2009
I have a dynamic text box. I need to set up a hyperlink in my text file that will take the user to a specific frame on a page. I know how to set the hyperlink up to go to a specific page :
Code:
<a href="http://www.lasamigasseatpleasant.org/index.html">
Visit Our Site</a>
[code].....
View 1 Replies
Nov 9, 2009
I made a flash website and had one page load an external swf.
In this external .swf are thumbnails that link to another page (frame) all within the external swf. when you go to these pages there is a 'back' link which links back to the main external swf frame.
My problem is this: let's say i click a thumbnail in the external swf and it goes to the respective thumbnail page, and then i dont click the 'back' button but instead click another link of the main flash website - then i go back to the page that loads the external swf and instead of going to the main frame of the external swf it stays at the page i was previously on.
How do I get the link on the main flash website which loads the external .swf to always load on the first frame of the external swf?[code]...
View 2 Replies
Jul 26, 2010
I am very new to Flash and I am making a little 30 second clip just to fool around with Flash.Now at the end of my film I just want everything to stop (if possible, once a specific frame is hit move to another frame.)I've heard that you could use ActionScript to perform this but I really have no clue
View 5 Replies