Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

making a guestbook with flash 2

Status
Not open for further replies.

MrHolst

Technical User
Feb 28, 2005
5
SE
i have made a working guestbook, but one problem remains. Im trying to load the variables into the movie with loadVariablsNum and it works when the textfield which i want to load it into is located on level 0. But when i put it in a movieclip the variables wont load onto it.

So the question is: If my textfield is located in _root.mc1.mc2.textfield what level is it in?

Thx in advance //gustaf
 
It's not in a new level - it's still on level0 (that's the same as _root in this case). To target the textfield in the movieclip you have to use the path you've already outlined and set it to the value of the information that you're bringing in on the _root level:

Code:
_root.mc1.mc2.textfield.text=_root.variablesYouloaded
 
_root and _level0 are the same. Movies can be "stacked" by loading one movie into another one using loadMovieNum() and assigning a level (1,2,3 etc...). You would address those movies by using _level1, or _level2, etc...

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
It's worth pointing out that _root and _level0 aren't actually the same thing as every level has a _root timeline.

Most of the time this isn't a problem as you're in _level0 by default but if you called _root from a movie in _level2 you'd still be calling _level2: _root is a relative path, not an absolute one when you have more than one level in your movie.
 
thx for the help, both of u. It works now and i finally got to know what a level was. I have really been struggling to find out. So thx.
 
Good point Wangbar. I guess I have been building flat movies for too long. My levels are rusty :)
 
How do you make e-mail address clickable in a Flash guestbook; I tried: &output="<a href=mailto:" & gstEmail & ">" & gstEmail & "</a>" inside the data variable file but it would not work.

 
You have set the text field that is displaying the text to HTML. You can do this by code or through the properties panel.
Example:
Code:
textFieldName.html = true;
textField.htmlText = output;

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top