ActionScript 3.0 :: Create A Loader And Add Parent To It Outside Of A Function?

Jun 11, 2010

is it possible to create a loader and add parent to it,outside of a function or is there a function that runs once when the movie is started that i could add things like this into

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Loader() Swf Communicate To Parent Swf?

Aug 2, 2008

i got communication working going to the Loader() swf, but how do i have the swf thats loaded in via the Loader object talk to the parent swf?

View 9 Replies

ActionScript 3.0 :: Swf Parent Player / Loader?

Feb 22, 2011

Id like some help creating a file that will load separate SWF files that I have created for my website. So far I have created the first SWF file which includes an animated intro, functions (mainly enlarge thumbnail images and buttons for more info), and an outro (again animated out of stage).

What Id like to create is a parent file that loads SWF1, then when its loaded SWF2 is loaded ready to be told to play via a next button or after a period of time the SWF file is automatically loaded (which would require the outro of SWF1 to be played then the intro of SWF2 following straight after.

I�ve had little experience with action script, the last time I used tried this was in AS2 and I found that difficult enough but AS3 has me stumped (though its becoming more familiar)

View 1 Replies

ActionScript 3.0 :: Can't Access The Parent Properties Of The Loader With Player 11.2?

Apr 13, 2012

this is so embaresing and my whole business is suffering from this[URL].. the key point in my TextArea class which extends TextField is to load external swf files and I use the .parent property of the Loader class to access the textfield... with the new security updates coming with 11.2 I cannot access the parent and the whole thing crashes to give you more insight:

imagine that we have file.swf being loaded into the project using the flash.display.Loader class. from the document class of file.swf, I can access the loader like this, all ok till here _loader = this.parent as Loader

[Code]...

every day that one of my clients updates their player to the new version, their website fails. I need to fix this a.s.a.p.

View 3 Replies

ActionScript 3.0 :: Dispatch Event To A Loaded .swf (child) From The Loader .swf (parent)?

Sep 22, 2010

I have a .swf file (parent) that loads another .swf (child) file.

I would like to dispatch an event to the child (.swf) file, but I am not sure how to do this in a way that avoids coupling?

View 1 Replies

ActionScript 3.0 :: Access A Function Within A Function In A Parent Swf From A Loaded Swf?

Jul 29, 2010

Is it possible to access a function within a function in a parent swf from a loaded swf?

View 6 Replies

ActionScript 3.0 :: Loaded Swf Tell The Parent Loader To Unload Itself After The Loaded Swf Finishes Playing?

Sep 23, 2010

I have a shell swf that is loading a swf. How do you have the loaded swf tell the parent loader to unload itself after the loaded swf finishes playing?

View 4 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 3.0 :: How To Create A Pre-loader

Feb 3, 2009

Hello Everyone I am trying to create a pre loader, everything works fine because I have traced everything and all is working but, my progress will not display in the designated bar, your help would be highly valued here is my code that's on the time line

ActionScript Code:
var loader_text:Loader_text = new Loader_text();
addChild(loader_text)

[code]...

View 0 Replies

Flash :: Flex - Create A Pre-loader Using 4?

Jan 7, 2011

is it possible to create a pre-loader using plainly Flex 4? I've seen tutorials on how to make one but each of them requires that I have Flash Professional or Flash Catalyst. I have absolutely no experience when it comes to implementing pre-loaders as well as making one.

View 1 Replies

ActionScript 3.0 :: Create A New Loader And New ThumbHolder

Aug 3, 2009

I'm developing a gallery and I've just relised I've been creating a new set of thumbnails each time I click on the image category.There are four Categories and everytime I click on a category a new set of thumbnails gets created.How would I go about reusing the loaded thumbnails.I'm assuming I would need to create a separate Array to store the loaded thumbnail from each category. I am able to create the Array but how do I tell flash that the Loaded objects are in the array so don't create a new Loader and a new thumbHolder.[code]

View 8 Replies

ActionScript 3.0 :: Grabbing The Parent Of A Function?

Mar 23, 2009

I'm having trouble adjusting to the way functions pass in AS3. How come when I say "this" it doesn't know I'm refering to AudioTrack?

PHP Code:

var AudioTrack:Object = new Object();
AudioTrack.myVar = "Hello";
AudioTrack.onComplete = function(){

[Code]....

View 2 Replies

ActionScript 3.0 :: Calling A Function On Parent Swf

May 11, 2009

new to actionScript and trying to finish my final project, and i'm banging my head on a brick wall now, my question may be easy for some pros, basically i've loaded an external swf from a button at main.swf

[Code]...

this works fine. then i'm trying to disable the button function while the swf is loaded. I add another eventListener to the same button. function disableMenu( e:MouseEvent ):void { button1.mouseEnabled = false;}

that works too. ok now comes the problem. I have a close button on my child swf("content1.swf) to close itself and returen to main swf. but I want the button on main.swf to work again. so at the close button I add another eventListener hope to enable the menu. (note this is on the child swf!)

[Code]...

View 13 Replies

ActionScript 3.0 :: Calling A Function Of A Parent?

Aug 5, 2009

I have two movies... main.swf and content.swf, and I'm trying to call a function in my main.swf from my content.swf. Here is the code..

//function in main.swf
function appear (event:MouseEvent):void{
TweenLite.to(title1, 1, {autoAlpha:1, overwrite:false});

[Code].....

I got an error message as soon as i click on close_btn. It says appear() is not a property or method.

View 0 Replies

ActionScript 3.0 :: Targeting A Parent's Function?

Aug 13, 2009

I've created a Preloader.as class. When the preloader finishes loading, I'd like it to call a function from it's parent (the document class).This is the error I get:

Code:
1119: Access of possibly undefined property startApp through a reference with static type flash.display:DisplayObjectContainer.

[code].....

View 9 Replies

ActionScript 3.0 :: Call Function In Parent

Jan 29, 2010

i have a swf that loads a swf that loads one swf into that one. i need the final swf (child, child) to be able to call a function on the first swf (parent)

i have tried this:

if(MovieClip(parent.parent.parent)!=null){MovieCli p(parent.parent.parent).parentFunctionCall();}

[Code].....

View 0 Replies

ActionScript 2.0 :: Calling Function In Parent Swf

Apr 13, 2010

So, my problem, I have a Parent swf file that loads a bunch of smaller swf files. When I click on a button in one of these loaded swf files, I want to be able to call a function from the parent swf. Once called, the function manipulates things MC's within the parent swf.

View 2 Replies

ActionScript 2.0 :: Access A Function Of The Parent Of An MC?

Oct 5, 2005

Well- actually, my problem is a bit more abstract than this thread's title suggests..ere's the setup:I have a parent function (called "Game") with a couple of subfunctions.There is one subfunction ("Game.prototype.spawnBonus") that, as the name suggests, spawns a Bonus Item by duplicating a movieclip.The duplicate movieclip is created on "_root"-level and has an onEnterFrame attached to it that checks whether a certain stage is met (all this works).Now the problem is, when the case is met, I need to access a subfunction of "Game" and pass it the MC's ID to fade out the Bonus Item. Like so:[AS]Game.prototype.fadeBonus =

function(number) {
// just some stuff to fade out the MC with the number
// passed through the value "number". This works well,

[code].....

View 3 Replies

AS 3 :: Child Call A Function In Its Parent?

Mar 7, 2009

I have a function (let's call it testFunction for right now ) on the actions layer in the main timeline There is a movie clip with 15 frames long in the library

i want to add a child of the movie clip on the stage, and call testFunction when it finishes playing

how can i do? i tried to call it in the child but nothing works

Or, is there any way to show child on the stage for only a period of time like 1 second and then remove it automaticly?

View 1 Replies

ActionScript 3.0 :: Calling An Function On Parent Swf

May 12, 2009

new to actionScript and trying to finish my final project, and i'm banging my head on a brick wall now, my question may be easy for some pros,[code]this child swf is loaded from xml. and the close button is created by using AS file. The "button1" is just on the stage of the main swf. Maybe these make some difference so i can't just point it back using (root)?Any idea how do I resolve this? Or am I not supposedd to do it this way at all?

View 2 Replies

IDE :: Why Does Parent Correct Function Not Working

Sep 19, 2009

In actions in my .fla file I create a new object of a class (addChild) which is in an separate .as file. Now, in my .as file I want to call a function in the .fla file. This should be the parent right? So, I try parent.correct(); which does not work. I get the error #1061 (call to a possibly undefined method). However, when I do this:
var par:* = parent;
par.correct();
Everything works. Why is this?

View 3 Replies

ActionScript 3.0 :: Calling A Parent Function?

Jan 29, 2010

i have a swf that loads a swf that loads one swf into that one. i need the final swf (child, child) to be able to call a function on the first swf (parent)

i have tried this:

if(MovieClip(parent.parent.parent)!=null){MovieCli p(parent.parent.parent).parentFunctionCall();}

[Code]....

View 2 Replies

ActionScript 3.0 :: Create A Localconnection Object In Both The Parent And Child?

Jun 22, 2009

its necessary to create a localconnection object in both the parent and child swf if bi directional comm is desired ?? so ..
 
[Code]...
 
the child is loaded and unloaded multiple times ..the 1st time .. no issues ..everytime thereafter when the child is loaded .. I get .. "ArgumentError: Error #2082: Connect failed because the object is already connected." when the child is unloaded .."ArgumentError: Error #2083: Close failed because the object is not connected."seems like the connection is persistant until the child is instantiated

View 4 Replies

ActionScript 3.0 :: Create And Define A Variable In A Child From The Parent?

Oct 14, 2010

is there anyway to create and define a variable in a child from the parent? For example, if I add a child to the stage with code, and then want to be able to say

child.variable=0

to create a variable in the child and be able to edit and read the variable. I know the above code is way off but it's just to kinda get the point through.I have to define the variable this way.

View 2 Replies

ActionScript 3.0 :: Create Loader To Load XML Images?

Feb 11, 2009

I've been at this for a couple of hours chopping and changing all sorts of things so now im going back to basics and starting from scratch[code]...

all i am planning on doing is having an automated holder looping through 5 images, not even bothered about fading or anything for now, just need a dead simple loader to actually get me going again to give me something to build on

View 1 Replies

Dynamically Create A Uniquely Named Loader?

Oct 20, 2010

I have an array of external images that I am loading and the number of external images is variable, so I want to be able to create loaders to load them as needed. Is there a way to dynamically create and uniquely name a loader at run time?

Otherwise is there a way to pass the image content off in such a way that it will remain loaded if the loader is used to load other images?

View 3 Replies

Actionscript :: Create An Image Up-loader On Flash?

Nov 4, 2009

I have been looking over the internet for a while about this, but it doesn't seem like there is any information available specifically related to captcah and flash.

My purpose is to create an image up-loader on flash, and implement "recaptcha" on it, so the upload is controlled.

I know that some people will say, "well you can't automatize flash input so you don't need captcha in this situation" even though this is somewhat true, there is still screen macro programs that could potentially make the computer upload hundreds of pictures if there is not something in place to avoid it.

I thought of implementing my own captcha but that seems to me like i would be reinventing the wheel, can anyone point me on the right track for this? or suggest another approach to avoid abuse on my image up-loader flash?

View 2 Replies

ActionScript 3.0 :: Create Loader From Event Object?

Oct 15, 2010

I'm listening for a Loader to COMPLETE loading, and then I jump to a handler function "thumbLoaded". I would like to create a new Loader obj. each time I enter the "thumbLoaded" function. I would like this new Loader to be equal to the Loader that triggered the COMPLETE event. But I don't know the correct syntax to refer to that Loader. I'm trying to refer to the "parent" of the contentLoaderInfo object (ie, the Loader object itself). I've tried both "target.parent" and "currentTarget.parent". I get an error that says "parent is not a valid property of the loaderInfo object".

ActionScript Code:
function loadThumb():void{
if (i < kitchensGallery_xml.kitchen.length()){
var thumbLoader:Loader = new Loader();

[Code]....

View 4 Replies

Actionscript 3.0 :: Create Pre-loader For Video File?

Dec 15, 2010

how can i create pre-loader for video files, because i tried to apply the pre-loader that i use with images, and it load actual and when it loaded appears in output pane that message "Loaded file is an unknown type" !!, and my video doesn't play...

this is my code

Code: Select allstop();
var video:Video = new Video(320, 240);
var nc:NetConnection = new NetConnection();
nc.connect(null);

[Code].....

View 8 Replies

ActionScript 3.0 :: Create A New Instance Of A Loader Each Time?

Sep 26, 2009

I dont know wheather to create a new instance of a loader each time:

var loader:Loader;
someFunction(){
loader = new Loader();

[Code]....

Second question is (if I use the second way) why do I need to unload the loader before calling load again? (otherwise I get an error)

View 1 Replies







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