PDA

View Full Version : Inspectable component parameters


saravanan
02-21-2008, 05:28 AM
hi friends,

i have problem in setting component parameters..

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

not working ...

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)
trace("color value"+(val))
// _bg.transform.colorTransform = colorTransform
}

}
}


Saravanan
http://sara-intop.blogspot.com