View Full Version : Can you assign one class to two moviclips in Library?
adnan794
April 26th, 2008, 02:55 PM
Hi all
I need to assign one class to more than one movie clips created in Flash CS3. Is this possible??
Thanks
ptfury
April 26th, 2008, 03:03 PM
that depends on what you are doing in that class.. but its just when you export the mc for actionscript you use the same class twice :)
adnan794
April 26th, 2008, 03:13 PM
Hi
Thank you for your reply.
I am sorry I am not able to get what you are saying. What I am doing is I have one AS3 class ButtonClip and in library I have two different clips mc1 and mc2. I want to export these clips for AS and in the class option I wann mention ButtonClip for both. I hope I am making snese.
Detrus
April 26th, 2008, 04:07 PM
hard to get exactly what you're saying
maybe you mean this
var mc1:MovieClip = new LibraryClass()
var mc2:MovieClip = new LibraryClass()
or maybe this
var buttonClip:ButtonClip = new ButtonClip()
var mc1:MovieClip = new MovieClip()
var mc2:MovieClip = new MovieClip()
mc1.addChild(buttonClip)
m2.addChild(buttonClip)
adnan794
April 26th, 2008, 04:27 PM
Hi
What I am saying is that I have one class ButtonClip and in my library I have two different movieclips mc1 and mc2. When I click linkage and Export for actions script for both clips in library I get the option of specifying the movie clips class here I want put ButtonClip class for both movie clips mc1 and mc2 but flash doest allow that it says that please select a class name that is not used by other movieclip in library. I hope this is clear enough to understand.
Felixz
April 26th, 2008, 04:30 PM
Just set that class as BaseClass
adnan794
April 26th, 2008, 04:38 PM
Thanks Felixz
It does work. Your quite good in AS3.
Cheers for that.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.