F9 for actions

Some possibly useful and definitely unuseful ActionScript 3.0 code.

Feb 24

vmedium asked: I'm using:

[Inspectable(name = "Set Platform: ",defaultValue = "PC",enumeration = 'PC,Mac,PS3,XBox 360,Wii,NintendoDS,PSP,PS2,Xbox')]
public var platform:String;

I also have some other values as well.

Is there a way to disable a parameter if I set the platform to Mac?

best, thansk for your blog entries, very helpful

JT

I don’t know of any way to disable parameters based on other parameter choices. I think the properties panel is pretty rigid when it comes to component parameters.

What I have done to get around this is build panels with Flash and JSFL that allow you to add your own swf-based interface to control the properties of your component instance on the stage. This works really nicely if you have a complex component that needs more than just text fields to customize properties. You can also build your custom panel to edit multiple component instances at once, something that you can’t do with the properties panel.

Thanks for reading.

-Andrew