Skip to main content
Participant
May 3, 2008
Question

Non-Script Way of Setting Visible Property

  • May 3, 2008
  • 2 replies
  • 290 views
Why hello there!

I am looking to set the "visible" property of a movie clip in the Flash CS3 designer, as opposed to using AS3.

In my movie, I set a movieclip to invisible in code immediately. However, I sometimes see the artefact of the image for a split-second on running the swf in my browser. I would therefore like to set the property in the designer.

I am guessing that there is not a way of doing it. Are there any suggestions?
I'm now considering setting the alpha value to 0 in designer, and then setting the alpha value to 1 in code when I need to be able to see the mc.

(I have posted in this forum as I did not receive any answers in the General forum)

Raffi.
This topic has been closed for replies.

2 replies

kglad
Community Expert
Community Expert
May 3, 2008
it's not possible to use code to control the visible property of an object drawn in the flash environment unless you've converted that object into an movieclip or button. and if you've done that correctly and coded appropriately, there will be no artifact.

so, you've done something you're not explaining. you can always create a new fla, duplicate the steps you used in your original to create your rectangle and see if you can duplicate the problem.
kglad
Community Expert
Community Expert
May 3, 2008
you created a movieclip in the authoring environment and attached it to the main timeline in a certain frame, correct? and in that frame you used actionscript to assign its visible property to false, correct?

and you're doing something else with that movieclip that's causing the problem. what else are you doing?
Raffi SAuthor
Participant
May 3, 2008
Hey kglad,

I appreciate the prompt response. Sorry I wasn't clear enough in my initial message.

I am simply looking to be able to set, say, a rectangle primitive to invisible without having to set in the code. At the moment, I am setting the visible property to false in the first frame in the code. However, as a result, I sometimes (not frequently) see artefacting when I run my movie. The rectangle very momentarily appears before disappearing.

Raffi.