  | | | Using JSFL commands to improve ActionScript editing. | Using JSFL commands to improve ActionScript editing. 2004-05-14 - By Kim Hansen
Back Hi Daniele,
I guess I have to learn to write DLL's ;)
Of course I can't make you share the DLL you have made..?
Best, Kim.
-- --Original Message-- -- From: Extendflash-bounces@(protected) [mailto:Extendflash-bounces@(protected)] On Behalf Of Daniele Ugoletti Sent: sexta-feira, 14 de Maio de 2004 10:17 To: Extendflash@(protected) Subject: Fw: [ExtendFlash] Using JSFL commands to improve ActionScript editing.
Hi Kim, hi all. I try to explain a bit how work my extension, maybe is not clearn and I must to update my blog entry, but I think also to put online a SWF move that show how work.
The JSAPI unfortunaly don't have methods for manage the AS editor, you can only get all AS content and work on it. With this limitation is impossible to build something like Snippets or other editing function. What I have done is a JSAPI extension (DLL) that can help for manage the source with these functions I can insert a part of code where is the cursor, I can get the selection other other things. The insert snippes don't replace all source code but insert part of code, like snippets fore Dreamweaver or other software.
I just try to make a step forward but I'm not sure to have this for the first release, I want to add a feature that I have called "active snippets". The snippet can have a part of code (AS code) that can manage/modify: - the insert before part - the insert after part - the selection
the part can be modified from the script before the snippes code apply these to the code. A simple example, you can have a simple snippets for comment the code, like this:
original code: class User{ public var id:Number; function User(theId:Number) { id = theId; } }
after add the snippet /*class User{ public var id:Number; function User(theId:Number) { id = theId; } }*/
but with normali snippet implementation you can't have this: // class User{ // public var id:Number; // function User(theId:Number) { // id = theId; // } // }
with this feature you can have a active snippets that make this.
Daniele Ugoletti
-- -- Original Message -- -- From: "Kim Hansen" <kim.hansen@(protected)> To: "'Extending Flash'" <Extendflash@(protected)> Sent: Friday, May 14, 2004 10:44 AM Subject: RE: [ExtendFlash] Using JSFL commands to improve ActionScript editing.
> Hi Daniele, > > Yeah, I was looking at that yesterday - it looks very cool. It is exactly > what I need. But you don't write the code with JSFL, do you? It works as > windowSWF's that call external commands to work on the files right? > > Best, > Kim.
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Extendflash mailing list Extendflash@(protected) http://flashguru.co.uk/mailman/listinfo/extendflash_flashguru.co.uk
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Extendflash mailing list Extendflash@(protected) http://flashguru.co.uk/mailman/listinfo/extendflash_flashguru.co.uk
|
|
 |