Yeap.. that's right... You can extend the component... but you need to
rewrite the entire function...
However the best option for me was to fix the component once so it
gets the size from the skin sprite... and works for all my projects
without extend each time and hard code the setSize in the override
function:
package com.hoorray
{
import fl.controls.Slider;
public class SliderExtend extends Slider
{
public function SliderExtend()
{
super();
}
protected override function configUI():void{
//...
}
}
}
On Apr 11, 2008, at 10:36 AM, Glen Pike wrote:
Well you can subclass components rather than hacking them...
Allandt Bik-Elliott (Receptacle) wrote:
wow - that's quite a wierd decision for adobe
thanks for the response - that's really helpful
best
a
On 11 Apr 2008, at 16:01, Andres Garcia wrote:
this was the function I modified (setSize values)... Must be
similar in the component you are using... for a strange reason
those params values are "hard coded"... really bad!
override protected function configUI():void {
super.configUI();
thumb = new BaseButton();
thumb.setSize(14, 20);
thumb.autoRepeat = false;
addChild(thumb);
thumb
.addEventListener(MouseEvent.MOUSE_DOWN,thumbPressHandler,false,
0,true);
track = new BaseButton();
track.move(0, 0);
track.setSize(80, 2);
track.autoRepeat = false;
track.useHandCursor = false;
track.addEventListener(MouseEvent.CLICK,onTrackClick,false,0,true);
addChildAt(track,0);
}
On Apr 11, 2008, at 8:55 AM, Allandt Bik-Elliott (Receptacle) wrote:
hi - just a quickie here
if i change the size of a button in a component skin in my
library (UIScrollBar in this case) and then test the movie, the
button is stretched back to it's original size - can someone tell
me what i should be looking at to correct this please?
thanks guys
a
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
--
Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders