Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

How do you compile player with Flash IDE (CS4)

21 replies [Last post]

Presumably it should be easy to compile the player using Flash CS4 instead of FLEX. There are no instructions on the readme file, and I can't find any information on this site about this. Has anyone done this successfully? And if so can you give me some instructions?

Anyone done this? Surely this isn't an unusual request?

The V5 player wasn't written in Flash CS4. We use free/open source tools to compile it.

I understand that. But surely its also a possibility to compile with the flash IDE?

@Naomi -

Flash CS4 does have the ability to compile using the Flex Framework, although you'll need to fiddle with the default settings to get it to compile the JW Player. The basic idea is to create a blank FLA file in the "src" directory. Then, in the Properties menu, under "Publish", enter "com.longtailvideo.jwplayer.player.Player" in the Class field. When you try to publish the movie, you'll be prompted to enter the location of the Flex SDK (you'll need to install it separately).

After all of this, open the Publish Settings dialog and click the "Settings" button next to the "Script" dropdown. Click the "Library path" tab, and edit the entry "$(FlexSDK)/frameworks/libs/flex.swc" to read "$(FlexSDK)/frameworks/libs" (i.e. remove "flex.swc"). You should now be able to publish the player.

Thankyou Pablo! :D

putting "com.longtailvideo.jwplayer.player.Player"
in my publish settings under class, doesnt ask me for the sdk. i need to have transparency wmode=transparent

@Marc -

You can set the SDK in your Flash CS4 preferences. In preferences, go to the Actionscript panel, then click the "Actionscript 3.0 settings" button.

You don't need to compile the player if all you want to do is set wmode=transparent. This can be done by editing the HTML code that embeds your player.

Thanks... that method works great.
But how can i set parameter (like width, height, file and so on) directly that there is no html code or config file needed?
Thanks for your help

@Adebar -

The place to add these in is in the Configger class (com.longtailvideo.jwplayer.utils.Configger):

public class Configger extends EventDispatcher {
private var _config:Object = {};
...

Put the additional parameters you want in the _config variable:

public class Configger extends EventDispatcher {
private var _config:Object = {
file: "myvideo.flv",
image: "thumbnail.jpg"
};
...

Thank you very much :)

wanted to document a discovery I made compiling the FLA in this way (at least for 5.0)

It throws “Migration issue” errors when you publish.

Hoever, if you IGNORE these messges (not something most Flash developers do) the player.swf is actually fine.

Hi,

I've tried to compile ImageRotator in CS4, but when I do this step:

After all of this, open the Publish Settings dialog and click the "Settings" button next to the "Script" dropdown. Click the "Library path" tab, and edit the entry "$(FlexSDK)/frameworks/libs/flex.swc" to read "$(FlexSDK)/frameworks/libs" (i.e. remove "flex.swc"). You should now be able to publish the player.

I get the following error:

a definition for the document class could not be found in the classpath, so one will be automatically generated in the SWF file upon export.'

I just hit OK and try to publish, but it results in an SWF file that does not work. I am not sure if I just don't have the correct Flex SDK installed... I did not install one manually, but I assume that I have one since this folder exists: C:\Program Files (x86)\Adobe\Adobe Flash CS4\Common\Configuration\ActionScript 3.0\libs\flex_sdk_3

Am I correct? Or do I still need to install a Flex SDK separately? Thanks.

z

@ZachVenice - You do not need to use the Flex SDK to compile the Image Rotator.

The Image Rotator is AS2 based and can be compiled from any modern version of Flash that supports AS2+

then i'm unsure how/where i link the actionscript into the .fla so that i can output an swf that works. are there some different instructions for this? don't i still have to enter "com.longtailvideo.jwplayer.player.Player" in the Class field? and where will it pull this code from? any help would be great :)

That is not for the rotator.

You can download the rotator source here - http://developer.longtailvideo.com/trac/changeset/1097/tags/imagerotator-3.18?old_path=%2F&format=zi...

Thank you that really helps!

Np!

UP!

I would like to compile some sources (namely the revolt plugin) from the Developer sources listed on the plugin page.

Ethan you mention that you can do so using free and open source components. Can you give me a quick rundown on how to do this under Linux or Windows?

Thanks,

@Kevin - The open source building/compiling relates to the JW Player V5 specifically, here is some more information - http://developer.longtailvideo.com/trac/wiki/Player5Roadmap#AutomatedBuilding

For plugins, here is more information - http://developer.longtailvideo.com/trac/wiki/Player5PluginsBuilding

Perfect thank you Ethan!

Np! :)