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




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-09-2006, 01:59 AM
s0uL s0uL is offline
Registered User
 
Join Date: Sep 2006
Posts: 2
Rep Power: 0
s0uL is on a distinguished road
Question Buttons URL Link from External Text

Hi i just created a small movie that basicaly uses mx.controls.Loader to load an image file and then the below script to load text to display with the image.
myData = new LoadVars();
myData.onLoad = function() {
image1_txt.text = this.vartext;
};
myData.load("image1.txt");

The movie displays the image and text for 600 frames then loads a different image and text for another 600 then another for a further 600 then goes bak to the first image on a neverendig loop.
Iv created a transparent button that is placed over the images when they are shown.
So basicaly the movie takes all its information from images and text files in its directory. But how do i make it so i can create another txt file with a url in it. and then make the button use the url from the text file as the link followed if you click on the image.
so i have --- Image1.jpg ---- Image1.txt ----- Image1_url.txt and when image1.jpg is shown if u click the button it goes to the link in Image1_url.txt

Also the url is a postnuke url e.g"modules.php?name=main&file=prod&itemid=67"

OR
is there a way i can read from the txt file the end number (which is only thing in url that changes) and add that to a variable then in the buttons action scripts link url have something like
"modules.php?name=main&file=prod&itemid="VarUrl
where VarUrl is the value read from the text file ?
 


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
external link QBA Flash MX 2004 0 09-10-2007 04:40 PM
Loading a url from .txt into text hyperlink dannyyoder Flash 8 0 08-28-2007 07:12 PM
actionscript button URL link - no pop up pasefika Flash CS3 / Flash 9 5 05-06-2007 01:13 AM
External Text File String Into A Variable... Gramophone Flash MX 12 06-13-2004 03:38 AM
link of external text file Stan Flash 5 Actionscript 0 06-04-2001 07:06 AM




All times are GMT. The time now is 06:57 AM.