| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
the ever-living
|
1 If i dont want to use classes,can i make the same way as before, putting all the code in the first frame?And it still works with the new player?
2 Now i have to import the properties i want to use too?I mean, isnt enough to import flash.display.movieClip, also if i want to use _alpha have to import flash.idunknowant.alpha ? |
|
|
|
|
|
#2 |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
not sure about not using classes. flash 9 has not been released yet so I don't know how thats going to go, but i suspect it will work like that.
no you only have to import the class, properties and methods are availible on the class, nothing else required. |
|
|
|
|
|
|
|
|
#3 |
|
the ever-living
|
So, when they say:
'_alpha is deprecated, now use:flash.display.DisplayObject.alpha' doesnt mean i have to import flash.display.DisplayObject.alpha; rigth?? |
|
|
|
|
|
#4 |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
it means you have to use .alpha on your movieclip/displayobject/sprite
|
|
|
|
|
|
#5 |
|
the ever-living
|
What i want to know is if, in the beginning should i
import flash.display.MovieClip; import flash.display.DisplayObject.alpha; or just import flash.display.DisplayObject.MovieClip; |
|
|
|
|
|
#6 |
|
Senior Member
|
just movieclip. Movieclip is a class, it has to be imported, alpha is a property that is specific to an instance of that class, it does not have to be imported. only import classes
|
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Feb 2006
Posts: 819
|
Can I just do
import flash.* That would be so much nicer. |
|
|
|
|
|
#8 |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
yes you can, but then it will only import the classes in the flash package.
|
|
|
|
|
|
#9 |
|
Registered User
Join Date: Mar 2006
Location: Rhode Island
Posts: 51
|
If you're not sure what to import, omit the import statement and let the compiler do the work. It will tell you what you're missing, then just go add it in.
|
|
|
|
|
|
#10 |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
or press ctrl-o or enter behind the class.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Randomly Loading Questions from XML for Quiz. | Dave At ADC | ActionScript 2.0 | 0 | 12-14-2005 02:49 PM |
| Newbie questions.. | timemachine | ActionScript 1.0 (and below) | 5 | 05-21-2005 08:59 PM |
| help on simple questions | infernojericho | Gaming and Game Development | 0 | 05-08-2005 07:52 PM |
| [Q] Do we need those forums??? | CyanBlue | General Chat | 59 | 07-27-2004 12:13 PM |
| A couple more newbie PHP questions | simontheak | Server-Side Scripting | 13 | 06-09-2003 05:59 PM |