all groups > flash (macromedia) > february 2007 >
You're in the

flash (macromedia)

group:

This is a problem for the experts around here


This is a problem for the experts around here dalewb
2/8/2007 11:02:32 PM
flash (macromedia):
I really need help with this - I have been trying to get this to work for 2
weeks now and so far no one has been able to help. I am attempting to use
components in my flash movie, but when I test the movie, none of the labels
show up.

The components are placed into a movie clip that is instantiated and
manipulated at runtime - in other words, it exists only in the library and is
called into existence at runtime through the attachMovie method.

On the side of the screen are buttons that make this MC move around the screen.

These components I am trying to use are not being rotated, just moved (because
they are inside a MC that is being moved). I've tested this and have determined
that moving a component at runtime does not cause the text to disappear - only
rotating it does.

If you need it, I have uploaded the
[u][i][b]http://www.dwbgallery.com/stuff/gamepal/tcg68c.zip[/b][/i][/u]. Just
run it and you'll see the component - with no text displaying. The rows should
be labeled "1" "2" and "3".

If you get this far (downloading and looking at the source fla) I will go the
distance here and point you directly to where this object is located. Simply
open the fla's library and double click on the [b][i]searchAreaContent[/i][/b]
movieclip inside the [b][i]search panel[/i][/b] folder. You will find the
component in there. Thanks in advance for any help!
Re: This is a problem for the experts around here dan mode
2/9/2007 12:32:27 AM
Daleweb,

The method to create components and place them on the stage is this (example
is for a checkBox component):

import mx.controls.CheckBox;
placeHolder.createClassObject(CheckBox, "myCB1", {label:"Yes"});
myCB1._x = 100;
myCB1._y = 100;

I did not download your zip file however, when you load components into
child clips, they can lose their functionality. Instead, load them at
level0.

hth

--
Dan Mode
->Adobe Community Expert
*Flash Helps* http://www.smithmediafusion.com/blog/?cat=11
*THE online Radio* http://www.tornadostream.com
*Must Read* http://www.smithmediafusion.com/blog


[quoted text, click to view]

Re: This is a problem for the experts around here dalewb
2/10/2007 9:21:05 PM
Thanks Dan! I was reading the Flash 8 Actionscript Bible in the chapter that
talks about that - but halfheartedly, as I wasn't sure my answer was contained
therein, and it's a lot of reading. I will study that further and will post
here if problems persist. Thanks for pointing me in a direction (right or
wrong, it's just nice to get some help)
:):wink;
AddThis Social Bookmark Button