Skip navigation
emstris
Currently Being Moderated

can't access the .parent properties of the Loader with player 11.2

Apr 13, 2012 8:29 AM

Tags: #security #player #loader #sandbox #parent #11.2

ok, this is so embaresing and my whole business is suffering from this! www.doitflash.com

 

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

 

I used to access the TextField like this:

_textArea = _loader.parent as Object

 

now this does not work!!!

 

 

 

I would appriciate any idea on how I can fix this...? 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. Thanks.

 
Replies
  • Currently Being Moderated
    Apr 13, 2012 8:38 AM   in reply to emstris

    you just get a crash? no errors? nothing traced out?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 13, 2012 8:44 AM   in reply to _spoboyle

    also maybe try watching this thread

     

    http://www.actionscript.org/forums/showthread.php3?t=272296

     

    although it's 3 days old now so might be a deadend

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points