ActionScript 3.0 :: Communicating Between External Swf's And The Main Swf

May 23, 2010

how do you get an external swf which has been loaded into the main swf to talk to the main swf?

Like, lets say you load an swf into a container clip inside the main.swf's timeline, but need to get things to happen in the main one from the external one...

in as2 you used to just be able to go, say _parent._parent.main.gotoAndPlay("whatever");

View 3 Replies


Similar Posts:


Actionscript 3.0 :: Communicating From One MC To Another Both In Main Timeline

Feb 2, 2009

I can't seem to figure out how to get buttons inside of one movieclip on my main timeline to gotoAndPlay frames in another movieclip on that same timeline.basically I have a intro_mc that I have an enter button in.and I would like that to gotoAndPlay a framelabel in a 2nd movieclip (content_mc) the reasons that I have them each in their own mc and not just on the main timeline is becuase I am proportionally scaling each of the mc's to fill the browser window.I have tried to call it with parent child but I am most surely missing something.

View 2 Replies

ActionScript 2.0 :: Communicating To Main Timeline From Ext.swf?

May 17, 2007

how can i communicate from an external swf to the main sites timeline? im asking cause im a bit confused, i have an external swf with its own buttons etc...and for example if i have a MC with a button that says, on release, go to _root. (whatever frame on the external swfs main timeline)and play (whatever frame) then if im understanding this correctly, then " _root." is to go to the main timeline on whatever swf you are in...but then if i want to access the main sites timeline from the external swfs, how would i achieve that? is it _root. too or something else?

View 2 Replies

ActionScript 3.0 :: Communicating From One MC To Another Both In Main Timeline?

Feb 2, 2009

I can't seem to figure out how to get buttons inside of one movieclip on my main timeline to gotoAndPlay frames in another movieclip on that same timeline.basically I have a intro_mc that I have an enter button in.and I would like that to gotoAndPlay a framelabel in a 2nd movieclip (content_mc)the reasons that I have them each in their own mc and not just on the main timelineis because I am proportionally scaling each of the mc's to fill the browser window

View 1 Replies

ActionScript 3.0 :: Communicating Between Externall Swf & Main Movie?

Jan 23, 2009

how do I target something that lies in externally loaded swf from my main movie?
or vice versa?

View 2 Replies

ActionScript 3.0 :: Communicating To The Main Timeline From Within A Movie Clip Symbol?

Mar 8, 2008

What I have is a situation where I need to play some frames on the main timeline, say to frame 5. I place a movie clip symbol in frame 5 which I want to play (all is working fine so far).Once the Movie clip is finished playing, I want the main timeline to start again.In AS2, I would simply put

_root.play();

Now in AS3, I think it should read

root.play();

but I get an error which reads:call to a possibly undefined method play through a reference with static type flash.displayisplayObject

View 7 Replies

ActionScript 3.0 :: Communicating From External Swf

May 13, 2009

Im working on a project wherein I have the main fla tied to a document class entitled MyContent. The main fla consists of buttons and textfields, etc. External swfs are loaded when the buttons are pressed. My question is what code would I have to include in one of the external swfs to allow it to be able to change the content of one of the textfields, which was assigned dynamically in the MyContent class? The code within the MyContent class consists of a dynamic text field on the stage named longDesc and a string named long1. ex:

Code: longDesc.htmlText=long1; In the external swfs I have images that are enlarged on a click event and would like to be able to have the textfield in the MyContent classed changed as each image is selected through code in the external swf.

View 4 Replies

Flash :: AS3 Playing / Communicating With External Swf

Sep 2, 2011

so im bringing in a test external swf like so:

[Code]...

this simple external test swf has 10 frames. @ frame 1 theres a "intro" label, @ frame 5 theres a "stop" action, and on frame 6, theres an "outro" label. problem is that, when i click the button, it reloads the external swf and plays from frame 1.

View 3 Replies

ActionScript 2.0 :: Command External SWF-file To Play Outside Of The Main Movieclip Via Button From Main?

Jan 17, 2012

I Have a flashmovie thats almost done and will soon hit the internet, but I want to add some animations into the website it�s two gears that I�m about to put at the bottom of the page and when a button releases in the main flashmovie the two bottom gears will turn a few frames and just stand still.These three movies are all separate (main movie, first gear and second gear).

It's a homepage designed in HTML and flash that has this "main flashmovie" in the middle of the screen, the size is about 1500(width)X800(height). And the gears is about 800wX200h placed at the left and right side bottom of the page. Dont worry the site is easy to apply to any screen resolution.I have been looking everywhere for any soul out there who suffering from the same problem but no success. Is it possible to script a button in the main movie to launch two separate movies in their own contents?

View 2 Replies

ActionScript 3.0 :: Loading External SWFs From Another External Swf Into The Main SWF Container?

May 4, 2011

I have created a main "site.swf" file that loads a "default.swf" file into a container after a preloader. On this default.swf file I have buttons that needs to load new external SWF files in its place in the container. All of the external SWFs contain buttons and navigations that will also call up other external SWFs into this container. So, I would like to know how to program each button (some are movieclips as buttons) to unload itself and load the respective SWF into the container (eg. AboutUsButton to call up aboutus.swf into the container). I do not have a main navigation on the site.swf file bacause the navigation changes on each SWF that needs to be loaded into the container.

View 2 Replies

ActionScript 2.0 :: Trigger External Swf To Load Into Main Swf From Button In Another External Swf?

Apr 22, 2007

I am trying to get a nav button in one movie (main_nav.swf) to target a my main movie (index.swf) and load a sub nav movie (metals_subnav_infinite.swf) into it. The sub nav movie will do a similar task - loading a portfolio swf into main movie (index.swf). Here is the file breakdown of my working files:index.swf - main final movie which loads "main_nav_infinite3.swf" on startmain_nav_infinite3.swf - loads main nav "main_nav.swf" and scrolls it infinitely (infinite menu)main_nav.swf - main nav with buttons that trigger sub nav "metals_subnav_infinite.swf" to load into index.swfmetals_subnav_infinite.swf - loads sub nav "metals_subnav.swf" and scrolls it infinitelymetals_subnav.swf - sub nav with buttons that trigger "folio.swf" (have not created this file yet!) to load into "index.swf"The script I was focusing on is in main_nav.fla and it is:

metals_mc_bn.onRelease = function() {
reActivateMenu();
this.gotoAndStop(3);

[code].....

View 2 Replies

ActionScript 2.0 :: .load Six Separate External .swf's Into The Main Movie While The Main Movie Loads Too

Dec 23, 2004

I want to load six seperate .swf's into the main movie while the main movie loads too. So in simpler words, i want to be able to load all of the swf's the same time i am loading the main swf.

View 2 Replies

ActionScript 3.0 :: Pausing Flv In An External Swf From The Main Swf?

Sep 27, 2008

I am creating I guess what you could call a swf library. It's a bunch of different interactive swfs all packaged up into a main swf that I can embed on my page. Each swf contains flv's that play. They all work great in my main swf and individually, that's not my problem.Everything is working great but I have a menu that pops up to change between different episodes and it works great.BUTWhat I'm looking to do is when you click on the menu button and the menu pops up over the externally loaded swf, I want the externally loaded swf to pause. Then when you close the menu I want it to un pause. It looks really tacky when the menu pops up and the flv's in the externally loaded swfs keep running. I knew how to pause them in as2 but only from the swf they were actually in.

This is my code (this all works) I just can't figure out code to add that will pause everything when the menu pops up ...box is what I named an empty box on stagetop_btn is the button that launches the menu

var myLoader:Loader = new Loader();
var myURL:URLRequest = new URLRequest("NewHarbison2.swf");
myLoader.load(myURL);

[code]....

View 13 Replies

ActionScript 3.0 :: Load An External SWF Into Main SWF?

Jun 24, 2009

I'm using the following code to load an external SWF into my main SWF. The code is called inside of a button function. The code works TOO well. The external SWF loads multiple times on top of each other.
 
var ldr:Loader = new Loader();ldr.load(new URLRequest("portfolio.swf"));
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,      onLoaded, false, 0, true);function onLoaded(evt:Event):void {    addChild(evt.target.content);    evt.target.removeEventListener(Event.COMPLETE, onLoaded);}
 
To see the mess go to:[URL] hit the "web" button.

View 4 Replies

ActionScript 3.0 :: Loading An External SWF To A Main SWF

Jul 7, 2009

I'm loading an external SWF to a main SWF. The external SWF is a dynamic video gallery. When I test my movie, I click to load my external SWF. It load ok and functions perfect. Then if I click on a back button to return to my inicial view, I have I get an error that says:Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.It's funny because I already used the same code in another project and this problem never came up.The code on my main SWF is:[code]

View 4 Replies

ActionScript 3.0 :: Embed An External Swf Into Main Fla?

Oct 1, 2009

just trying to embed an external swf into main fla. Please give me a starting point. Do I create an empty MC? Is there a standard code to upload in AS? If so what would I code and where in AS would I insert?

View 2 Replies

ActionScript 3.0 :: Control Main Swf Through External Swf?

May 9, 2010

ive figured out timeline transitions, and timeline based preloaders......so now i have a problem.....i have my MAIN swf file that i load all my pages in externally ( external swf files )....when i click a button ( for example ) my "about us" button - the transition begins....i have a keyframe with the following code on frame 40 ( inside a movie clip named "pages" in my main SWF where all the buttons/transitions are ):

var Xpos:Number=0;
var Ypos:Number=0;
var swf:MovieClip;

[code].....

View 9 Replies

Actionscript :: External Swf Load Into Main?

Aug 13, 2010

I need to load external swf into my main swf into a dispay object in this main swf.

View 2 Replies

ActionScript 3.0 :: Load External Swf In Main Swf?

Feb 18, 2009

i'm trying to load external swf in my main swf. when I click first time in first frame on object(movieClip) which has event handler gotoJob, the jobfair.swf will load and it works. But I have on the stage in first frame also another objects - movieClips. If I click on some movieclip, than it means to go to nextFrame. But when I return to first frame, where is also object with click handler gotoJob and I click on it, it does not load the swf.

Code:
function gotoJob(evt:Event):void{
var requestSWF:URLRequest = new URLRequest("jobfair.swf");
var loader:Loader = new Loader();

[code]...

View 5 Replies

ActionScript 2.0 :: Load External SWF And MC On Main SWF Via Xml?

Dec 15, 2009

external SWF 1 plays and when it finishes, it loads the SWF 2.inside the loader SWF, there are MC-buttons which can control which swf will be played.i want it to be dynamic so i used XML.there are 5 external swfs and 5 MC-buttons. when i update the xml, i want loader SWF to display only 4 external SWFs and 4 MC-buttons.update:the xml is being loaded but it wont load the SWFs. heres th AS and xml

Quote:
stop();
myXML = new XML();

[code]......

View 2 Replies

Actionscript 3.0 :: Control Main Swf From External?

Apr 26, 2010

I will try to explain this as easily as i can.

I have a holder swf called holder.swf

Within this i am loading in external swf files. Each externally loaded swf is put into each frame of the loader page.

I have created a string to navigate through the timeline when either next_btn or prev_btn is pressed.

The probelm im having is that in one swf file there are two buttons which determin which way the story goes (eg. with pressing yes_btn goes to section2 with no_btn go to section2a)

How do i communicate from this externally loaded swf to affect the main timeline of my holder swf.

View 3 Replies

ActionScript 2.0 :: Load An External .swf Into The Main .swf?

Jun 14, 2004

In the current flash project im working on I load an external .swf into the main .swf, the external .swf contains sound loops and movieclips which they are attached to. In the main .swf there are buttons which trigger the sounds to stop and start.the problem im having is that the sounds wont play when the button is pressed, when everything is in one file it all works fine, so i believe the problem is to do with the reference to the external file.

[Code]...

View 1 Replies

ActionScript 2.0 :: Path From Main Swf To External Swf?

Feb 10, 2007

I have my main swf that has a container called "mc_dropphotos" where I have:loadMovie("photo_scroll.swf",_root.mc_dropphotos);In the photo_scroll.swf there are movieclips that I want to get the x coordinate of and do something in the main swf by:if (mc_dropphotos.mcPhoto1._x < -4.15){etc.which is the path syntax I thought you use for checking properties from an external swf. I have tried _root.mc_dropphotos.mcPhoto1._x , _root.mcPhoto1._x, _root.mc_dropphotos.mcPhotos.mcPhoto1._x, c_dropphotos.mcPhotos.mcPhoto1._x and none of them work either.

View 1 Replies

ActionScript 3.0 :: Controlling Main Swf With External Swf?

Aug 27, 2009

My main flash file is setup with a scroll pane component. The scroll pane is loading an external swf. This external swf has a button that when pressed I want to load another external swf into the scroll pane in the main flash file. How do I make the button functional? Is it using sprites? If so, could someone direct me to a tutorial?

View 1 Replies

ActionScript 2.0 :: External Swf To Call On Main Swf?

Dec 10, 2010

It's at the back of my head somewhere, but I can't figure it out.I have a dropdown menu movie clip I need to make _visible = false, but calling

PHP Code:

_root.dropdown._visible = false 

from the external swf doesn't reach the main swf. How do I communicate commands from an externally loaded swf to the main swf? I tried _root and _level0 to no avail.

View 1 Replies

ActionScript 2.0 :: How To Preload (External) Main SWF

Dec 5, 2003

In my flash site I have one main swf that is preloaded using:
Code:
onClipEvent (enterFrame) {
framesLoaded = (Math.ceil (( _parent.getBytesLoaded() / _parent.getBytesTotal()) * 100));
gotoAndStop (framesLoaded);
info.text = framesLoaded + "% completed";
if (framesLoaded >= 100) {
_root.gotoAndPlay (2);
}}

Works great, main swf preloads, then begins to play. On frame 5 it calls my external swf using:
Code:
_root.createEmptyMovieClip("container", 1);
loadMovie("externalmovie.swf", "container");
setProperty ("container", _alpha, "45");
container._x = 64 ;
container._y = 135 ;

It calls the external swf directly onto level 1 of the main swf at the location and alpha specified. I need this external swf to preload! I want to use the exact same method as the code I used for the main preloader, but it conflicts....being that it uses _root, _parent? However, being new to actionscript, I have no idea what "paths" need to be changed to make this work and not conflict.

View 14 Replies

ActionScript 2.0 :: Preload External SWF Into Main

Dec 11, 2003

The basis of this question is why my code won't work to preload an external swf into my main swf. I have a main swf this calls the external swf using:

Code:
_root.createEmptyMovieClip("container", 1);
loadMovie("externalpreloader.swf", "container");
setProperty ("container", _alpha, "45");
container._x = 64 ;
container._y = 135 ;

I've attached an example fla like the external swf I'm trying to load, and you can see the preloader I'm using in that file. All that happens when this swf is brought in is a quick flash of the outline for the preloader and then the swf starts playing. It's not just because of the small size either, because no matter how big I've made the swf, that's all it ever does. I think it must have something to do with referring to _root, but I don't know how to change it! To test it add a large pic or sound file on the frame that I just drew a rectangle.

View 6 Replies

ActionScript 2.0 :: Convesation Between Main And External .swf Mc's?

Aug 19, 2004

Is it possible for a main clip to figure out if an external clip is fully loaded(no loading bars or info required) and then perform an action in the main timeline? and then once that extenal clip has finished playing to make the main clip again perform another action?

View 9 Replies

ActionScript 3.0 :: Edit Main Timeline From An External Swf?

Mar 2, 2009

I have been going crazy all weekend trying to figure this out. All I want to do is communicate with the main timeline from a loaded external swf. So, I have loaded a external swf called "test.swf" from the main swf called "basetest.swf"So, on basetest.swf I have this code, simply loading test.swf:

var request2:URLRequest = new URLRequest("test.swf");
var loader:Loader = new Loader()
loader.load(request2);

[code].....

View 4 Replies

ActionScript 2.0 :: External SWF - Controlling Main Timeline

Mar 21, 2009

I'm having a bit of time getting this to work.
Setup like this: Main mov:
Nav1 is clicked and loads in external swf. In the swf that was just loaded there is button to call another external swf on the main movie's timeline. I'm trying make a "lightbox" effect. Where you click on the external swf and the screen darkens and a swf is loaded on top of it. Above the loaded swf. Of course on a new layer.

PHP Code:
This is handling the swfs that get loaded in
EXTERNAL SWF LOADER
_root.page_mc.preloader_mc._visible = false;
_root.page_mc.preloaderText_txt._visible = false;
var mcLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
mcLoader.addListener(myListener);
[Code] .....

View 9 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved