Bart
- - - - - - - - - - - - - - - - -
"Build `em right... support `em well... let our customers do the talking !"
Bart Harrison
Multimedia Programming America
The HD Suite, Inc.
5976 20th Street, #164
Vero Beach, FL 32966
www.hdsuite.com
Ph 954-894-1221
[EMAIL PROTECTED]
At 10:51 PM 12/9/2005, you wrote:
I wonder if there any chance to compile in Flex 2 a pure ActiveScript
3 application with a minimal GUI, say with only one button, and with
zero mxml.
Tried tons of variants like:
-------------------------------------------------------
package {
import flash.display.MovieClip;
import mx.controls.Button;
import mx.core.Application;
import mx.containers.Canvas;
public class as_test extends mx.core.Application /* or
MovieClip */ {
public var myButton:Button;
public var myCanvas:Canvas;
public function as_test() {
myCanvas = new Canvas();
myCanvas.percentHeight = 100;
myCanvas.percentWidth = 100;
this.addChild (myCanvas);
myButton = new Button();
myButton.label = "Stop!";
myButton.setStyle ("color", 0xFF0000);
myCanvas.addChild (myButton);
myButton.addEventListener ("click", doClick);
}
public function doClick():Void {
myButton.setStyle ("color", 0x00ff00);
}
}
}
------------------------------------------------------
but nothing happens. Blank player screen.
Huh.
Well, I compiled the Flex code:
------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx=" http://www.macromedia.com/2005/mxml"
xmlns="*">
<mx:Canvas width="100%" height="100%">
<mx:Button label="Button"/>
</mx:Canvas>
</mx:Application>
------------------------------------------------
with -keep-generated-actionscript=true, looked at the generated
source and got pissed off: 25 kb of low-level activescript. Sure, it
worked as desired if started in Flex, but hell, is there any chance
to have a non-mxml button with less mess? There is no clue in the
docs, no byte of examples - at least in my disposal.
Any help or ideas?
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders " on the web.
- To unsubscribe from this group, send an email to:
- [EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

