View Full Version : Centering labels in accordion component
anticonnor
03-04-2006, 10:10 AM
I haven't been able to find a solution to this problem yet... I'm trying to get the labels on my accordion instance to center. I've tried:
content01.setStyle("textAlign", "center");
...but that's not working. Any suggestions?
hangalot
03-07-2006, 02:30 AM
a good suggestion is to get hold of xray and inspect the component at runtime and see what the property is you have to set
Scottae
03-07-2006, 03:30 AM
I don't think you can do that:
Using styles with the Accordion component (http://livedocs.macromedia.com/flash/8/main/00003079.html)
:(
hangalot
03-07-2006, 03:52 AM
yeah man, of course you can. you just need to know what to target, hence me saying xray...
anticonnor
03-07-2006, 09:21 AM
I'm not sure what Xray is... some sort of plug-in or app? I hope it's free, cause that's my budget. In the meantime, I'm just going to skin the accordion with the labels for each state. There are only three labels for now, so it won't be too much extra work/file size to skin each.
If anyone's got any other suggestions I'd love to hear them.
hangalot
03-07-2006, 01:21 PM
http://www.osflash.org/xray
dude i work with components all day (i do flex dev work) and trust me the only trick is to find out what to target
anticonnor
03-13-2006, 12:44 PM
Sorry for the delayed response... I didn't see that you had replied with the info for Xray.
I installed the Xray component and dropped it onto the stage at frame one, but I got this in my output panel:
256 levels of recursion were exceeded in one action list.
This is probably an infinite loop.
Further execution of actions has been disabled in this movie.
...and the stand-alone Xray SWF isn't giving me any snapshot of my output. Am I an idiot, or is this thing busted?
btw... this label alignment is a life or death thing, just thought it would be prettier and more readable with labels in the center of the accordion.
anticonnor
03-13-2006, 12:59 PM
Is there any way to open up the accordion.swc?
Not that I would know what I'm doing once I'm in there:rolleyes: , but I thought if I could look at the achitecture of this component I could find where it tells the label to be placed and tweek it. I'm good at tweeking. Tweeking and bastardizing.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.