Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Flash General Questions > Flash 9 General Questions

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-29-2007, 12:17 PM   #1
Chuck Taylor
AS 3.0 Donkey
 
Join Date: Feb 2007
Posts: 123
Default Including a Class in Flash 9

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?
Chuck Taylor is offline   Reply With Quote
Old 06-29-2007, 12:21 PM   #2
mooska
fl.mooska._title
 
mooska's Avatar
 
Join Date: Jun 2006
Location: lodz
Posts: 1,210
Send a message via ICQ to mooska Send a message via Skype™ to mooska
Default

you should use import, in both flex and flash.
__________________
pebkac - problem exists between keyboard and chair

Have something to code ?

asql
mooska is offline   Reply With Quote
Old 06-29-2007, 12:32 PM   #3
Chuck Taylor
AS 3.0 Donkey
 
Join Date: Feb 2007
Posts: 123
Default

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..
Chuck Taylor is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 03:17 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.