Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 02-21-2008, 05:28 AM   #1
You have the power
saravanan's Avatar
Join Date: Jun 2006
Location: Chennai(Now @ Bangalore),India
Posts: 716
Send a message via MSN to saravanan
Default Inspectable component parameters

hi friends,

i have problem in setting component parameters..

no error but the trace in setter function
trace("color value"+(val))

not working ...

ActionScript Code:
package com.classes{     import flash.display.*;     import flash.events.*;     import com.classes.*     import flash.geom.*     import fl.motion.Color         public class Itune extends MovieClip{                 public var mc:First;         private var _imageData:Array;         private var _bg:MovieClip;         private var _timeline:MovieClip;         public function Itune(){             mc = new First(this.stage);             this.addChild(mc);             _timeline = MovieClip(this.parent);             _bg = _timeline._backgroundColor         }             [Inspectable(name="imageData",type="Array",defaultValue="")]         public function set imageData(val:Array):void         {             _imageData = val;         }             [Inspectable(name="backgroundColor",type="Color",defaultValue="#FFFFFF")]         public function set backgroundColor(val:Color):void         {            var colorTransform:ColorTransform = new ColorTransform();           // colorTransform.color = uint(val)          [COLOR="Red"]  trace("color value"+(val))[/COLOR]           // _bg.transform.colorTransform = colorTransform         }             } }

saravanan 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
Custom Component And Parameters Help joran420 Components 1 11-20-2007 04:04 PM
Component parameters dynamicaly changed from begining question cYb3rc0re Components 0 02-25-2006 09:50 AM
working with Parameters and Methods of Display Component on a _level kracko ActionScript 2.0 2 07-17-2005 02:25 AM
How to access the parameters of a component in the library? cmxcmz2002 JSFL - Extending Flash 1 09-10-2004 09:50 AM

All times are GMT. The time now is 03:43 PM.

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.