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


Similar Posts:


ActionScript 3.0 :: Access Loader Properties From Fla?

Mar 9, 2010

Let me just start by saying this forum is awesome, over the past 3 years I've found nearly all of the answers to my AS questions without posting once... That streak ends today.I'm building a site where the client is going to be able to upload various backgrounds which load depending on which tab they click on.

The class is BigBackground.as. It does the loading of the backgrounds, and then in the .fla I would like to manipulate these "BigBackgrounds" starting with the width. However, even though the width traces correctly from BigBackground.as, the width traces to 0 from the .fla file. I can access width from the class, but how can I access the width & height from the .fla?[code]...

View 2 Replies

Actionscript 3 :: Using Loader, Can't Access Properties Of Loaded Swf?

Apr 29, 2010

Main movieclip onstage is : design_mc. Within it is a movieclip already in place onstage with an instance name clipart_mc.also loading a ListBox to the stage and each time a selection is made from listbox myLoader9 is used to load selected .swf intodesign_mc.clipArt_mc.Now within each of the .swf files loaded into design_mc.clipArt_mc there is a mc ike to color transform called color_mc.So now the listbox is onstage and I make a selection that places heart.swf inside of design_mc.clipArt_mc. I want to access heart.swf so I did this:

var child:DisplayObject = myLoader9.content.contentLoaderInfo.content.color_mc;
var colorTrans3:ColorTransform = new ColorTransform();
var trans3:Transform = new Transform(child);

[code].....

View 2 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 2.0 :: 'reverse' Inheritance - Parent Access The Properties Of A Child Class?

Feb 10, 2005

i've got an inheritance chain of AS2 classes set up where i have an array in the 'child' class that i'd like to be able to access from the 'parent' class:

bottomClass.as -'parent'
topClass.as -'child'

my question/dilemma is: how can the parent access the properties of a child class...is this even possible, or am i just looking at it wrong?

View 2 Replies

ActionScript 2.0 :: 'reverse' Inheritance - Parent Access The Properties Of A Child Class?

Feb 10, 2005

i've got an inheritance chain of AS2 classes set up where i have an array in the 'child' class that i'd like to be able to access from the 'parent' class:

bottomClass.as -'parent'
topClass.as -'child'

my question/dilemma is: how can the parent access the properties of a child class...is this even possible,

View 2 Replies

ActionScript 3.0 :: Access FileReference Class Add On Properties / Methods In Flash Player 10

Apr 7, 2009

My aim is to access the FileReference class Flash Player 10 properties,methods and Events using CS3 instead of CS4.For load() ,save() methods needs runtime version of Flash Player 10.I need to include the flash player 10 in CS3 publish settings Version.Otherwise you can suggest how i can able to access the FileReference class new properties and methods without CS4.

View 1 Replies

ActionScript 3.0 :: Error 1120: Access Of Undefined Property Parent + Movieclip(parent)?

Mar 15, 2011

I am trying to access a function that is on my document class for my AS3 project, from a nested class. That is, the Document Class calls Class A which then calls Class B. So I am trying to access a function from Class B, I am trying to use MovieClip(parent).function(); but I am getting error 1120. The MovieClip(parent) (fixed to reflect my document class, etc) works when I try it from other classes but not from this nested class.

View 9 Replies

ActionScript 3.0 :: How To Access A Loader Loaded By A Loader

Aug 13, 2009

How to access a loader loaded by a loader

View 4 Replies

ActionScript 3.0 :: Accessing Parent Through One Of Its Properties?

Jul 6, 2011

I'm doing some work with JSON in as3 using as3corelib (very useful) and was wondering if it is possible to get an object if all you have is one of its properties, also an object.Here's an example of some JSON:

ActionScript Code:
"parentObject": {
"propertyObject": {

[code].......

View 2 Replies

ActionScript 3.0 :: Loader With Custom Properties?

Oct 15, 2009

Through searching the various forums I have found that Loaders are not dynamic and hence you can not apply custom properties to each instance of them. I miss the old way (as2 way of attachingMovieClip) that you load dynamic content, at least you can apply custom properties, and you can always reference them for each object.

What I'm trying to do is load a group of Images via XML. Each one of those images have a set of information that is associated with them (name, description, etc). I have the images loading in and positioning just fine, however when trying to have a tooltip show the name on Mouse Over, I'm not able to achieve this...

In short. I want to be able to store information for each item so that I can access it. Is there a way to do this in AS3 with a Loader or is there another route I can go? If I do this with Arrays, how do I store the Index of the specific item so I can use that in reference to the position in each array?

[Code]...

View 3 Replies

ActionScript 3.0 :: Getting Parent MC Properties Named By XML Attribute

Oct 15, 2009

I've created an amount of MC based on my XMLlist, and each assign with an attribute/ID stated in the XML. I'm now trying to trace back the parent of the assigned MC properties, how could I do that?

ActionScript Code:
private function members();:void {
xmlList=myXML.children();
var trunksX=trunks.x;
var trunksY=trunks.y;
for each (myXML in xmlList) {
[Code] .....

View 0 Replies

Flash :: Inherited Properties Of An Image In The Loader

Aug 17, 2010

There's a Loader that I'm filling with different images depending on the button clicked. Now to keep it tidy I'm using the exact same loader. The problem is that no matter what I do to the image, the next image loaded always get's the properties of the previous one. I've used unload and the Loader returns 0 in width and height, and still the next image get's the previous image's w/h. Othe attempts have been separating it from the parent container and taking it out of the display list, and also using an Event.UNLOAD to make sure the previous image is out before the loading of the new image.

Script is gonne kinda long, but the basics would be these,

BrowserLoad.unload();
BrowserReq = new URLRequest("ImageB.jpg");
BrowserLoad.load(BrowserReq);

[Code]....

I guess it's general question: how can i be sure the image previously loaded in a Loader will not affect the next one coming? (its width and height being 0 has not been enough...)

View 2 Replies

ActionScript 3.0 :: Loader Instance With Custom Properties?

Oct 14, 2009

Through searching the various forums I have found that Loaders are not dynamic and hence you can not apply custom properties to each instance of them. I miss the old way (as2 way of attachingMovieClip) that you load dynamic content, at least you can apply custom properties, and you can always reference them for each object.What I'm trying to do is load a group of Images via XML. Each one of those images have a set of information that is associated with them (name, description, etc). I have the images loading in and positioning just fine, however when trying to have a tooltip show the name on Mouse Over, I'm not able to achieve this.

In short. I want to be able to store information for each item so that I can access it. Is there a way to do this in AS3 with a Loader or is there another route I can go? If I do this with Arrays, how do I store the Index of the specific item so I can use that in reference to the position in each array?** Should I use getChildIndex() in the function for the Event Listener to reference the data stored in the arrays for each item? If so, how do I do so? ***

PHP Code:
num = 0;var titleArray:new Array();function createImage(){ var thumb:Loader = new Loader; thumb.load(new URLRequest(url);

[code].....

View 2 Replies

ActionScript 3.0 :: Override MovieClip's Parent And Stage Properties?

Jul 10, 2009

is there a way to override a MovieClip's parent and stage properties? In a custom class extending the MovieClip class we can override the get parent() and get stage() methods. But is there a way to do it to existing MovieClip?

I mean I have an external swf content (loaded) and assigned to a movieClip. But now, how can I assign the loaded MovieClip to my custom class, so that it "doesn't see" the parent and stage properties?

Or can I override functions of existing classes? Sth like:

override public function myMovieClip["get parent"]():DisplayObjectContainer
{
...
}

I just need to prevent a loaded MovieClip from having access to the main movie's stage.

View 3 Replies

ActionScript 3.0 :: Altering Properties Of Loader Added As Child?

Mar 26, 2010

I have a holder movieclip on screen, then I create a loader, load an external SWF into the loader and addChild to my holder:

var bgloader1:Loader = new Loader();           [code].....
 
This all works.  Now if I want to come back later on and alter the alpha or position I get an error:
 
//Neither of these work:            MyHolder1.bgloader1.alpha=0;            MyHolder1.bgloader1.content.alpha=0;
 

TypeError: Error #1010: A term is undefined and has no properties. at flash.events::EventDispatcher/dispatchEventFunction()    at flash.events::EventDispatcher/dispatchEvent()    at flash.net::URLLoader/onComplete()

View 7 Replies

ActionScript 3.0 :: Setting Width And Height Properties Of A Loader

Feb 19, 2009

I want to bring an image in from a folder and then display this image in a specifically sized box.[code]So obviously I want the image loaded into a 200 x 200 box (the image is 1200x1200) and scaled proportionately. What do I need to do? The box won't resize at all.

View 6 Replies

ActionScript 3.0 :: Parent Movie Clip Properties Are Affected By Child's

Nov 22, 2010

My player movie clip has a smaller movieclip within it. Because the smaller movieclip is not within the parent clip it changes the x,y,width,and height value of the player movieclip and throwing everything off! To adjust I have to add (-2ndmovieclip.height) to everything i want to do. This is sloppy and I don't like it. Is there a better way to have a child within a movieclip without it affecting the parents properties? i want the parent to keep its original x,y,width,and height properties but the child keeps adding to them!

View 5 Replies

ActionScript 3.0 :: Avoid Children Inheriting Parent's Colortransform Properties?

Sep 8, 2010

this is the issue:i have a series of button that open a drag box with textfield and a close button in it. The drag box has to have the same colour of the button. So here it goes:

Code:
// array of buttons
var quadratini:Array = [muh,miao];

[code].....

View 1 Replies

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 :: Flex Element Wrongly Keeps Properties From Previous Parent - Reset It?

Oct 14, 2011

I want to put an element into another component (in this case a print template), print it, and then return it to its place. The problem is that when I return it, it has the properties of the print template! Here is a simplified example. When you click print, the label is removed and then returned but when returned it is affected by the padding of the print template! Why? How can I somehow refresh it to its proper properties? I tried all the invalidate... methods and parentChanged() but nothing worked.

[Code]...

View 2 Replies

ActionScript 3.0 :: Setting Properties Of Nested Clip From Document Class Of Parent

Aug 29, 2011

Setting properties of a nested clip from the associated document class of the parent clip. I am developing a Jigsaw puzzle in Flash. I am developing a class for puzzle piece. The code of the PuzzlePiece class in given as follows.

PuzzlePiece class
package {
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class PuzzlePiece extends MovieClip {
private var pieceX:Number;
[Code] .....

Is it wrong to access it like that. The PuzzlePiece is the export for a puzzle clip. For the time being I am hard coding the dimension as 60. I have aloso uploaded the fla and as files. [URL].

View 4 Replies

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

ActionScript 3.0 :: Flash - Access Player.x And Player.y From External Class?

May 8, 2011

I am trying to put together a simple game and have been doing really well until I decided I am going to have to create a new class to handle enemies.What I have so far is a player walking around on random terrains and I am up to the point where I have placed x amount of enemies on stage at appropriate times. I have written their class which will hopefully eventually handle their behavior and it outputs simple trace("BOO!").

Where I face the problem is that I obviously would like to make these enemies follow the player to attack. But when I try to access the .x or .y attributes of the player, it throws an error: 'call to a possibly undefined property with static type Class'?I have tried accessing the .x using the following ways (where badger is my player instance and Main is my class definition within the properties of the FLA):

Main.badger.x
Main(root).badger.x
Stage.badger.x

I have also tried to access other vars and still nope..My class code is this:

Code:
package
{
import flash.display.MovieClip
import flash.display.Stage

[code]....

View 1 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

Professional :: Loader Component Works When Publish To Flash Player 7 But Not In Flash Player 8

Jul 5, 2010

My loader component works when I publish to Flash Player 7 but not when I publish to Flash Player 8, why? The publish setting are for ActionScript 2.0 on both.

View 2 Replies

ActionScript 3.0 :: Why Cant Access Properties

Feb 4, 2010

I have a movieclip in the library with the linkage name:BackgroundClip, so in the constructor I create it, add it to the display list and can even access and modify its properties, which I tested with the x position. Now what im having issues with is getting the stage resize listener to adjust the BackgroundClip instance, bg, to the stages width and height. In the clip is an image, so if someone has a better way of using classes to create full screen liquid gui im all ears![code]

View 4 Replies

ActionScript 3.0 :: Cant Access Any Properties Of A Mc?

Feb 19, 2010

why I cannot access the alpha property of the mc called 'newImageContainer' below? (This is just an extract of the code):

Code:
var newImageContainer = new mcGroupItemHolder();
var newMc_thumbnailBG = new mc_thumbnailBG();

[code]......

View 2 Replies

Flex :: Access Properties Of Column?

Aug 18, 2009

I have following datagrid[code]...

I want to send a name of opponent to a webserver after Delete button is clicked. Can I access correspondent value in datagrid on click event?

View 1 Replies

AS3 :: Flash - Only Allow Access To Certain Properties On DisplayObject?

Jun 16, 2011

I have a getter within a class which is used to make my property skin:DisplayObject read-only. This class also has a property body:AvBody which is used to define the x y width height etc of the object, which in turn positions the skin.

What I want to do is disable access to the properties x and y on skin unless accessed from within the internal namespace (where AvBody is also located) Is this possible?

Note: I can't make skin any type other than DisplayObject (I can't even make skin a class that extends DisplayObject because it creates issues with library symbols).

View 3 Replies







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