Using GlobalStyleFormat?
I found this info here: http://www.adobe.com/devnet/flash/ar...nning_3.0.html about using globalStyleFormat, but when I apply it in frame 1 of an fla it doesnt seem to work. Is this a Class-specific thing, or can I use it like regular old script?
Any help MUCH appreciated...
//<<SCRIPTS>> globalStyleFormat.textColor = 0xD0D0D0; globalStyleFormat.arrow = 0xD0D0D0; globalStyleFormat.face = 0x006699; globalStyleFormat.shadow = 0x003366; globalStyleFormat.darkshadow = 0x000033; globalStyleFormat.highlight = 0x0099BB; globalStyleFormat.highlight3D = 0x00BBEE; globalStyleFormat.scrollTrack = 0x003366; globalStyleFormat.background = 0x006699;
globalStyleFormat.applyChanges();
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 09-21-2006, 10:06 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Globalstyleformat Help
I'm want to set various parts of the scrollbar component to a different color, but so far, I've not found all the parts. I found the scrollTrack, the arrow, and one other that seems to highlight the exterior of the grey of the arrows, but as yet.. not the grey surrounding the arrow, nor the grey slider box. I can't seem to bring up a more complete list in the references.. am I doing something wrong? what are the other missing pieces?
Globalstyleformat.arrow Bug
the following code should change the color of all arrows in components
globalStyleFormat.arrow = 0x310bea;
globalStyleFormat.applyChanges();
but only my combo box and not my scrollbar arrow changes
color. Is this a bug?
Regards,
Kieran.
GlobalStyleFormat.embedFonts
I'm trying to embed my fonts into a DataGrid. I put in:
globalStyleFormat.embedFonts=true;
and the text disappears. What am I missing?
GlobalStyleFormat & ListBox
Salude!
Just a quick little question. I have my style-format (almost) as I want it. There's just one little detail that gives me sleepless nights. How do I remove that anoying little hairline around the listbox, what is the name of it in the globalStyleFormat? I think I have pretty much tried them all, except, ONE. The ONE I am looking for to have no border around the selectbox
H.E.L.P.
V
GlobalstyleFormat/Scrollbar Issue
Hey guys,
I've a scrollbar that sits with a dynamic text box which load external data from a .txt file.
http://www.swigit.co.uk
The problem is this. The client will be creating the text files. Some will require scrolling and some won't. At the moment I've set the style using this script
ActionScript:
function setGlobalStyleFormat(){
globalStyleFormat.face = 0x003399;
globalStyleFormat.arrow = 0xcccccc;
globalStyleFormat.darkshadow = 0xffffff;
globalStyleFormat.shadow = 0xffffff;
globalStyleFormat.highlight = 0xffffff;
globalStyleFormat.highlight3D = 0xffffff;
globalStyleFormat.scrollTrack = 0x003399;
globalStyleFormat.selection = 0x003399;
globalStyleFormat.textSelected = 0x000000;
globalStyleFormat.textColor = 0x003399;
globalStyleFormat.textFont = "ArialEmbedded";
globalStyleFormat.embedFonts = true;
globalStyleFormat.textSize = 13;
globalStyleFormat.applyChanges();
}
setGlobalStyleFormat();
Is the a globalStyleFormat tag that would set the scrollbar and arrows to the same blue as the background when they are not in use e.g.
ActionScript:
globalStyleFormat.scrollbarundefined=0x003399
thanks fro the help
Now The Text Disappeared? GlobalStyleformat
Ok I figured it out as such...
this is for my listBox (instance)..actually I put this action in the first frame of scene 1
globalStyleFormat.textFont = Impact;
globalStyleFormat.textSize = 18;
globalStyleFormat.background = 0xBCCBEE;
But the text is not showing up...what do I do...Help plz .......Thanks!
Actionscript Not Working Using GlobalStyleFormat...HELP
My actionscript is correct, and it's placed on a timeline in the same movieclip that the scrollPane is in. I've researched and nothing comes up! Why isn't my scrollpane reflecting the changes made in actionscript when I preview my movie? And ideas? Has anyone else run into this problem. The actionscript is taken straight from the tutorial, just the color values are changed the instance name as well! Help!
GlobalStyleFormat And .as File Problem
I am having a problem with an .as file that sets the globalStyleFormat of a scrollbar component. It's fine when I test it on my machine, but when I upload the swf and .as file to my server, it doesn't seem to work. I've tried re-publishing the swf and still nothing .
Any help would greatly be appreciated.
Jason
|