PDA

View Full Version : Flash player instead of browser


pan69
03-24-2006, 04:02 AM
This may be a stupid question, but can someone please tell me how I can execute the Flash Player (8.5) from the Flex Builder Beta 2 IDE when running an application instead of a browser. I do not develop for browsers...

I tried to add the player to Window / Preferences / General / Web Browser but that seems to execute the player but without content.

Any ideas?

hangalot
03-24-2006, 04:19 PM
dbt click on the swf thats built in the bin folder, or use ant to automate your build and target the swfplayer like this

<target name="runSWF" >
<exec executable="${basedir}\${flash.debugPlayer}" spawn="yes" >
<arg line="'${basedir}\${outputdir}\${swf.name}.swf'"/>
</exec>
</target>

pan69
03-24-2006, 10:14 PM
...from the Flex Builder Beta 2 IDE...

Thanks for your post anyway!

hangalot
03-24-2006, 10:15 PM
the flex 2 ide is eclipse, ant runs in eclipse natively (its what the ide uses to build behind the scenes). thats what we do for our build process.

hangalot
03-24-2006, 10:17 PM
in zorn(the flex 2 ide) of course

hangalot
03-25-2006, 03:09 AM
yeah, sorry for being short in my answers before i was trying to get our of work.
my advice is to download eclipse
http://www.eclipse.org/downloads/
then install the plugin version of zorn instead of the standalone editor. both use the same eclipse, but the zorn version of eclipse that comes by default is so crippeled that it gets irritating.
then google how people have been building flex 2 apps on a mac, somewhere you will find an example that uses ant, then grab the ant script, in your project folder inside zorn create a file called build.xml and pop that xml from the and script in there. add the tag i gave you earlier and make certain that it runs after the compile (google: ant depends target)
all you have to do then is right click on the file and say run as ant script.

trust me on this, go through this pain now, learn ant and how to use it in eclipse and in 3 months time you will thank me for it.

pan69
03-27-2006, 05:45 AM
Figured it out. Go to Project / Properties / AcrionScript Compiler and untick the "Generate HTML wrapper file" option. When running the application it will be executed from the Flash Player rather then the browser.

hangalot
03-27-2006, 03:30 PM
aaah please learn ant. trust me, pretty please, you will never regret it!

pan69
03-27-2006, 10:07 PM
aaah please learn ant. trust me, pretty please, you will never regret it!
I want to. But I'm an old man you see. I'm more of a Make man. There is nothing I can't build with Make. And besides, I hate XML... :)

Thanks for your response anyway...!

hangalot
03-27-2006, 10:20 PM
./make
./make install
./make idontunderstandmake