A better solution is to publish a SWC file from the FLA!

This is an option of Flash CS3 AS3 publish settings: all the exported
library symbols will be compiled in a SWC when you publish the FLA
(you get both a SWF and a SWC).

Then add this SWC library to your project and you'll be able to use
it's classes.

If you have an advanced code editor (FlashDevelop, Flex Builder, FDT)
you'll have the code completion for the SWC classes.

>  >
>  > If you want to use the Flash CS3 Components you can create a swf, in Flash,
>  > that holds the components you want to use and the use Loader to load them
>  > into your application. Once they have loaded you can do the following:
>  >
>  >  //  UIScrollBar
>  >
>  >  var uiScrollClass:Class = getDefinitionByName 
> ("fl.containers.UIScrollBar")
>  > as Class;
>  >  var uiScrollbar:UIScrollBar = new uiScrollBarClass () as UIScrollBar;
>  >
>  >  addChild (uiScrollbar);
>  >
>  >  Make sure you load the swf holding the components in the same
>  > ApplicationDomain as your application using the LoaderContext class:
>  >
>  >  var loader:Loader = new Loader ();
>  >  var context:LoaderContext  = new LoaderContext (true,
>  > ApplicationDomain.currentDomain);
>  >
>  >  loader.load (new URLRequest ("urlToYourSwf.swf"), context);
>  >
>  >
>  >
>  >  Best regards, Yotam,

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to