Answered
No text on a box
Hi everybody,
first of all, I'm from Italy, so sorry for my bad english, hope you understand my requests.
I'm experiencing a problem using some simple commands in Actionscript (Flash 8).
I've created a function, "creabox", that paint a box 100 x 25 pixel, light gray at 80% alpha with a white border, and write inside it a text. I pass to this function a reference of where the box must be created (for example, "this"), the text to write, x position, y position and the z level. So, for example, calling
creabox(this, "text", 1, 1, 100)
I'll have a box starting from 1,1 (x,y) with the word "text" inside.
The function works very well called from level0 timetable, try to put it on frame 1 for example, but doesn't work as I want when called from inside another function: in particular, the box pops up, but without text.
You can download a ZIP that contains all what you need to test the script, the FLA and a directory with some images and a .txt file, they need to create the background, see script for more informations, at this URL:
http://www.wwwealtro.it/striscia.zip
Please give me an idea of where is my fault! Thank you ...
first of all, I'm from Italy, so sorry for my bad english, hope you understand my requests.
I'm experiencing a problem using some simple commands in Actionscript (Flash 8).
I've created a function, "creabox", that paint a box 100 x 25 pixel, light gray at 80% alpha with a white border, and write inside it a text. I pass to this function a reference of where the box must be created (for example, "this"), the text to write, x position, y position and the z level. So, for example, calling
creabox(this, "text", 1, 1, 100)
I'll have a box starting from 1,1 (x,y) with the word "text" inside.
The function works very well called from level0 timetable, try to put it on frame 1 for example, but doesn't work as I want when called from inside another function: in particular, the box pops up, but without text.
You can download a ZIP that contains all what you need to test the script, the FLA and a directory with some images and a .txt file, they need to create the background, see script for more informations, at this URL:
http://www.wwwealtro.it/striscia.zip
Please give me an idea of where is my fault! Thank you ...