ActionScript 2.0 :: Parent SWF Control From External SWF?

Jan 15, 2008

I have one PARENT swf and one EXTERNAL swf. on PARENT i have one movie clip called PARENT_MC. on EXTERNAL swf i have one button with the following action:

myButton.onRelease = function() {
_level0.PARENT_MC._visible=0;
};

all i need to do is control a movie clip on parent swf from an external swf file.

View 1 Replies


Similar Posts:


IDE :: Control External SWF From Parent SWF

Dec 22, 2009

I am studying yet. so I am using Macromedia Flash 8. I've created a swf file as (main project.swf) and Loaded a external swf using loader component. the file is main_slide. Now I want send a command or data to project file, from loaded main_slide.

View 1 Replies

ActionScript 3.0 :: Control External SWFs Through Parent SWF?

Mar 7, 2012

Currently, I have a main SWF (shell) that pulls in external SWFs via XML. I'd like to add buttons to the main SWF that allows me to control the content within the external SWFs (i.e. play, pause, etc). I've played around with a few different ways to get this to work, but have come up empty each time.

View 0 Replies

ActionScript 2.0 :: External Swf Data Control From Parent File?

Jan 15, 2008

im loading an external swf from my parent swf:loadMovie("external.swf", 4);now, on external.swf i have a dynamic textfiled, which should be updated from the PARENT swf:

this is on PARENT swf file:
this.onRelease = function() {
_level4.mytextfield.htmlText = "some text";

[code].....

View 1 Replies

ActionScript 3.0 :: Tab Indexing Loop Through Parent, External Child Swf, Back To Parent?

Nov 11, 2009

I have a parent swf which loads many child swfs (though only one is displayed at a time). My intention was to use the loaded SWFs document class to retrieve an array of objects to be assigned a tab index, combine this with the parent's own array of objects and apply sequential tab indices to them all. But what happens is actually that the parent's objects are assigned an index, but the external swf is unaffected. In fact, the external swf retains its automatic tab indexing, when I would expect that having set a value for InteractiveObject.tabIndex, automatic tab indexing would be disabled.

I've seen similar tales elsewhere. Most posts I've read are wanting to load an external swf, give it focus and loop through those objects, then close the swf and return to looping through the parent. However I would like loop through all objects as one. including manipulating the focus manager(s), and basically fiddling with every tab-related property I know.

View 2 Replies

ActionScript 2.0 :: Control Movie Clip From Parent Swf

Sep 7, 2009

Im trying to control a movie clip that is part of a swf from another swf file. For example. My main flash file is called index.swf. this flash files loads another flash file called image.swf within image.swf are several movie clips (mc_1, mc_2) that I need to control show hide. I need to do so directly from index.swf.This would be flash 9 action script 2.Here is the code i am trying to work with. "filter" is a movieclip on index.swf. mc_1 and so on are movie clips on image.swf. What is the path i need to define before "mcfadeTo..."[code]

View 6 Replies

ActionScript 3.0 :: Get A Loaded SWF To Control Parent Timeline?

Aug 25, 2009

I have a swf that loads an external swf. I want the external swf, (the one that was just loaded), to interact with the timeline of the swf that just loaded it. I've been trying MovieClip(root). or MovieClip(parent). but they give me errors. How should I use as3 in the external swf so that it interacts correctly with the parent?

View 3 Replies

ActionScript 2.0 :: Timeline Control Of Child .swf From Parent

Jan 26, 2012

I have a main .swf from which I am loading a child .swf into using this code.[code] Once the .swf is loaded in though, I want to be able to use basic timeline control functions like stop(); and gotoAndPlay(); on the child .swf from the parent.

View 1 Replies

ActionScript 3.0 :: How A SWF Child Can Control A Parent's Function/variable

Jan 12, 2009

For instance, in the below code a parent can control a SWF child's function "alert ()". But how a SWF child can control parent's function "ReceivingChildMsg()" ?

View 4 Replies

Unable To Make The Imported Buttons Control The Timeline Of The Parent?

Jan 18, 2009

I have an swf file, MyRoundButtons, which is a set of radio buttons I built (not components). It works fine, but if I import it into a parent it won't work anymore. I have to write a script to load it into a movieclip, (which I hate, because I'll have a several different swfs to assemble on my final stage. I really want to see them all on the stage together, not just at runtime.)

Even when I load it into a clip and the buttons work, however, it doesn't seem to have a separate timeline when double-clicked ,and:I can't make the imported buttons control the timeline of the parent.I defined a test function:

Code: Select allfunction goToNirvana() {gotoAndPlay("nirvana")};

Frame "nirvana," in th parent, has a Trace instruction in it.
goToNirvana works on its own in the parent. [code].....

Whether I define that function in the child, the parent, or both, the instruction won't work. Now, I'd prefer not to do the loadMovie thing at all if I can avoid it, I'd rather have fully rendered button clips onstage at authoring for me to arrange and move about, with fully independent timelines right there. But you see what I'm trying to do. I just can't get it done.

View 1 Replies

ActionScript 3.0 :: Control Of Externally Loaded Child Movieclip Timeline From Parent?

Mar 3, 2009

I have a basic xml driven portfolio. The xml file holds the path to the portfolio pieces (external .swfs). I have a main navigation that moves from project to project and a subnavigation to view individual pages of that project.The subnav is where I have the problem, I simply want to call gotoAndPlay("framelabel") of the designated mc. It seems that you can no longer call to the timeline of child movieclips as you could with AS 2. I've found some examples Except the examples discuss access of nested movieclips on the stage with assigned instance names. But the problem I'm facing is that I have each item pulled in via the loader Class then the objects are pushed into an array and my subnav needs to access them dynamically via array notation.something like this:

PHP Code:
public function loadMe(){
//var l:Loader = new Loader();

[code].....

View 12 Replies

ActionScript 3.0 :: Using Loader To Load An External Swf And Control The External Swf?

Nov 17, 2010

as3 is new for me, but i would like to write a script using loader to load an external swf, and control the external swf. But I find I can't control the swf, because there are no fixed instance name. here is my script.

[Code]...

View 3 Replies

ActionScript 3.0 :: Positioning Parent MC In Order To Center Child MC On Parent's Parent MC

Feb 5, 2010

[code]All clips are squared.Ok, on the PlayerPlane, there are little soldiers, which have hotkeys. The effect I'm trying to create is I want to position the GameStage so that the currently selected soldier appears in the center of the GameClicker clip.The GameStage is movable by the player (to scan other areas of the map)by holding the CTRL key, so it's easy to kinda lose track of where your players are.I have tried using localTo Global and globalToLocal techniques, but I think I'm lost on the actual math of getting the GameStage to move the correct distance so that the selected soldier is centered to the GameClicker.[code]

View 2 Replies

ActionScript 2.0 :: Control An External SWF From From An External SWF

Jun 20, 2011

I usually wouldn't post on here as I like to find the answer myself, but after looking through Google literally all day I'm at the end of my tether, so I'm going to impose on you all and ask. This is the situation;

[Code]...

View 7 Replies

Professional :: Put External SWF File To The Parent One

May 11, 2011

I put external SWF file to the parent one. but everythin's working wrong now. How to let it work right. My code:

[Code]...

View 2 Replies

ActionScript 3.0 :: External Swf Loaded Into A Parent Swf

Jul 27, 2010

I have a external swf loaded into a parent swf. It loads fine and plays. I have an EventListener in the external swf, I would like to have trigger a function in the parent swf. Is there a way to do this in AS 3.0?

View 2 Replies

ActionScript 3.0 :: External Swf Ended Up Having Wrong Parent?

Jun 25, 2010

i need to know why my loaded swf ended up having wrong parent, i mean i load multiples external swf and then add it into a main swf which have one mainContainer( an instance of sprite class) to hold background image and it also hold several SWFcontainer which will hold the loaded swf.what went wrong is that the the loaded swf parent is the mainContainer (or if do not use the mainContainer it wil become the child of the stage).

here is the code i used:
import flash.display.*;var myXML:XML;var SWFList:XMLList;var xmlLoader:URLLoader = new URLLoader();var totalSWF:int;var mainContainer:Sprite;var myCounter:Number = 0;var

[code].......

View 29 Replies

Professional :: Different External .swf Files That Are Loading Onto A Parent?

Feb 16, 2012

I have two different external .swf files that are loading onto a parent, I have the same code on each, one works fine but the other one is giivng me this error,
 
TypeError: Error #1009: Cannot access a property or method of a null object reference.at aavar/frame1() at flash.display::MovieClip/gotoAndStop() at aavar/mouseA()my FLA still runs, but I would like to work out what is going wrong.  I do not have any references to this function in my document class but it doesnt like it! What is going on here?

[Code]...

View 1 Replies

ActionScript 3.0 :: Flash Popup With External Swf Within Parent Swf?

Oct 24, 2008

What I am trying to do is that if I click on the button, another window (like a flash popup, not in html) will popup and only this layer (new popup layer) will have an access. There should be no access in the parent swf. The flash popup has to load external swf file.

View 1 Replies

ActionScript 2.0 :: Calling An External Swf Resizes The Parent Swf

Jan 22, 2009

[URL]

go to media >> aikido pictures

I am using this screen resolution: 1024 x 768

the whole website seems to work fine, but when I change my resolution to a higher resolution, everything works fine until I go to media >> aikido pictures, and then the whole parent swf is resized to a smaller size but the child swf is still filling the screen.

View 4 Replies

ActionScript 3.0 :: Accessing Parent Root From External Swf?

Jul 23, 2009

I am able to access main root from an external swf by doing this:

MovieClip(root.parent.root)

but how to avoid getting an error when testing external swf alone? Is there any try catch system I can do to avoid thoses errors?

View 1 Replies

ActionScript 3.0 :: Closing The Parent Swf When Calling The External Swf

Feb 11, 2011

I have created a flash movie for displaying several videos. Also it has a first 'menu' flash movie which will call this video displaying swf after checking some Identifiers in 'menu'.

I am using code like this to call video displaying swf. Inside Menu.fla I wrote the below code to call CFStarVideoAS.swf.

var mLoader:Loader = new Loader();
var mRequest:URLRequest = new URLRequest("CFStarVideoAS.swf");
mLoader.contentLoaderInfo.addEventListener(Event.C OMPLETE, onCompleteHandler);
mLoader.load(mRequest);
stage.addChild(mLoader);

It loads the other movie but both movies are displaying together.

I have to unload Menu.swf, which is the first swf running.

My colleagues were using unloadMovieNum(0) with as1.

I tried mLoader.unload for a trial in as3 but not works. I read from some article that unload will work but don't know how and where to insert it.

View 0 Replies

ActionScript 3.0 :: Calling Function In Parent From External SWF?

Mar 17, 2009

I want to call a function in my parent movie from my external swf wich is loaded through a loader. Can anyone give me a nudge

View 4 Replies

ActionScript 3.0 :: Remove Parent.parent.parent Child?

Jan 3, 2010

I got a "preloader" that creates an movieclip and loads an SWF. Now in the loaded SWF i want a close button to go back to the "preloader". The preloader isn't an actuall preloader but some sort of mainclip.Now i tried this:removeChild(MovieClip(e.currentTarget).parent.pare nt.parent)But i get error:ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.at flash.display::DisplayObjectContainer/removeChild()at MethodInfo-6()

View 1 Replies

ActionScript 3.0 :: Manipulating The Childs Timeline (external SWF) From The Parent?

May 4, 2009

Essentially, i have loaded an external SWF (area-home.swf) w/in a MC (mc_loader) of the main SWF (base.swf). This is simple, not a problem, works like a charm. What I want to do from here is have the main SWF (base.swf) tell the external SWF (area-home.swf) to gotoAndStop at a certain frame (42). Below is the code that I have, and can't quite figure out why it won't work:

PHP Code:

var loader1:Loader=new Loader();
loader1.contentLoaderInfo.addEventListener(Event.COMPLETE, myFunction);
loader1.load(new URLRequest("area-home.swf"));

[code]...

When i trace the total frames, it does bring back the actual frame count from area-home.swf, so I know that it is communicating. It simply does not stop on the 42nd frame (even have a stop(); command on that frame in area-home.swf's timeline)

View 1 Replies

ActionScript 3.0 :: Checking On Loaded External SWF Files Into Parent SWF?

Aug 8, 2011

What is the best approach to add and remove sections if I'm using this method for example.

var myLoader:Loader = new Loader();
addChild(myLoader);
var url:URLRequest = new URLRequest("section1.swf"); [code]......

Do I add this to button click events? for every section? and a remove method for the other sections that are not in use? or is there a better way to setup this more reusable and checking correctly if a swf is loaded or not?

View 2 Replies

ActionScript 3.0 :: Pass Vars From External Swf (as Child) To Parent ?

May 4, 2009

My problem is i had 2 swfs parent.swf and child .swf and i loaded the child.swf file in parent.swf using Loader class there is a textbox and a button in child.swf when we enter text in the textbox(say,notepanel_txt) and click on the button(say, mySubmit) the text present in textbox(notepanel_txt.text) is saved in the database using URLLoader and an variable called success(which is String type) must be available to parent. the code is as follows:

parent.fla
----------------
--------------blah... blah...

[code].....

View 4 Replies

ActionScript 1/2 :: Prevent Clicks On External Swf From Affecting Parent Swf?

Jun 12, 2011

I'm using the loadMovie command to load an external swf (a brief tutorial) into the parent swf. The parent swf is an interactive exercise with several answer buttons. The user can click a button to open and close the turorial on top of the exercise.k the answer buttons in the parent swf below and hear the correct and incorrect sound cues. When they close the tutorial, they see that answers have been given and there's a score when they didn't intentionally give any answers.

View 3 Replies

ActionScript 3.0 :: Enabling Parent Button While External Swf Is Loaded?

Jul 25, 2011

how to load an external swf into my main timeline. As far as I understand this main timeline is the "parent". Hence the loaded, external swf should be the "child" (a quiz).Now the child (a quiz) loads into the flash file and is played properly, but I cannot access the button on the parent anymore. Unfortunately, I really need the home button on the parent to exit the quiz and allow for new navigation within the flash document.

my AS3 Code:

import flash.events.MouseEvent;function onClick611 (event:MouseEvent) :void{  gotoAndPlay("home_einf")}home_btn.addEventListener (MouseEvent.CLICK, onClick611);
import flash.net.URLRequest; import flash.display.Loader;import flash.events.Event; import flash.events.ProgressEvent;

[code]....

View 2 Replies

ActionScript 3.0 :: Targeting Parent Swf Holder Mc To Load New External Swf?

Dec 1, 2009

I have a main swf that loads external swfs into a holderMC. How do I get a button called playnext_btn on each external swf to tell the main swf to load a new external swf into its holderMC? I used this code in the main swf to do the initial load of the first external swf into holderMC:

Code:
var swfLoader:Loader = new Loader();
holderMC.addChild(swfLoader);
var bgURL:URLRequest = new URLRequest("benefits.swf");

[code]....

View 3 Replies







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