View unanswered posts | View active topics



Reply to topic  [ 71 posts ]  Go to page 1, 2, 3, 4, 5  Next
AS3 support feedback 
Author Message
Member

Joined: Mon Jul 31, 2006 3:52 am
Posts: 22
Reply with quote
Just thought I'd start a new thread for feedback related to the fledgling AS3 support Philippe and I hacked together this week. It certainly has some rough edges still but I am happy with what we accomplished in approximately 3 days. Bang on it and let us know what you think and about any bugs you find.

Thanks!

_________________
http://www.returnundefined.com


Sat Aug 05, 2006 1:24 am
Profile
Member

Joined: Tue Mar 14, 2006 4:53 am
Posts: 82
Reply with quote
Post 
atm, without this new system i can get mx classes to autocomplete by adding the source directory of flex2 as a classpath in FD (only has mx package, but still)


Sat Aug 05, 2006 3:31 am
Profile
Member

Joined: Mon Jul 31, 2006 3:52 am
Posts: 22
Reply with quote
Post 
Great idea, that didn't even occur to me. The new stuff should complete the picture as we focused on top-level classes and the flash.* packages. PM Philippe to try it out!

_________________
http://www.returnundefined.com


Sat Aug 05, 2006 3:49 am
Profile
Member

Joined: Tue Mar 14, 2006 4:53 am
Posts: 82
Reply with quote
Post 
already did, but i think he's sleeping


Sat Aug 05, 2006 4:09 am
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Post 
derean wrote:
already did, but i think he's sleeping

Haha, here I am!

So I send you the files and an updated DLL to support the 'package' and 'const' (handled as a 'var') declarations.


Sat Aug 05, 2006 8:21 am
Profile WWW
Member

Joined: Mon Dec 26, 2005 6:10 pm
Posts: 165
Reply with quote
Post 
so far, great start. thanks for taking on this project!

If I create a class extends Sprite, shouldn't it know that it has the properties and methods of the sprite class? If I type this. I get a list of a half dozen properties and two methods. Sprite has a a lot more than that. Are these just incomplete?


Sat Aug 05, 2006 12:04 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Post 
bit-101 wrote:
so far, great start. thanks for taking on this project!

If I create a class extends Sprite, shouldn't it know that it has the properties and methods of the sprite class? If I type this. I get a list of a half dozen properties and two methods. Sprite has a a lot more than that. Are these just incomplete?

Currently the intrinsic classes are incomplete: they don't include any 'imports' and the types used are not fully qualified, so the Sprite inheritance chain can not be resolved.


Sat Aug 05, 2006 12:08 pm
Profile WWW
Member

Joined: Mon Dec 26, 2005 6:10 pm
Posts: 165
Reply with quote
Post 
that's what I figured. great start, and very promising so far! it's become a bit easier to edit AS3 already. i hope you have time to continue working on it. i'd love to help, but I have a bit too much going on right now.


Sat Aug 05, 2006 12:37 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Post 
bit-101 wrote:
that's what I figured. great start, and very promising so far! it's become a bit easier to edit AS3 already. i hope you have time to continue working on it. i'd love to help, but I have a bit too much going on right now.

Until the next intrinsic classes update you can just fix the 'extends' declarations when you need it:
Code:
// was just missing 'flash.display'
public class Sprite extends flash.display.DisplayObjectContainer


Sat Aug 05, 2006 12:43 pm
Profile WWW
Member

Joined: Mon Dec 26, 2005 6:10 pm
Posts: 165
Reply with quote
Post 
Yup, I was just checking that out. You can add the package names right down the line to EventDispatcher and you get all the correct hinting.


Sat Aug 05, 2006 12:46 pm
Profile
Member

Joined: Mon Dec 26, 2005 6:10 pm
Posts: 165
Reply with quote
Post 
Now, my biggest pet peeve... is there a way to get FD to stop trying to say Void, when I want void??? :D


Sat Aug 05, 2006 12:47 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Post 
bit-101 wrote:
Now, my biggest pet peeve... is there a way to get FD to stop trying to say Void, when I want void??? :D

I sent you all a new fixed DLL which spells v.o.i.d. appropriately ;)

PS: the fixes are provided as-is and they will probably be the last hacks in FD 2.0 -- full AS3 support is planned in a future version of FlashDevelop.


Sat Aug 05, 2006 1:17 pm
Profile WWW
Member

Joined: Mon Dec 26, 2005 6:10 pm
Posts: 165
Reply with quote
Post 
Also, in things like the DisplayObject class there is:

var stage:Stage;

This resolves to the AS2 Stage class. Adding an import for flash.display.* in the class solves that.

You probably already know this, but I figured it's worth pointing out. :)


Sat Aug 05, 2006 1:18 pm
Profile
Member

Joined: Mon Dec 26, 2005 6:10 pm
Posts: 165
Reply with quote
Post 
Philippe wrote:
bit-101 wrote:
Now, my biggest pet peeve... is there a way to get FD to stop trying to say Void, when I want void??? :D

I sent you all a new fixed DLL which spells v.o.i.d. appropriately ;)

PS: the fixes are provided as-is and they will probably be the last hacks in FD 2.0 -- full AS3 support is planned in a future version of FlashDevelop.


awesome! the dll seems to be doing enough to get me by for now. it's mostly a matter of improving the intrinsics now.

Again, great work. I'm really thankful for this!


Sat Aug 05, 2006 1:20 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Post 
Quote:
it's mostly a matter of improving the intrinsics now.

Yes, as soon as they are fixed we should release them to the wild :D


Sat Aug 05, 2006 1:24 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 71 posts ]  Go to page 1, 2, 3, 4, 5  Next

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.