Try creating a class and using a static variable:

package mypackage {
   class ProductInfo {
       public static var name:String = "Stability";
   }
}

Then in your loaded movie's code:

import mypackage.ProductInfo;
doSomethingWith(ProductInfo.name);

One step more advanced: make it a property. One step even more
advanced: make it a bindable property linked to an event,
"nameChange".

Unless it's suppose to be a constant value, in which case use:
       public static const NAME:String = "Stability";

On 12/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

I am having problems sharing variables between the  loading and loaded .swf
files, using the Flash 9 authoring program.
For better explanation here is the method I have used with Flash  8.  The
main master file is used to  declare the variable; var productName:String="
Stability".  The main master file loads another file,  named "file 2".
In "file 2" I would then get the content of the productName  variable by
using "_level0.productName".
My question is; using the same file scenario with Flash 9, how  would I get
or set the content of the variable "productName" .
Thanks,
Daniel
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry & Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to