Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compilation with Flex 4 SDK ?
01-28-2011, 03:05 PM
Post: #1
Compilation with Flex 4 SDK ?
Hi,

I can't run Flash builder on my platform, so I tried to compile jabbercam with mxmlc compiler (Flex 4 SDK).
I have no knowledge in flash programming but I succeeded in "hello word" compilations.

Unfortunately, when I try to compile jabbercam, it doesn't work...

Code:
$mxmlc JabberCam.mxml
Loading configuration file /opt/flex/frameworks/flex-config.xml
/home/ed/tmp/5.1.fxp_FILES/src/JabberCam.mxml(-1):  Error: Access of undefined property DEBUGGING.

<?xml version="1.0" encoding="utf-8"?>

/home/ed/tmp/5.1.fxp_FILES/src/JabberCam.mxml(-1):  Error: Access of undefined property RELEASE.

<?xml version="1.0" encoding="utf-8"?>

What's wrong ?
Thanks in advance.
Find all posts by this user
Quote this message in a reply
01-29-2011, 11:19 AM
Post: #2
RE: Compilation with Flex 4 SDK ?
try removing the property (RELEASE) it is just a simple label, not needed

I Heart chatroulette
Visit this user's website Find all posts by this user
Quote this message in a reply
02-01-2011, 06:28 AM (This post was last modified: 02-01-2011 06:31 AM by Ed38.)
Post: #3
[SOLVED] RE: Compilation with Flex 4 SDK ?
Thank you, I tried and it worked but other errors occurred.

Finally, this seems to work for linux users :

Code:
$ mxmlc  -theme=/opt/flex/frameworks/themes/Halo/halo.swc   -define+=CONFIG::DEBUGGING,false -define+=CONFIG::RELEASE,true  JabberCam.mxml

Halo.swc's path may varie, depending on Flex SDK installation.

I also had to change relative paths in jabbercam/comp/StartupAlert.mxml
../assets/ => ../../../assets/

Some warnings remain but it works.

An excerpt, just for information :
Code:
..../assets/style.css: Warning: Type 'Application' in CSS selector 'Label' must be qualified with a namespace.
(Same warning for 'Button', 'Textarea', 'Textinput', 'ScrollBar', 'ComboBox' and 'Label')

..../src/JabberCam.as: Warning: 'getStyleDeclaration' has been deprecated since 4.0.  Please use 'IStyleManager2.getStyleDeclaration on a style manager instance'.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)