Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 07:30
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  Flash 8 (Moderators: Jorge Solis, ..:: Mazhar Hasan ::.., Andresss)
| | |-+  accessing Arrays (filters) in root level
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: accessing Arrays (filters) in root level  (Read 838 times)
MrEd
Seasoned Programmer
***
Posts: 103



View Profile WWW Email
« on: 12/02/09, 15:10 »

Here is my code:

import flash.filters.GlowFilter;
var GlowStart:GlowFilter = new GlowFilter(0xffffff, .60, 7, 7, 4, 3, false, false);


If this code is on the same page then this works:

MyMc.filters = [GlowStart];

If I put the code in the root and try to access it from another movie level this doesn't work

L1.filters = _root.[GlowStop];
or this doesn't
L1.filters = [_root.GlowStop];


HOW DO I ACCESS THIS IN THE ROOT LEVEL.

Tried making it a _global but it gets errors right away..

Thanks
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #1 on: 12/07/09, 08:59 »

Try just tracing the filter from any level to check if it exists:

trace(_root.GlowStart)

If you get something the use it

L1.filters = _root.GlowStart;

Jorge
Logged

Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!