dynamic text on top of image

  • misja
  • Born
  • Born
  • No Avatar
  • Joined: Feb 07, 2004
  • Posts: 1
  • Status: Offline

Post February 7th, 2004, 4:36 am

Hi,

I am writing a script that dynamically loads an image and then shows (dynamic) text on top of it.
However, the image that I have loaded always shows on top of my text. Here is my script:

loadMovie (pictures[index], PictureLayer);
tc.txt.text = "some text";
// tc is a movie clip symbol with a dynamic text field on it.

The symbol tc is on another layer. What am I doing wrong?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 7th, 2004, 4:36 am

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post February 7th, 2004, 7:29 am

I'd be pretty sure you have to use z-index to set the layer priority, but I couldn't for the life of me tell you how to do it with Flash
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Joined: Dec 29, 2003
  • Posts: 5169
  • Loc: SC-USA
  • Status: Offline

Post February 7th, 2004, 8:07 am

are you sure the variable is being written to the text container? you can use the trace(); function to follow your variables around. you might temporarily remove the image container to verify that the text conainter is recieving the text string during runtime.
- dM
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Joined: Jun 26, 2003
  • Posts: 1402
  • Loc: Philadelphia, PA
  • Status: Offline

Post February 7th, 2004, 10:14 am

Is your text clip layer above your picture clip layer? Flashs depth sorting goes by layer order, and if all your clips are manually created then the way they are shown should go by layer order.

Note: Don't create them on the same layer, this may be the cause of the problem if you did that.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 54 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.