Comments on: Inspectable and Inheritance https://joshblog.net/2006/01/19/inspectable-and-inheritance/ Archive of older blog posts written by Josh Tynjala about Flash, Flex, and ActionScript Wed, 26 Jun 2013 02:52:46 +0000 hourly 1 https://wordpress.org/?v=4.9.9 By: Josh Tynjala https://joshblog.net/2006/01/19/inspectable-and-inheritance/#comment-72 Fri, 20 Feb 2009 19:46:51 +0000 http://lab.zeusdesign.net/?p=26#comment-72 Maverick, that’s not possible with Inspectable metadata.

]]>
By: Maverick https://joshblog.net/2006/01/19/inspectable-and-inheritance/#comment-71 Fri, 20 Feb 2009 16:27:01 +0000 http://lab.zeusdesign.net/?p=26#comment-71 GOAL:
I’m using CS3 to build a Flash component. I have an Inspectable parameter who’s default value I want to load from a JSON file.

PROBLEM:
I want to set the defaultValue of the Inspectable component from a JSON file and have that value retained during runtime.

What is the syntax to do that?

[Inspectable(name=’title text’,type=’String’, defaultValue='{textFromJsonFile}’)] ?????
public var titleText:String = ”;

]]>
By: Josh Tynjala https://joshblog.net/2006/01/19/inspectable-and-inheritance/#comment-70 Fri, 25 Jan 2008 16:39:37 +0000 http://lab.zeusdesign.net/?p=26#comment-70 Michelle, Inspectable is only used by components. In AS3, if you want to set a default value, you can just set it directly.

public var myProperty:String = "A Specialized Default";
]]>
By: michelle https://joshblog.net/2006/01/19/inspectable-and-inheritance/#comment-69 Fri, 25 Jan 2008 13:25:53 +0000 http://lab.zeusdesign.net/?p=26#comment-69 if i place this in my docClass:

[Inspectable(defaultValue=”A Specialized Default”)]
public var myProperty:String;

and this in my constructor:
trace(myProperty);

nothing happens, i am not so good in as3, do you how i can trace an component parameter. the livedocs are driving me crazy.

]]>