Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-19-2007, 07:56 PM   #1
Registered User
Join Date: Nov 2007
Posts: 11
Default Custom Component And Parameters Help

I cant get the parameters to show up in the property inspector area for my new component...

I used the right code and it shows up if you right click the library item and go to "component definition" but when i target a copy on the stage the property inspector says to change it I must go into the component inspector

I have made a SWC that works as it should but im trying to add in a userdefined parameter

this isnt my component clas but just some code to show you how i am adding the inspectable parameter..
class blah{
     var myparameter
 public function set parameter(targetMcStr:String):Void   {    
  [Inspectable(defaultValue="= enter the target Movie Clip instance name here =")]
 public function get parameter():String {  
   return myparameter;
   function blah(){}
but when i click in the property area (at the bottom of the flash IDE) with my component on stage and selected it says "this component may only be edited via the component inspector" rather than listing my custom parameter to be edited....

anyone got any idea why?
joran420 is offline   Reply With Quote
Old 11-20-2007, 04:04 PM   #2
Registered User
Join Date: Nov 2007
Posts: 11

heres my actuall code
public function set buttonLabels( labels:Array ):Void {		
		Playlist = labels
		//__labels = labels;	
	[Inspectable( type='Array', defaultValue='Macromedia,Google,Yahoo,Nirvana' )]
	public function get buttonLabels():Array {
		return [0];
the functions dont really do anything i just am trying to get the inspectable parameter to work....in the property inspector
joran420 is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add parameters to component built from scratch [email protected] Components 9 12-03-2007 11:04 PM
Creating custom component - live preview? maxx Components 0 09-13-2007 01:34 PM
Component Custom UI problem derketa Components 0 03-24-2006 11:43 AM
Component parameters dynamicaly changed from begining question cYb3rc0re Components 0 02-25-2006 09:50 AM
Contacting A Authoring Time Component via its Custom UI.swf Prophet. Components 4 08-26-2004 05:18 PM

All times are GMT. The time now is 11:15 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.