| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
AS 3.0 Donkey
Join Date: Feb 2007
Posts: 123
|
I am a Flex developer. This is how I include a Class in Flex.
1. Create the class file in ./foo/bar/baz.as 1. In the main file: include foo.bar.Baz; I tried the same in Flash 9, but it doesn't work. What am I doing wrong? |
|
|
|
|
|
#2 |
|
fl.mooska._title
|
you should use import, in both flex and flash.
|
|
|
|
|
|
|
|
|
#3 |
|
AS 3.0 Donkey
Join Date: Feb 2007
Posts: 123
|
Sorry that was an error, I used "import foo.bar.Baz;", it doesn't work for some reason. Am I right with the file location?
EDIT: The File name is case-sensitive! Baz.as solved the problem. Last edited by Chuck Taylor; 06-29-2007 at 12:44 PM.. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| one template, many looks? | subquark | ActionScript 1.0 (and below) | 1161 | 09-03-2009 04:45 PM |
| Using the mx.util.Delegate class within your classes! | madgett | ActionScript 2.0 | 3 | 09-03-2007 12:11 AM |
| Flash Remoting + .NET Class Library | mrand01 | Flash Remoting | 5 | 08-24-2004 06:19 PM |
| Streaming Flash Player 6 | simail | Other Flash General Questions | 7 | 04-03-2002 12:14 PM |
| Php, Javascript, and Flash 5 browser detect and more! | Redline01 | Server-Side Scripting | 2 | 08-11-2001 02:09 AM |