
Welcome Guest
|
#1
|
|||
|
|||
|
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 ? |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |




