ActionScript 3.0 :: Load An Extern Swf - Goto Frame2?
Aug 25, 2009
I have a flash web site on frame 2 and on the frame 1 I load an extern swf (this is the intro of my site), on the frame 1 I put the code:
[Code]....
The swf is loaded but when is finish make a loop again and do not go to my site on frame 2.
View 7 Replies
Similar Posts:
May 31, 2009
Something in my code gives me an alert of slow loading time! I am transferring some data from an extern XML-file.
[Code]...
View 1 Replies
Sep 2, 2009
I have 2 SWF's:SWF1 = AS2 SWF2 = AS3I need to link from SWF2 to frame 10 of SWF1. Is this posible?If not, is it posible doing this with html/javascript? With the <a> tag?
View 1 Replies
Oct 16, 2009
I tried to load an external swf file. In this swf file i have an embeded movie so that i see the preloader in action.What happens is, that while preloading i hear the movie playing in the background. So when the external swf is at for example 20% preloading the timeline is already playing in the external swf. Isn't that weird?
I also noticed that the Event.INIT get's executed sooner for example at 17% progress. This should be at 100% is it not? And in CS3 i get the error while previewing the bandwidth profiler:
Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.
[Code]...
View 1 Replies
May 7, 2006
I've got some flash-movies I've made that I want in my flash-portfolio.I've tried the load movie script, but then the flash-movie get's the same FPS as the portfolio.
View 1 Replies
Aug 1, 2010
i want to make an presentation,, for which.. at frame i click a button on frame 9 it goes to frame 10 and plays.. like my script on frame 10 is below
this.createEmptyMovieClip("coalzoom",5);
coalzoom._x = 80;
coalzoom._y = 60;
coalzoom.onEnterFrame = spaceLoad;
function spaceLoad()
[Code]....
and when i click another button to go frame 1 from the same page at 10,, placed beside the loading external swf ,, it goes,, but the loaded external swf file is not going ,, or the external file not cleaning,, not removing. here is the CS3 flash sources,, and outputs [URL]
View 1 Replies
Apr 15, 2006
I am loading an external movie with buttons... I would like the loaded movie to goto a specific frame. This is the code to load the new movie
Code:
on (release) {
loadMovie("movies/1.swf", "display");
}
I did search (external swf frame) but nothing came up with what I needed
View 5 Replies
Feb 2, 2011
I have an swf with a menu button that loads an external swf on(release) {loadMovie("Unit-Type.swf",_root.MC_UnitTypes);}When that menu movie is loaded I want to be able to click a button and have it go to a certain frame in the root movie and close itself. I have this code but it's not workingon(release){_root.gotoAndPlay(25);}
View 1 Replies
Feb 2, 2011
I have an swf with a menu button that loads an external swf: on(release) {loadMovie("Unit-Type.swf",_root.MC_UnitTypes);} When that menu movie is loaded I want to be able to click a button and have it go to a certain frame in the root movie and close itself. I have this code but it's not working: on(release){_root.gotoAndPlay(25);}
View 5 Replies
May 24, 2010
I am starting to use as3 and I'm with problems. What I wanted to do is: I have a movieclip and I want to load another movie clip inside the main one. That part I can do and I use this code:
Code:
var carregador:Loader = new Loader();
var arquivo tring = "main.swf";
var requisicao:URLRequest = new URLRequest(arquivo);
carregador.x = 150;
carregador.y = 150;
carregador.load(requisicao);
this.addChild(carregador);
Now I want to have a button on the main movieclip with an action to send the loaded movie clip (main.swf) to frame 50. How can I do that?
I tried:
Code:
myBtn1.addEventListener(MouseEvent.MOUSE_UP, qualquer, false, 0, true);
function qualquer(MouseEvent) {
MovieClip(root).carregador.gotoAndStop(50);
}
View 3 Replies
Jun 24, 2005
im trying to do is load an external swf file into a "base" file but play a certain frame number or label in the external file.I have a file called base.swf file which is level0In base.swf i have nothing but 1 frame with the following AS code:loadMovie("top.swf", 2);This works fine and loads and plays top.swf, but how can i load top.swf and play a certain frame label or number as soon as its loaded. Ive tried the following which does work but i hope it kinda explains what i want to do.
loadMovieNum("top.swf", 2);
tellTarget (_level2) {
gotoAndPlay("MyFrameLabel");
[code].....
View 10 Replies
Nov 8, 2007
Im trying to get my head around actionscripting....and this is what i have so far....but its not working as i want.
what im trying to do is make the button frame go to frm2 when its clicked and in so doing, it makes the _root goto the respective label. how can i tell the other buttons (mcs) to stay at frame 1 when one of the other buttons are clicked?
var is new for me....am i setting it right?
code inside button container mc:
Code:
//
var C=0;
//
[Code]....
also, how can i add a rollover functionality that does not break the other commands on the buttons (ie: stop at frm2)
View 10 Replies
Oct 11, 2004
i am having trouble with my gotoAndPlay in my MC. i have An MC1 on main stage then inside it i have another MC2. Now on my MC1 i want wen it comes to frame 15 to go and play starting frame2 on MC2 so in MC1 frame 15 i put mc2.gotoAndPlay(2); But nothing happens.Oh yea MC1 has stop on the first frame. But i dont see why it wont work.
View 2 Replies
May 13, 2010
I am looking to load an external swf as an intro to a project I am working on. I want the external swf to trigger the main timeline to goto frame 3 when completed. What is the best way to achieve this?
View 2 Replies
Dec 6, 2007
I have a main flash file that I load various external swf files into. On the first frame of the timeline, there is an intro swf loaded that basically welcoming the viewer to the site. What I want to do is have this load, play and unload and then go to frame two of the timeline where the main home section of the flash site is located.One my first frame on the timeline I have:loadMovieNum("/IntroMovie.swf",1);stop();n the external IntroMovie, I have unloadMovie (1); so the movie will play and then unload itself. What I can't figure out is how to get the timeline to go to the next frame once this movie is finished playing and has unloadedIf I don't put the stop in there, it simply skips this movie and goes to the next frame on the timeline and loads the home movie swf file.Is there a way to use some sort of if statement, that if the movie is unloaded, goto the next frame, sort of like this:if(code to verify if movie is unloaded);gotoAndStop(2);
View 4 Replies
Feb 12, 2009
I'm having problem with communication between an MC running on frame 1 and a dynamic textfield located on the main timeline on frame2. The MC running on frame1 is a user and password login. I want to grab the username (variable) from the inputfield within the MC for use on frame2 ( dynamic text ) on the main timeline.
View 10 Replies
Apr 13, 2009
I've created a preloader using the following script:
mySWF.contentLoaderInfo.addEventListener(ProgressE vent.PROGRESS, loop);
mySWF.contentLoaderInfo.addEventListener(Event.COM PLETE, done);
Works, but even if the content has been previously downloaded there is still a quick flicker of frame1 of the preloader...is there a way to avoid this (in AS2 you could check, if loaded)? Is there a way to arrange...maybe using an if statement...to avoid the flicker? Basically if the file is available locally bypass frame1 of the preloader and go to frame2?
View 1 Replies
May 25, 2004
I am making a jigzaw and when all the pieces are put in the right place, another movie clip will be played.All pieces are buttons placed in different movieclips. The movieclips are then placed in scene 1.
In frame 1, I've written
_global.var1=0;
In frame 2, I've put movieclip1, and in movieclip1 I've placed button1, with the following actionscript:
on (press) {
startDrag ("_root.movieclip1");
}[code]..........
However, when the piece is in the right place, and the if-statement has been activated, _global.var1 is still 0 when I trace it in frame2.
View 3 Replies
Feb 24, 2011
Basically I want to go to frame2 when the cursor leaves the canvas. The code below contains no errors when tested but it still does not work.
[Code]...
We know that the function gotoAndStop(frame2); works in multiple situations which means the first 3 line is fine. I don't know if the problem is the MOUSE_LEAVE event or this.stage which i suppose is the identifier for the canvas. I sure that there must be an alternative code for the identifier this.stage or the whole code. Any solution on how to fire the given function in the event when the cursor leaves the canvas?
View 2 Replies
Oct 13, 2008
I know this may be a basic question, however.how to encode a Flash Video (possibly with Flash Video Encoder using Cue Points?) and when the video ends, direct the user to a specific url. In other words when the video is over the browser automatically refreshes to a specifc page.
is there a tutorial for somtehing like this?
Are there any code examples?
Can I use Flash video encoder and cue points, Or should I use Flash WITH video?
View 33 Replies
Aug 18, 2008
I have an flv video playing from a FLV Playback component. I am trying to have the movie goto the next scene at the end of the FLV video. I have go through numerous tutorials online to get the action to do this, but to no avail. I have tried both addeventlisteners and NS. way to have the movie advance to the next scene after the flv and where the AS has to be to get the movie to function properly.
View 5 Replies
Jan 19, 2010
i want to trigger a shine i labeld the frame shine created a hit area by making a box on a seprate layer and converting it to a symbol in the properties box and gave it an instance of shineStart
its not working im getting an error 1120: Access of undefined property _OVER.
my code is
shineStart.addEventListener(MouseEvent.ROLL_OVER, _OVER);
function _click(event:MouseEvent):void
{
gotoAndPlay("shine");
}
View 1 Replies
Jul 22, 2009
I have "inherited" some projects. One question I have is about a project that directs a user to a particular HTML page when a button is clicked. I have searched through the Actions and Behaviors and I can find no reference to the page it currently calls so I don't know how to change the page activated.
View 4 Replies
Nov 22, 2010
I have a scene where my movieclip loops between frame 1 and 2.In frame 3 there is a gotoAndPlay (1);.Is there a code that I can put in frame 1 where it tells to jump to frame 4 every 7:th second?
View 1 Replies
Sep 24, 2009
I'm currently working on a crossword puzzle and need some help.The crossword boxes have an instance names - b1 to b59.my issue is: When the user types in a letter the i-beam cursor will move to the next letter of the word.[code]
View 2 Replies
Nov 27, 2009
I'm sitting here doing some C# programing and in one of my switch statements I ended up using the goto keyword. Well just out of curiosity I booted up FDT and created another switch statement in ActionScript 3. Well to my surprise there is apparently no goto keyword in AS3 or at least I couldn't find a substitution.
View 6 Replies
Feb 7, 2003
i have 3 scenes: loading, menu and animation.when i'm playing the animation scene, i have a slider. I wanna use it as a on/off switch to go back to my scene "menu" so it goes like that:the bouton (instance "onoff") of my slider (on root of "animation"):on (press)[code]i have a movie clip also on root of "animation" that does a small loop between its frames 1 and 2 and i added the script:[code]So my question is, why can it control a MC and not jump to a scene??
View 14 Replies
Jan 26, 2010
How can I get my movie to go to a specific frame after these tweens?
Code:
TweenLite.to(panel3, 0.3, {scaleY:0, ease:Strong.easeOut});
TweenLite.to(panel2, 0.3, {scaleY:0, delay:0.1, ease:Strong.easeOut});
[code].....
View 2 Replies
Jan 26, 2011
I have an FLV video playing from a FLV Playback component. I am trying to have the movie goto the next scene at the end of the FLV video. I'm using Action Script 3. How do I do that?
View 1 Replies
Dec 21, 2009
Where to even begin. I want to loop frames 1-25 until a mouseover, then i want it to go to frame 26.
View 3 Replies