| Author |
Message |
|
returnundefined
Member
Joined: Mon Jul 31, 2006 3:52 am Posts: 22
|
 AS3 support feedback
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 |
|
 |
|
derean
Member
Joined: Tue Mar 14, 2006 4:53 am Posts: 81
|
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 |
|
 |
|
returnundefined
Member
Joined: Mon Jul 31, 2006 3:52 am Posts: 22
|
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 |
|
 |
|
derean
Member
Joined: Tue Mar 14, 2006 4:53 am Posts: 81
|
already did, but i think he's sleeping
|
| Sat Aug 05, 2006 4:09 am |
|
 |
|
Philippe
Admin
Joined: Wed Aug 31, 2005 7:27 am Posts: 7470 Location: Paris, France
|
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 |
|
 |
|
bit-101
Member
Joined: Mon Dec 26, 2005 6:10 pm Posts: 165
|
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 |
|
 |
|
Philippe
Admin
Joined: Wed Aug 31, 2005 7:27 am Posts: 7470 Location: Paris, France
|
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 |
|
 |
|
bit-101
Member
Joined: Mon Dec 26, 2005 6:10 pm Posts: 165
|
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 |
|
 |
|
Philippe
Admin
Joined: Wed Aug 31, 2005 7:27 am Posts: 7470 Location: Paris, France
|
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 |
|
 |
|
bit-101
Member
Joined: Mon Dec 26, 2005 6:10 pm Posts: 165
|
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 |
|
 |
|
bit-101
Member
Joined: Mon Dec 26, 2005 6:10 pm Posts: 165
|
Now, my biggest pet peeve... is there a way to get FD to stop trying to say Void, when I want void??? 
|
| Sat Aug 05, 2006 12:47 pm |
|
 |
|
Philippe
Admin
Joined: Wed Aug 31, 2005 7:27 am Posts: 7470 Location: Paris, France
|
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??? 
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 |
|
 |
|
bit-101
Member
Joined: Mon Dec 26, 2005 6:10 pm Posts: 165
|
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 |
|
 |
|
bit-101
Member
Joined: Mon Dec 26, 2005 6:10 pm Posts: 165
|
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???  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 |
|
 |
|
Philippe
Admin
Joined: Wed Aug 31, 2005 7:27 am Posts: 7470 Location: Paris, France
|
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 
|
| Sat Aug 05, 2006 1:24 pm |
|
|