dynamic text on top of image

  • misja
  • Born
  • Born
  • misja
  • Posts: 1

Post 3+ Months Ago


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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

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
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

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.
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

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 12 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

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.