LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-08-2005, 10:27 PM
MAbans MAbans is offline
Registered User
 
Join Date: Dec 2005
Posts: 6
Rep Power: 0
MAbans is on a distinguished road
Rolleyes Loading up links dynamicaly in buttons

I am using a external text file to lead in a link into a flash file. I understand I could have the a text area to render the "<a ref..." code to HTML but I'm using a button to crate a nice roll over so I would ideally like to have it go off of the button.

What I'm using to bring up a link location is like this.

Code:
//create new instance of LoadVars object
myData = new LoadVars();

//define what to do with content once it has loaded
myData.onLoad = function()
{
	//the value of the "content" property is assigned to the text field
	link1.text = this.link1;
};

//now load the external file into the myData object
myData.load("filename.txt");

stop();
After I create a button I include in the action this

Code:
on (release) {
	getURL("link1.text", "_self");
}
As expected it doesnt work. Any ideas?
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading More Buttons on clicking a button. Please Help!! misterinley Flash 8 0 01-16-2009 06:57 PM
loading xml data with previous/next buttons iwinqiuit XML & Sockets 1 02-08-2007 06:16 PM
Loading external .txt files using links in external .txt files JeremyToaster General Flash 2 03-01-2005 01:48 AM
Loading buttons into movie clips in ordered sequence? datter Flash MX ActionScript 2 12-08-2004 03:24 PM
problems loading several dinamic txt's from different buttons jaibu75 Flash MX 0 10-08-2002 10:46 PM




All times are GMT. The time now is 02:21 PM.