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: AW: [Flashcoders] AS3.0 only projects + flex framework

2005-10-25 Thread Weyert de Boer

Hi Spike,


Specifically, you need to launch the file by clicking on the debug button in
Eclipse rather than just browsing to the file.
 

Yes, after following the tutorial for AS only project, I have set a 
breakpoint on a trace() and then hit the debug button. Nothing really 
happens neither can I find a trace into/step over feature.



If so, how did you install the plugin?
 

As mentioned in the readme file via Find and Install update and a 
Archived site etc.


Yours,
Weyert de Boer
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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

2005-10-25 Thread Spike
When you say Nothing really happens, what exactly does happen?

Does the browser open the file?

Do you get an error?

Spike

On 10/25/05, Weyert de Boer [EMAIL PROTECTED] wrote:

 Hi Spike,

 Specifically, you need to launch the file by clicking on the debug button
 in
 Eclipse rather than just browsing to the file.
 
 
 Yes, after following the tutorial for AS only project, I have set a
 breakpoint on a trace() and then hit the debug button. Nothing really
 happens neither can I find a trace into/step over feature.

 If so, how did you install the plugin?
 
 
 As mentioned in the readme file via Find and Install update and a
 Archived site etc.

 Yours,
 Weyert de Boer
 ___
 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: AW: [Flashcoders] AS3.0 only projects + flex framework

2005-10-25 Thread Weyert de Boer

Spike wrote:


When you say Nothing really happens, what exactly does happen?

Does the browser open the file?
 

Yes, the browser opens. After that it keeps trying to accesss 
www.macromedia.com in the browser (Firefox) in the status bar. Earlier I 
got a window asking where the debugger is. Not anymore. I really would 
like to have debugger support, that way I can keep a track of my trace 
message etc.



Do you get an error?
 


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


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

2005-10-25 Thread Spike
Can you post the code for the file you are trying to debug?

It sounds like the debugger is probably running, but the line where you have
set the breakpoint isn't being executed.

Spike

On 10/25/05, Weyert de Boer [EMAIL PROTECTED] wrote:

 Spike wrote:

 When you say Nothing really happens, what exactly does happen?
 
 Does the browser open the file?
 
 
 Yes, the browser opens. After that it keeps trying to accesss
 www.macromedia.com http://www.macromedia.com in the browser (Firefox) in
 the status bar. Earlier I
 got a window asking where the debugger is. Not anymore. I really would
 like to have debugger support, that way I can keep a track of my trace
 message etc.

 Do you get an error?
 
 
 Nope.
 ___
 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


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

2005-10-24 Thread Benjamin Dobler

 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


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

2005-10-24 Thread Spike
In order to see anything with the debugger you usually need to set a
breakpoint somewhere in the code.

Right-click in the left margin of the editor and choose toggle breakpoint.
Make sure it's inside a script block and on a line that has some executable
code on it.

Once you've done that, hit the debug button.

When the player gets to that line in the code it should pause and you should
be able to see all the variables in debug view.

HTH

Spike

On 10/24/05, Weyert de Boer [EMAIL PROTECTED] wrote:

 Benjamin Dobler wrote:

 Yeah i would like to see those stuff. Be sure i meant AS only projects no
 MXML included.
 
 
 Do you also have a working project file that works together with the
 debugger and/or profiler? I am not getting that working, I downloaded
 the Flex Eclipse plugin.. but nothing. Do I need to full download for
 that?

 Cheers,
 Weyert


 ___
 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
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