RE: [Flashcoders] [AS3] Compiling just from AS3 code, no mxml files

2006-07-07 Thread Tom Versweyveld | VERSO
Would it be possible to loadmovie a flex swf into a lightweight as3 only
swf? It would come in handy when you need a lightweight frontend
application, but want a flex backend app (where filesize isn't too much of a
problem)...

Tom



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Chambers
Sent: woensdag 5 juli 2006 22:54
To: Flashcoders mailing list
Subject: Re: [Flashcoders] [AS3] Compiling just from AS3 code, no mxml files

There is not support for using the Flex Framework in an AS only  
project. While it is theoretically possible, you would have to  
manually bootstrap a lot of the application initialization code that  
Flex handles (something which would be rather complex).

If you want to play with the framework, but don't want to layout your  
app with mxml, then the easier way is to create a simple mxml file  
that contains an application tag, and a script tag that then points  
to your code.

This way, the application tag will take care of all of the  
initialization, and you can then leverage the framework via  
ActionScript.

If you just want to use ActionScript and no framework, then mxmlc  
will also compile an .as file.

Hope that helps...

mike chambers

[EMAIL PROTECTED]

On Jul 5, 2006, at 11:58 AM, Zárate wrote:

 Hi all,

 I want to start playing with AS3 so I´ve downloaded the Flex 2 SDK
 from Adobe Labs. I don't want to use Flex Builder, I'm interested in
 the free compiler.

 I want to keep living without the Flex Framework but seems that the
 mxmlc compiler *needs* an mxml file (which, by the way, make sense):

 The basic syntax of the mxmlc utility is as follows:

 mxmlc [options] -file-specs target_file|dir [...]

 The file-specs options is the default option, and it is required to
 have a value. It refers to the target MXML file that mxmlc compiles
 into a SWF file.

 How do I create a SWF just from AS3 code without MXML files, aka Flex
 framework? Is this possible? Am I missing something important here?

 Cheers,

 Juan

 --
 Juan Delgado - Zárate
 http://www.zarate.tv
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [AS3] Compiling just from AS3 code, no mxml files

2006-07-06 Thread Zárate

Hi again,

I was asking for a little bit more info on:

you would have to manually bootstrap a lot of the application
initialization code that Flex handles (something which would be rather
complex)

Are you talking about initializing something to allow Events to work
or stuff like that?

Thanks again for you time.

Juan

On 7/5/06, Mike Chambers [EMAIL PROTECTED] wrote:

If you want to create a SWF that doesnt use the Flex Framework:

--HelloWorld.as--
package
{
import flash.display.Sprite;

public class HelloWorld extends Sprite;
{
public funciton HelloWorld()
{
trace(Hello World);
}
}
}

Then compile like so:

mxmlc HelloWorld.as

That will compile a SWF.

If you want to use the Flex Framework, then you :

a. have to use the technique I describe below
b. have to take the size hit that using the framework entails


Hope that helps...

mike chambers

[EMAIL PROTECTED]

On Jul 5, 2006, at 2:30 PM, Zárate wrote:

 Hi again,

 Thanks Mike for the info but could you explain it a little bit more or
 point us to some place describing the process? I´m fairly sure I won´t
 be the only one trying to create swfs without the Flex Framework.

 I haven´t done the test yet (I will, sure) but, which is the less size
 possible of a Flex application? I still have to take care about weight
 size in some projects.

 I know the Flex Framework is a boost for some applications (and free!)
 but maybe it´s still too heavy for ultra-light projects.

 Thanks,

 On 7/5/06, Mike Chambers [EMAIL PROTECTED] wrote:
  There is not support for using the Flex Framework in an AS only
  project. While it is theoretically possible, you would have to
  manually bootstrap a lot of the application initialization code that
  Flex handles (something which would be rather complex).
 
  If you want to play with the framework, but don't want to layout
 your
  app with mxml, then the easier way is to create a simple mxml file
  that contains an application tag, and a script tag that then points
  to your code.
 
  This way, the application tag will take care of all of the
  initialization, and you can then leverage the framework via
  ActionScript.
 
  If you just want to use ActionScript and no framework, then mxmlc
  will also compile an .as file.
 
  Hope that helps...
 
  mike chambers
 
  [EMAIL PROTECTED]
 
  On Jul 5, 2006, at 11:58 AM, Zárate wrote:
 
   Hi all,
  
   I want to start playing with AS3 so I´ve downloaded the Flex 2 SDK
   from Adobe Labs. I don't want to use Flex Builder, I'm
 interested in
   the free compiler.
  
   I want to keep living without the Flex Framework but seems that
 the
   mxmlc compiler *needs* an mxml file (which, by the way, make
 sense):
  
   The basic syntax of the mxmlc utility is as follows:
  
   mxmlc [options] -file-specs target_file|dir [...]
  
   The file-specs options is the default option, and it is
 required to
   have a value. It refers to the target MXML file that mxmlc
 compiles
   into a SWF file.
  
   How do I create a SWF just from AS3 code without MXML files,
 aka Flex
   framework? Is this possible? Am I missing something important
 here?
  
   Cheers,
  
   Juan
  
   --
   Juan Delgado - Zárate
   http://www.zarate.tv
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 


 --
 Juan Delgado - Zárate
 http://www.zarate.tv
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
Juan Delgado - Zárate
http://www.zarate.tv
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:

Re: [Flashcoders] [AS3] Compiling just from AS3 code, no mxml files

2006-07-05 Thread Beverly Guillermo

Hello,

I think it's infinitely more complicated but you could look at the generated
actionscript files that get generated after compiling the mxml code.  Use
the -keep as an argument to mxmlc.

For simpler examples, in the Actionscript 3.0 Language Reference document
(or the LiveDocs) there are examples that use extends the Sprite class.  I
find those more helpful then seeing the generated code. :)

I hope that helps!
Beverly


On 7/5/06, Zárate [EMAIL PROTECTED] wrote:


Hi all,

I want to start playing with AS3 so I´ve downloaded the Flex 2 SDK
from Adobe Labs. I don't want to use Flex Builder, I'm interested in
the free compiler.

I want to keep living without the Flex Framework but seems that the
mxmlc compiler *needs* an mxml file (which, by the way, make sense):

The basic syntax of the mxmlc utility is as follows:

mxmlc [options] -file-specs target_file|dir [...]

The file-specs options is the default option, and it is required to
have a value. It refers to the target MXML file that mxmlc compiles
into a SWF file.

How do I create a SWF just from AS3 code without MXML files, aka Flex
framework? Is this possible? Am I missing something important here?

Cheers,

Juan

--
Juan Delgado - Zárate
http://www.zarate.tv
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] [AS3] Compiling just from AS3 code, no mxml files

2006-07-05 Thread Mark Lapasa
http://knowledge.lapasa.net/?p=22


(my review of Senocular's take on the mxmlc compiler)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Beverly
Guillermo
Sent: Wednesday, July 05, 2006 3:22 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] [AS3] Compiling just from AS3 code, no mxml
files


Hello,

I think it's infinitely more complicated but you could look at the generated
actionscript files that get generated after compiling the mxml code.  Use
the -keep as an argument to mxmlc.

For simpler examples, in the Actionscript 3.0 Language Reference document
(or the LiveDocs) there are examples that use extends the Sprite class.  I
find those more helpful then seeing the generated code. :)

I hope that helps!
Beverly


On 7/5/06, Zárate [EMAIL PROTECTED] wrote:

 Hi all,

 I want to start playing with AS3 so I´ve downloaded the Flex 2 SDK
 from Adobe Labs. I don't want to use Flex Builder, I'm interested in
 the free compiler.

 I want to keep living without the Flex Framework but seems that the
 mxmlc compiler *needs* an mxml file (which, by the way, make sense):

 The basic syntax of the mxmlc utility is as follows:

 mxmlc [options] -file-specs target_file|dir [...]

 The file-specs options is the default option, and it is required to
 have a value. It refers to the target MXML file that mxmlc compiles
 into a SWF file.

 How do I create a SWF just from AS3 code without MXML files, aka Flex
 framework? Is this possible? Am I missing something important here?

 Cheers,

 Juan

 --
 Juan Delgado - Zárate
 http://www.zarate.tv
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [AS3] Compiling just from AS3 code, no mxml files

2006-07-05 Thread Zárate

Thanks Mark,

I had just found senocular´s page. I´ll take a look to both now and
comeback with boring questions in a while :D

Thanks!

On 7/5/06, Mark Lapasa [EMAIL PROTECTED] wrote:

http://knowledge.lapasa.net/?p=22


(my review of Senocular's take on the mxmlc compiler)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Beverly
Guillermo
Sent: Wednesday, July 05, 2006 3:22 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] [AS3] Compiling just from AS3 code, no mxml
files


Hello,

I think it's infinitely more complicated but you could look at the generated
actionscript files that get generated after compiling the mxml code.  Use
the -keep as an argument to mxmlc.

For simpler examples, in the Actionscript 3.0 Language Reference document
(or the LiveDocs) there are examples that use extends the Sprite class.  I
find those more helpful then seeing the generated code. :)

I hope that helps!
Beverly


On 7/5/06, Zárate [EMAIL PROTECTED] wrote:

 Hi all,

 I want to start playing with AS3 so I´ve downloaded the Flex 2 SDK
 from Adobe Labs. I don't want to use Flex Builder, I'm interested in
 the free compiler.

 I want to keep living without the Flex Framework but seems that the
 mxmlc compiler *needs* an mxml file (which, by the way, make sense):

 The basic syntax of the mxmlc utility is as follows:

 mxmlc [options] -file-specs target_file|dir [...]

 The file-specs options is the default option, and it is required to
 have a value. It refers to the target MXML file that mxmlc compiles
 into a SWF file.

 How do I create a SWF just from AS3 code without MXML files, aka Flex
 framework? Is this possible? Am I missing something important here?

 Cheers,

 Juan

 --
 Juan Delgado - Zárate
 http://www.zarate.tv
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
Juan Delgado - Zárate
http://www.zarate.tv
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [AS3] Compiling just from AS3 code, no mxml files

2006-07-05 Thread Mike Chambers
There is not support for using the Flex Framework in an AS only  
project. While it is theoretically possible, you would have to  
manually bootstrap a lot of the application initialization code that  
Flex handles (something which would be rather complex).


If you want to play with the framework, but don't want to layout your  
app with mxml, then the easier way is to create a simple mxml file  
that contains an application tag, and a script tag that then points  
to your code.


This way, the application tag will take care of all of the  
initialization, and you can then leverage the framework via  
ActionScript.


If you just want to use ActionScript and no framework, then mxmlc  
will also compile an .as file.


Hope that helps...

mike chambers

[EMAIL PROTECTED]

On Jul 5, 2006, at 11:58 AM, Zárate wrote:


Hi all,

I want to start playing with AS3 so I´ve downloaded the Flex 2 SDK
from Adobe Labs. I don't want to use Flex Builder, I'm interested in
the free compiler.

I want to keep living without the Flex Framework but seems that the
mxmlc compiler *needs* an mxml file (which, by the way, make sense):

The basic syntax of the mxmlc utility is as follows:

mxmlc [options] -file-specs target_file|dir [...]

The file-specs options is the default option, and it is required to
have a value. It refers to the target MXML file that mxmlc compiles
into a SWF file.

How do I create a SWF just from AS3 code without MXML files, aka Flex
framework? Is this possible? Am I missing something important here?

Cheers,

Juan

--
Juan Delgado - Zárate
http://www.zarate.tv
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [AS3] Compiling just from AS3 code, no mxml files

2006-07-05 Thread Zárate

Hi again,

Thanks Mike for the info but could you explain it a little bit more or
point us to some place describing the process? I´m fairly sure I won´t
be the only one trying to create swfs without the Flex Framework.

I haven´t done the test yet (I will, sure) but, which is the less size
possible of a Flex application? I still have to take care about weight
size in some projects.

I know the Flex Framework is a boost for some applications (and free!)
but maybe it´s still too heavy for ultra-light projects.

Thanks,

On 7/5/06, Mike Chambers [EMAIL PROTECTED] wrote:

There is not support for using the Flex Framework in an AS only
project. While it is theoretically possible, you would have to
manually bootstrap a lot of the application initialization code that
Flex handles (something which would be rather complex).

If you want to play with the framework, but don't want to layout your
app with mxml, then the easier way is to create a simple mxml file
that contains an application tag, and a script tag that then points
to your code.

This way, the application tag will take care of all of the
initialization, and you can then leverage the framework via
ActionScript.

If you just want to use ActionScript and no framework, then mxmlc
will also compile an .as file.

Hope that helps...

mike chambers

[EMAIL PROTECTED]

On Jul 5, 2006, at 11:58 AM, Zárate wrote:

 Hi all,

 I want to start playing with AS3 so I´ve downloaded the Flex 2 SDK
 from Adobe Labs. I don't want to use Flex Builder, I'm interested in
 the free compiler.

 I want to keep living without the Flex Framework but seems that the
 mxmlc compiler *needs* an mxml file (which, by the way, make sense):

 The basic syntax of the mxmlc utility is as follows:

 mxmlc [options] -file-specs target_file|dir [...]

 The file-specs options is the default option, and it is required to
 have a value. It refers to the target MXML file that mxmlc compiles
 into a SWF file.

 How do I create a SWF just from AS3 code without MXML files, aka Flex
 framework? Is this possible? Am I missing something important here?

 Cheers,

 Juan

 --
 Juan Delgado - Zárate
 http://www.zarate.tv
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
Juan Delgado - Zárate
http://www.zarate.tv
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [AS3] Compiling just from AS3 code, no mxml files

2006-07-05 Thread Mike Chambers

If you want to create a SWF that doesnt use the Flex Framework:

--HelloWorld.as--
package
{
import flash.display.Sprite;

public class HelloWorld extends Sprite;
{
public funciton HelloWorld()
{
trace(Hello World);
}
}
}

Then compile like so:

mxmlc HelloWorld.as

That will compile a SWF.

If you want to use the Flex Framework, then you :

a. have to use the technique I describe below
b. have to take the size hit that using the framework entails


Hope that helps...

mike chambers

[EMAIL PROTECTED]

On Jul 5, 2006, at 2:30 PM, Zárate wrote:


Hi again,

Thanks Mike for the info but could you explain it a little bit more or
point us to some place describing the process? I´m fairly sure I won´t
be the only one trying to create swfs without the Flex Framework.

I haven´t done the test yet (I will, sure) but, which is the less size
possible of a Flex application? I still have to take care about weight
size in some projects.

I know the Flex Framework is a boost for some applications (and free!)
but maybe it´s still too heavy for ultra-light projects.

Thanks,

On 7/5/06, Mike Chambers [EMAIL PROTECTED] wrote:
 There is not support for using the Flex Framework in an AS only
 project. While it is theoretically possible, you would have to
 manually bootstrap a lot of the application initialization code that
 Flex handles (something which would be rather complex).

 If you want to play with the framework, but don't want to layout  
your

 app with mxml, then the easier way is to create a simple mxml file
 that contains an application tag, and a script tag that then points
 to your code.

 This way, the application tag will take care of all of the
 initialization, and you can then leverage the framework via
 ActionScript.

 If you just want to use ActionScript and no framework, then mxmlc
 will also compile an .as file.

 Hope that helps...

 mike chambers

 [EMAIL PROTECTED]

 On Jul 5, 2006, at 11:58 AM, Zárate wrote:

  Hi all,
 
  I want to start playing with AS3 so I´ve downloaded the Flex 2 SDK
  from Adobe Labs. I don't want to use Flex Builder, I'm  
interested in

  the free compiler.
 
  I want to keep living without the Flex Framework but seems that  
the
  mxmlc compiler *needs* an mxml file (which, by the way, make  
sense):

 
  The basic syntax of the mxmlc utility is as follows:
 
  mxmlc [options] -file-specs target_file|dir [...]
 
  The file-specs options is the default option, and it is  
required to
  have a value. It refers to the target MXML file that mxmlc  
compiles

  into a SWF file.
 
  How do I create a SWF just from AS3 code without MXML files,  
aka Flex
  framework? Is this possible? Am I missing something important  
here?

 
  Cheers,
 
  Juan
 
  --
  Juan Delgado - Zárate
  http://www.zarate.tv
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com



--
Juan Delgado - Zárate
http://www.zarate.tv
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com