no there is no way
improts are executed at compile time all you can do is to define which class
to use depending on player version

2006/6/5, Christian <[EMAIL PROTECTED]>:

Hey Guys,

So i'm in the process of writing a class that does a lot of JavaScript
handling.  The tricky part is, I want to use External Interface for
those files published in 8 and simple getURL calls for those published
in 7 or below.

For all intents and purposes, this is a private class that won't be
exposed to the public, so I can't simply require the user to import
version 8 of class or version 7 of class.

Is there a way to do a conditional import based on published version,
instead of runtime version?  I often use $version to detect major
version of play to handle other functionality, but as you all know
External Interface breaks if not published in 8.

OR better yet, could I simply just copy the file to the FP7 folder and
fake it?

Does this make sense or am I smoking crack here?

Christian
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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