View Full Version : FlashDevelop as IDE script editor
tpann
November 13th, 2008, 12:40 PM
Hey all,
Noob question --
I use FlashDevelop to create custom classes, etc. I would like to be able to use it for internal script too -- meaning, I would like to be able to type code in FD instead of in the Flash IDE's editor, and have Flash go get it when I publish or preview. Obviously this means that I would be entering code without the "package", "public class", "import", etc.
Is this possible?
kevin416
November 14th, 2008, 01:23 AM
I don't have Flash CS3, but I use FlashDevelop. When you create your classes in FlashDevelop, save them in the same directory as your .fla. Then in your .fla, import the class using the following
import YourClassName;
You would still create your classes using package and new class. You'll get errors if you don't.
thatguythatsme
November 14th, 2008, 03:26 AM
You could create a class specific for the flash file you want... Then instead of using the import keyword and creating an instance of your class you would select the properties of your class in hte properties tab down the bottom and in the Document class field type the name of your document class which is 'DocumentClass'. Your document class should be in the same folder as your fla...
package { import flash.display.MovieClip; public class DocumentClass extends MovieClip { public function DocumentClass() { //your actions here } } } That should work. If you google 'document class in CS3' you should be able to find some more info and possibly a tut. Dave Dave
tpann
November 14th, 2008, 12:42 PM
Thanks for the answers. Actually I was hoping for a simple way to NOT create a class or document class. I've looked into the workflow provided in FlashDevelop's documentation and it looks like what I'm hoping for isn't possible.
Thanks anyway!
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.