|
User Details |
message
|
|
shawn
post date:
2008-11-19 12:20:15
|
|
How do I change the skinColor through actionscript? rnrnI have 6 different colour schemes, and I need the scrollbar to change color to match each one.rnrnI've tried setting the skinColor1 and skinColor2 settings but they seem to have absolutely no effect.rnrnIs this possible?
|
|
|
shawn
post date:
2008-11-19 13:09:01
|
I've also tried intializing the Scroll Pane with actionscript, however it's showing nothign but a blank area with a blue background, my code is essentially identical to the documentation:
------------------------------------------------
var scrollObj:Object = new Object();
scrollObj.target = "contentText_mc";
scrollObj.baseWidth = 580;
scrollObj.baseHeight = 400
scrollObj._x = 0;
scrollObj._y = 50;
scrollObj.scrollBehavior= 'Mouse Absolute';
this.attachMovie("Creative Scroll Area", "scrollArea", 10, scrollObj);
var hscrollbarObj:Object = new Object();
hscrollbarObj._targetInstance="scrollArea";
hscrollbarObj.autoPos=true;
hscrollbarObj.skin="theme5";
hscrollbarObj.orientation="Horizontal";
this.attachMovie("Creative Scrollbar", "hscroll", 20, hscrollbarObj);
var vscrollbarObj:Object = new Object();
vscrollbarObj._targetInstance="scrollArea";
vscrollbarObj.autoPos=true;
vscrollbarObj.skin="theme5";
vscrollbarObj.orientation="Vertical";
this.attachMovie("Creative Scrollbar", "vscroll", 30, vscrollbarObj);
------------------------------------------------------
contentText_mc is exported for actionscript. This should be working...what am I missing here?
|
|
|
shawn
post date:
2008-11-20 13:49:54
|
|
Is anyone from Extend Studio actually moderating this forum?
|
|
|
shawn
post date:
2008-11-20 15:46:59
|
Ok I got it to work with the dynamic action scripting, in order to attach an item from your library you have to modify the above code slightly.
change:
scrollObj.target = "contentText_mc";
to:
scrollObj.targetType = "Library Item";
scrollObj._targetInstanceName = "contentText_mc";
For some season the 'target' property that is shown in the example in the help files does not work with Library Items, instead you have to use the _targetInstanceName property.
|
|
|
Andrei Rinciog [Extend Studio]
post date:
2008-11-24 11:29:26
|
Hello Shawn,
I'm sorry for the late reply but because of the big volume of customer demands we weren’t able to reach to your issue in time. We try to offer support on maximum 12 hours. I’m glad that you didn’t had to wait and you found the answer to your problem very quickly. If you have any more questions please write to us again. I wish you good luck on your projects.
Best regards,
Andrei Rinciog
|
|