|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
dynamic text within movie clip
i have created a dynamic text box which fetches text from a external file. however when i put the text box into a movieclip (rather than directly on the scene's timeline) it stops working. i have a feeling it has to do with the command which loads the files...
loadVariablesNum("news.txt",0); can anyone help? |
|
#2
|
|||
|
|||
|
Hi, sounds like your text box is working off a variable name. You can change the loadVariablesNum() to match the level your new text box containing movie is in. i.e.
loadVariablesNum("news.txt",myTextContainer.getDepth()); |
|
#3
|
|||
|
|||
|
I had no luck with that. any other advice?
|
|
#4
|
|||
|
|||
|
Hi, ok try this in the first keyframe of _root:
Code:
_root.onEnterFrame = function()
{
if(myTextVar != undefined)
{
mySubMovie.myTextVar = myTextVar;
delete _root.onEnterFrame();
}
}
You have to substitute mySubMovie for the instance name you gave the sub movie that has the text box in it. You also have to swap myTextVar for the variable name your loading from the text file. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > dynamic text within movie clip |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|