PDA

View Full Version : How to update text window


grudgelord
04-25-2002, 05:31 PM
I am having a bit of a time finding a soloution to my problem. I have an onscreen menu that, when a menu item is chosen, pops up a textbox diplaying the information for that menu item. The information in the textbox is loaded from an URL encoded text file and the actionscript is handled via an "#include statement".

The problem is this: I want to include items (similar to text hyperlinks) in the text box that can be clicked on and thus update the text displayed in the textbox (creating a submenu within the textbox if you will). I have tried embedding an href but this of course opens a new instance of a standard browser window...which is exactly what I do not want to happen. I want this window to behave like a mini-web-browser.

Is there anyway to open these new hyperlinks with the textbox as the target? If not, how do I get the items in the textbox to behave ashyperlinks without creating buttons...or is there a way?

thanks

-gl

Billy T
04-26-2002, 12:20 AM
if the text box has the html box checked then you can just make <a href> links.

You are pretty limitted so far as the actions you can trigger from these html links. I'm pretty sure you can trigger flash functions and provide at least 1 parameter to this function so I guess you could make a loadVariable function to load in a text file to the existing text box.

Do you have mookes actionscript guide? This has a fair bit of info on this...

cheers

Billy T
04-26-2002, 12:59 AM
ok I've attached an example

couple of problems -

1 - I couldn't get the parameter to work properly so I just made multiple functions with no parameters

2 - seems to need the "focus" to be removed from the text box for the link to keep working. This was easily fixed by putting another text box off the stage and setting the focus to that whenever a link is clicked but unfortunately this requires the links to be clicked on twice to work :(

post back if you work out these probs

cheers