;

PDA

Click to See Complete Forum and Search --> : RadioButton component giving me headaches


absolutezero342
05-21-2008, 04:44 PM
I'm trying to use a RadioButton in my Flash app and I'm getting a weird white box near it everytime I view with the RadioButtons in there, but if I take them out, there is no white box, so it has something to do with the component skins.

I went in to change the skins myself and I never saw any white box to edit or anything, so maybe it inherits some skin from some other component? not sure...also, the labels don't appear in the RadioButton until I roll over them? why is that? thanks in advance!

absolutezero342
05-21-2008, 09:59 PM
anybody? any ideas?

cancerinform
05-22-2008, 09:47 AM
What happens if you replace the altered Radiobutton with the original? Start from there.

absolutezero342
05-22-2008, 10:14 AM
good question, I tried that and the answer is nothing changes...I still get the same problems only the component skins are the default.

I really don't know why the label doesn't appear until after I roll over it, but the white box I have an idea about...the box appears because I use BitmapData to draw the SWF dynamically at runtime and there is some portion of the component skin that is drawn "off" the edge so I get this weird white box as added trim...I don't know what to take out of the component skins to make the white box go away, but there is something that is making the component draw a larger footprint than what it would normally appear as. hope that makes sense? As far as the roll over issue, I have no idea on that one...help!

cancerinform
05-22-2008, 10:37 AM
What is your script for the Radiobutton?

absolutezero342
05-22-2008, 11:34 AM
All I'm doing is adding it to stage and it's not showing the labels until I roll over the button and the white box has something to do with the component skin being partially drawn off stage, and I don't know which skin to change to get that fixed? Do you think it could be the shim or Component Avatar? I'm not sure what those do?

cancerinform
05-22-2008, 01:34 PM
Can you post a fla with the problem.

absolutezero342
05-22-2008, 02:09 PM
I could post the FLA but it's huge and you would have to dig thru a lot of code...here's the link to the problem as it appears:

http://www.apostolicsoftaylor.com/new_site/

look at the bottom right of screen, that's where my RadioButtons are....notice how the labels don't show up 'til you roll over them! weird!

cancerinform
05-22-2008, 06:28 PM
I have the feeling it has something to do with loading not complete, since the movie looks heavy. Can you eliminate most of the movie and just leave the radiobuttons. Is the problem still there and if so can you send or leave for download that stripped movie?

absolutezero342
05-23-2008, 12:05 PM
well, I've tested what you recommended and it doesn't look to have anything to do with loading being incomplete, but it does have something to do with the way the SWF that loads the SWF containing the RadioButtons behaves...when you set it up, just put the AOT.swf at the top level, with the scripts folder and flash folder on that level and inside flash folder, make sure there is the "nav_swfs" folder containing test.swf and the "source" folder containing my .as files. "Main.as" is my Doc class and controls the loading of "test.swf" etc. here's the link to download:

www.apostolicsoftaylor.com/flash.zip (http://www.apostolicsoftaylor.com/flash.zip)

Thanks for looking at it and if you have a question about it, please ask. I'm to the point where I feel like I have to re-invent the wheel and make a RadioButton group from scratch! ugh!

cancerinform
05-24-2008, 08:27 AM
When I test your movie it is empty. It does not load anything. I have loaded the Radiobutton movie (HOME.swf) in an empty movie and there is no problem. That means the problem is your parent movie.

absolutezero342
05-24-2008, 12:08 PM
yeah, it is something to do with the parent (AOT.swf), but there is no conflicting component skins in that one???

it should have loaded any SWF that is in here "flash->nav_swfs" if AOT.swf is on the same level as the "flash" folder....also, it requires the "scripts" folder to be on the same level with "read_directory.php" inside. Of course you need a server to process this PHP script for it to work...I'm assuming you have it on IIS or something? anyway...thanks for looking...still not sure why it doesn't work? it's a simple RadioButton and it's just not showing the label???

=)