Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-27-2010, 09:32 PM   #1
ryanmills
Flash Groupie
 
Join Date: Feb 2005
Posts: 170
Send a message via AIM to ryanmills Send a message via MSN to ryanmills
Default Linux standalone player for AS3

I'm working under Ubuntu 9.10

I have a simple test project that I used the complier from flex 3.5 SDK and I can compile fine but I was hoping to be able to use the standalone viewer to run it without having to run it in firefox ect. Now I have the firefox plugin but I cant seem to find a way to just it just by itself just like you would on a windows setup. Anyone know of a standalone player that will play as3 compiled for flash player 10?
ryanmills is offline   Reply With Quote
Old 01-27-2010, 10:38 PM   #2
lordofduct
Senior Member
 
lordofduct's Avatar
 
Join Date: Feb 2008
Location: West Palm Beach, FL
Posts: 3,106
Default

I'm betting you got the flashplayer plugin from the repos... right?

Open synaptic package manager... uninstall that package COMPLETELY. You don't want it (the repos are always out of date for flashplayer).

Now go here:

http://www.adobe.com/support/flashpl...oads.html#fp10

find the 'linux flashplayer 10 debugger' section (this is for debugger version... it makes deving much easier, also if you are using like Eclipse or something with the FlexBuilder plugin, this will give you the latest version... though that's a bit tough to get working correctly, so tell me if this is true and I can explain it).

Make sure you get the 'tar' of it and not some other. The tar I find to be the easiest.

decompress the tar where ever. I usually do it right on the desktop so it's easy to get to in terminal... so lets say it's at:

/home/myUserName/Desktop/flash_player_10_linux_dev

open the folder and navigate into ./plugin/debugger and decompress the install_flash_player_10_linux.tar.gz

now open terminal and do the following:

Code:
//ignore bash~$, that's just me saying new command line
//change to the correct directory
bash~$ cd ~/Desktop/flash_player_10_linux_dev/plugin/debugger/install_flash_player_10_linux

//make installer executable
bash~$ sudo chmod -755 ./flashplayer-installer

//run plugin installer
bash~$ sudo ./flashplayer-installer
follow the on screen prompts. This gets the latest flashplayer plugin installed w/ debug capabilities.


Now for the standalone player.

Go back to /home/myUserName/Desktop/flash_player_10_linux_dev

and follow down into ./standalone/debugger, and decompress the tar in there... that's your standalone player.



NOW, this is what I usually do... you don't have to do it this way. You can just toss this on your desktop and run it from there. But I like to do it another way, this lets linux recognize it as a global program and be ran from terminal easily.

in your home directory if you don't already have it, create a 'Programs' folder...

/home/myUserName/Programs

this is where I install special programs that aren't from the repo and are private to me alone.

Now drop the standalone player in the Programs folder... /home/myUserName/Programs (if you want, give it its own folder... but you don't have to)

now open a terminal and do the following and go to the /usr/local/bin folder:

bash~$ cd /usr/local/bin

while in this folder as root create and edit a file called 'flashplayer'

bash~$ sudo gedit flashplayer

you'll have to enter your root password

now in the file write the following:

Code:
/home/myUserName/Programs/flashplayer
or wherever your flashplayer program is located

save and close... and finally make it executable

bash~$ sudo chmod 755 /usr/local/bin/flashplayer



...

NOW, no matter where you are you can run flashplayer just by typing

bash~$ flashplayer

win!

You can even create a launcher on your desktop somewhere for it, just add the command 'flashplayer' and it will launch.




NOTE:

chmod 755 is a command to modify the permissions of a file or folder. The octal code 755 means:

owner: read write execute
group: read execute
nouser: read execute
__________________
www.lordofduct.com - come read my blog!

If you want to know how to program, take a math class, take a lot of math classes!

Last edited by lordofduct; 01-28-2010 at 12:16 AM.
lordofduct is offline   Reply With Quote
Old 01-28-2010, 09:48 PM   #3
ryanmills
Flash Groupie
 
Join Date: Feb 2005
Posts: 170
Send a message via AIM to ryanmills Send a message via MSN to ryanmills
Default

You sir win!

Thats exactly what I needed, for whatever reason my build of Ubuntu 9.10 is running a old version of glibc. But the precompiled flashplayer was exactly what I needed. I have a project I needed to be able to deploy completely via SVN with custom flex configs. So now I have everything I need in a single folder with simple bash script that sets all the configs, compile then display.

Thanks for your help
ryanmills 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


All times are GMT. The time now is 07:51 PM.


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