Re: [Flashcoders] Conditional Import Statements

2006-06-05 Thread Janis Radins
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

Re: [Flashcoders] Conditional Import Statements

2006-06-05 Thread Danny Kodicek
You could try a JSFL approach: make a macro that writes in the appropriate import statement just prior to publish. Danny 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]:

Re: [Flashcoders] Conditional Import Statements

2006-06-05 Thread Tyler Wright
The only way is to compile the classes into a seperate SWF's and at runtime when you make the check load in the appropriate SWF. Not a very simple solution. I've found that a good solution, if you can afford to combine the classes into one, is making a runtime check on functionality.

Re: [Flashcoders] Conditional Import Statements

2006-06-05 Thread Christian
Yeah, maybe, that's an interesting approach actually. I'll report back on how I handled this later. Christian Danny Kodicek wrote: You could try a JSFL approach: make a macro that writes in the appropriate import statement just prior to publish. Danny no there is no way improts are

Re: [Flashcoders] Conditional Import Statements

2006-06-05 Thread Christian
Hrmmm... interesting. I'll have to try that out, but seems like potentially a lot of overhead no, with the subswf's, and then managing naming, loading and possible deletion? Thanks for the help though, this is at least a good start. Tyler Wright wrote: The only way is to compile the classes

Re: [Flashcoders] Conditional Import Statements

2006-06-05 Thread Scott Hyndman
You could also use haXe, which offers conditional compilation. The language isn't so different than ActionScript either. Scott On 6/5/06, Christian [EMAIL PROTECTED] wrote: Hrmmm... interesting. I'll have to try that out, but seems like potentially a lot of overhead no, with the subswf's, and

RE: [Flashcoders] Conditional Import Statements

2006-06-05 Thread Lee McColl-Sylvester
To: Flashcoders mailing list Subject: Re: [Flashcoders] Conditional Import Statements Unfortunately I am packaging up a set of classes for mass distribution for work, so that won't work. That would be too easy :) Scott Hyndman wrote: You could also use haXe, which offers conditional compilation