RE: [Flashcoders] AS3.0 only projects + flex framework

2005-10-26 Thread Tom Versweyveld
Does this mean there is no way of loading a Flex swf into an AS3
project?



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of JesterXL
Sent: maandag 24 oktober 2005 23:00
To: Flashcoders mailing list
Subject: Re: [Flashcoders] AS3.0 only projects + flex framework

It's black and white; either your're ActionScript only, or you're using
the 
components.  If you use Application.mxml as your root, then you are
using 
the Flex framework, otherwise, for the time being, your main AS file
extends 
MovieClip.

- Original Message - 
From: Benjamin Dobler [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Monday, October 24, 2005 4:20 PM
Subject: AW: [Flashcoders] AS3.0 only projects + flex framework



 Keep in mind AS only projects don't use the Flex framework, so
 mx.controls.Button won't work; you'd have to utilize the Flex
framework.

Thanks Jesse that`s what i wanted to get sure of. Is there not even a
workaround to use the framework in as only projects?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] AS3.0 only projects + flex framework

2005-10-26 Thread Tom Versweyveld
And load a Flex 2 swf into an as3/8.5 swf with the new Loader class?
When I try this the Flex2 swf doesn't even initialize...?!

tom

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Spike
Sent: woensdag 26 oktober 2005 10:38
To: Flashcoders mailing list
Subject: Re: [Flashcoders] AS3.0 only projects + flex framework

You can load a Flex 1.5 swf into a Flex 2 project, but you can't
interact
with it unless you use the LocalConnection approach.

Not sure if you can do that right now, but I intend to find out.

Spike

On 10/26/05, Tom Versweyveld [EMAIL PROTECTED] wrote:

 Does this mean there is no way of loading a Flex swf into an AS3
 project?



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
JesterXL
 Sent: maandag 24 oktober 2005 23:00
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] AS3.0 only projects + flex framework

 It's black and white; either your're ActionScript only, or you're
using
 the
 components. If you use Application.mxml as your root, then you are
 using
 the Flex framework, otherwise, for the time being, your main AS file
 extends
 MovieClip.

 - Original Message -
 From: Benjamin Dobler [EMAIL PROTECTED]
 To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
 Sent: Monday, October 24, 2005 4:20 PM
 Subject: AW: [Flashcoders] AS3.0 only projects + flex framework



  Keep in mind AS only projects don't use the Flex framework, so
  mx.controls.Button won't work; you'd have to utilize the Flex
 framework.

 Thanks Jesse that`s what i wanted to get sure of. Is there not even a
 workaround to use the framework in as only projects?

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3.0 only projects + flex framework

2005-10-26 Thread Spike
I haven't tried it with Flex 2 files, but I have managed to load a
FlashPaper swf. It didn't work perfectly, but I could view the file and use
some of the controls like zooming.

Spike

On 10/26/05, Tom Versweyveld [EMAIL PROTECTED] wrote:

 And load a Flex 2 swf into an as3/8.5 swf with the new Loader class?
 When I try this the Flex2 swf doesn't even initialize...?!

 tom

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Spike
 Sent: woensdag 26 oktober 2005 10:38
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] AS3.0 only projects + flex framework

 You can load a Flex 1.5 swf into a Flex 2 project, but you can't
 interact
 with it unless you use the LocalConnection approach.

 Not sure if you can do that right now, but I intend to find out.

 Spike

 On 10/26/05, Tom Versweyveld [EMAIL PROTECTED] wrote:
 
  Does this mean there is no way of loading a Flex swf into an AS3
  project?
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
 JesterXL
  Sent: maandag 24 oktober 2005 23:00
  To: Flashcoders mailing list
  Subject: Re: [Flashcoders] AS3.0 only projects + flex framework
 
  It's black and white; either your're ActionScript only, or you're
 using
  the
  components. If you use Application.mxml as your root, then you are
  using
  the Flex framework, otherwise, for the time being, your main AS file
  extends
  MovieClip.
 
  - Original Message -
  From: Benjamin Dobler [EMAIL PROTECTED]
  To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
  Sent: Monday, October 24, 2005 4:20 PM
  Subject: AW: [Flashcoders] AS3.0 only projects + flex framework
 
 
 
   Keep in mind AS only projects don't use the Flex framework, so
   mx.controls.Button won't work; you'd have to utilize the Flex
  framework.
 
  Thanks Jesse that`s what i wanted to get sure of. Is there not even a
  workaround to use the framework in as only projects?
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 
 Stephen Milligan
 Do you do the Badger?
 http://www.yellowbadger.com

 Do you cfeclipse? http://www.cfeclipse.org
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3.0 only projects + flex framework

2005-10-24 Thread Spike
I have 2 or 3 AS only projects on my machine. None of them are functionally
complete yet, but I can post one or two fo them when they are.

As Michael already said, there are several simple examples in the help files
that can be run as just .as files. No MXML at all.

Spike

On 10/24/05, Benjamin Dobler [EMAIL PROTECTED] wrote:

 Yeah i would like to see those stuff. Be sure i meant AS only projects no
 MXML included.

 Benjamin Dobler
 RIA Development
 web: http://www.richapps.de
 mail: [EMAIL PROTECTED]
  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED] [mailto:flashcoders-
  [EMAIL PROTECTED] Im Auftrag von Michael Klishin
  Gesendet: Montag, 24. Oktober 2005 21:07
  An: Flashcoders mailing list
  Betreff: Re: [Flashcoders] AS3.0 only projects + flex framework
 
  Benjamin Dobler wrote:
   I`m wondering if anyone suceeded in making an as 3.0 only project in
  flex
   builder with the flex framework.
  
   Something as simple as addChild(new mx.controls.Button); would make my
  day!
 
  I did. You wanna see result or what?
  Actually you can use examples from help to check what next generation of
  RIA will be...
 
  --
  Michael Klishin,
  [EMAIL PROTECTED]
 
 
  Non progredi est regredi
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3.0 only projects + flex framework

2005-10-24 Thread JesterXL
Keep in mind AS only projects don't use the Flex framework, so 
mx.controls.Button won't work; you'd have to utilize the Flex framework.

- Original Message - 
From: Benjamin Dobler [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Monday, October 24, 2005 3:38 PM
Subject: AW: [Flashcoders] AS3.0 only projects + flex framework


Yeah i would like to see those stuff. Be sure i meant AS only projects no
MXML included.

Benjamin Dobler
RIA Development
web: http://www.richapps.de
mail: [EMAIL PROTECTED]
 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] Im Auftrag von Michael Klishin
 Gesendet: Montag, 24. Oktober 2005 21:07
 An: Flashcoders mailing list
 Betreff: Re: [Flashcoders] AS3.0 only projects + flex framework

 Benjamin Dobler wrote:
  I`m wondering if anyone suceeded in making an as 3.0 only project in
 flex
  builder with the flex framework.
 
  Something as simple as addChild(new mx.controls.Button); would make my
 day!

 I did. You wanna see result or what?
 Actually you can use examples from help to check what next generation of
   RIA will be...

 --
 Michael Klishin,
 [EMAIL PROTECTED]


 Non progredi est regredi
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3.0 only projects + flex framework

2005-10-24 Thread Spike
You should be able to use the Flex framework without requiring any MXML.

It might take a bit of detective work, but since all MXML files get turned
into ActionScript files prior to being compiled it should definitely be
possible.

You'll probably get a lot of value out of using mxml.exe at the command
line:

mxmlc.exe -keep ./Hello.mxml

That should cause it to keep the generated .as files when it compiles a
.mxml file.

By a process of elimination you should be able to figure out what you need
to add to your .as projects to get them to work.

Spike

On 10/24/05, Benjamin Dobler [EMAIL PROTECTED] wrote:


  Keep in mind AS only projects don't use the Flex framework, so
  mx.controls.Button won't work; you'd have to utilize the Flex framework.

 Thanks Jesse that`s what i wanted to get sure of. Is there not even a
 workaround to use the framework in as only projects?

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3.0 only projects + flex framework

2005-10-24 Thread Spike
Hi Bevan,

Not sure exactly what might have been going wrong, but if that's all you
have in your file then it will fail.

This should work though, assuming you have a file called test.xml in the
same folder as the XMLTest.as:

XMLTest.as

package {

import flash.display.Sprite;
import flash.events.Event;
import flash.net.URLRequest;
import flash.net.URLLoader;
import flash.util.trace;

public class XMLTest extends Sprite {

var myXML:XML = new XML();
var XML_URL:String = test.xml;
var myXMLURL:URLRequest = new URLRequest(XML_URL);
var myLoader:URLLoader = new URLLoader(myXMLURL);

public function XMLTest() {

myLoader.addEventListener(complete, xmlLoaded);

}

public function xmlLoaded(evtObj:Event) {
myXML = XML(myLoader.data);
trace(Data loaded.);
}
}
}



Spike

On 10/24/05, Bevan Christians [EMAIL PROTECTED] wrote:

 i have an arb question just on the side about a/s3 dont mean to hijack
 the thread
 but i'm kinda new

 i have this code (saw it under examples in the manual)

 code
 public function xmlLoader()
 {
 var myXML:XML = new XML();
 var XML_URL:String = http://localhost/flextest/data.xml;;
 var myXMLURL:URLRequest = new URLRequest(XML_URL);
 var myLoader:URLLoader = new URLLoader(myXMLURL);
 myLoader.addEventListener(complete, xmlLoaded);

 private function xmlLoaded(evtObj:Event)
 {
 myXML = XML(myLoader.data);
 trace(Data loaded.);
 }

 }
 /code

 but on debug running i get the following error:
 TypeError: Error #2007: Parameter 'listener' must be non-null.
 can anyone point me in the direction i should look
 no spoonfeeding required :/
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders