Well, as an initial stab, you could do something like this:

package radialnav

class RadialManager extends MovieClip
        center:Point [read-only]
        createItem(symbolName:String,
tweenSettings:TweenSettings):RadialItem
        tweenIn():Void
        tweenOut():Void

class RadialItem extends MovieClip
        manager:RadialManager [read/write]
        tweenSetting:TweenSettings [read-only]
        tweenIn():Void
        tweenOut():Void

class TweenSettings extends Object
        durationIn:Number [read/write]
        durationOut:Number [read/write]
        easeType:String [read/write]
        nodes:Array [read/write]
        radius:Number [read/write]
        copy(source:TweenSettings):Void

―
Mike Keesey

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> Sent: Wednesday, November 01, 2006 12:10 PM
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] Q:Coding : from Procedural to Class based code?
> 
> Hi
> I have a project that I'd like to convert to class based code but
would
> appreciate some advice on the best approach.
> 
> Basically I have a routine which attaches a number of library items to
the
> stage and, on either a rollover or press event, tweens these
items(images)
> out in a radial fashion.
> They optionally return to their initial (overlapping) state.
> 
> 
> Pretty simple stuff.
> All of the tweening properties (number nodes, circle radius, duration
out,
> duration in, ease type, etc)  are predefined and passed in as a single
> object.
> 
> 
> My question is:
> What is the best way to convert this into a Class?
> 
> 
> Should I simply have a 'create' method in my class that takes the
place of
> my original method?
> When attaching large numbers of library items, isn't there a 'speed
hit'?
> Should the tweening objects(basically containers for tween properties)
> have their own class as well?
> 
> 
> What's should the getters/setters return/set?
> 
> 
> Any feedback greatly appreciated!
> 
> Jim Bachalo
> 
> 
> 
> [e] jbach at bitstream.ca
> [c] 416.668.0034
> [w] www.bitstream.ca
> --------------------------------------------
> "...all improvisation is life in search of a style."
>              - Bruce Mau,'LifeStyle'
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to