Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Flex > Flex 2 & 3

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-24-2006, 04:02 AM   #1
pan69
Fight ya for a pint!
 
pan69's Avatar
 
Join Date: Jan 2005
Location: Sydney / Australia
Posts: 1,706
Default Flash player instead of browser

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?
pan69 is offline   Reply With Quote
Old 03-24-2006, 04:19 PM   #2
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

dbt click on the swf thats built in the bin folder, or use ant to automate your build and target the swfplayer like this
Code:
<target name="runSWF" >
    <exec executable="${basedir}\${flash.debugPlayer}" spawn="yes" >
      <arg line="'${basedir}\${outputdir}\${swf.name}.swf'"/>
    </exec>
  </target>
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 03-24-2006, 10:14 PM   #3
pan69
Fight ya for a pint!
 
pan69's Avatar
 
Join Date: Jan 2005
Location: Sydney / Australia
Posts: 1,706
Default

Quote:
Originally Posted by pan69
...from the Flex Builder Beta 2 IDE...
Thanks for your post anyway!
pan69 is offline   Reply With Quote
Old 03-24-2006, 10:15 PM   #4
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

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.
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 03-24-2006, 10:17 PM   #5
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

in zorn(the flex 2 ide) of course
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 03-25-2006, 03:09 AM   #6
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

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.
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 03-27-2006, 05:45 AM   #7
pan69
Fight ya for a pint!
 
pan69's Avatar
 
Join Date: Jan 2005
Location: Sydney / Australia
Posts: 1,706
Default

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.
pan69 is offline   Reply With Quote
Old 03-27-2006, 03:30 PM   #8
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

aaah please learn ant. trust me, pretty please, you will never regret it!
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 03-27-2006, 10:07 PM   #9
pan69
Fight ya for a pint!
 
pan69's Avatar
 
Join Date: Jan 2005
Location: Sydney / Australia
Posts: 1,706
Default

Quote:
Originally Posted by hangalot
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...!
pan69 is offline   Reply With Quote
Old 03-27-2006, 10:20 PM   #10
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

./make
./make install
./make idontunderstandmake
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
one template, many looks? subquark ActionScript 1.0 (and below) 1161 09-03-2009 04:45 PM
Controlling Browser Window via Flash Javascript buttons [via 'get url' statement]. cheeky_monkey ActionScript 1.0 (and below) 7 01-20-2009 03:30 PM
Flash player 5 mexican Other Flash General Questions 3 10-14-2005 08:28 AM
Flash Player slower than browser? NeoPickaze Other Flash General Questions 1 05-14-2005 02:25 PM
enterframe and load and objects, oh my! dice ActionScript 1.0 (and below) 13 07-18-2003 12:07 PM


All times are GMT. The time now is 08:14 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.