CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Flash & ActionScript (http://www.codingforums.com/forumdisplay.php?f=52)
-   -   flash design (http://www.codingforums.com/showthread.php?t=65369)

dispector 08-06-2005 06:45 PM

flash design
 
i want to make a site in flash, which ive never done before, and was wondering what is best way to load external files in to the movie? So say you click "contact us", an external file called contact.txt, or .html or whatever the extension needs to be is displayed in the content area of the site.

iota 08-07-2005 08:54 AM

1 Attachment(s)
On the first keyFrame, type :

Code:


myData = new LoadVars();
myData.onLoad = function(){
  myText_txt.text = this.content;
};
myData.load("example1.txt");

stop();

Where MyText_txt property is set to Dynamic Text.


See : http://icebergz.flashband.net/

For the sake of your clear understanding, refer to the attached file.
Hope you OK :)

__________________________

Submit your vote for us here :
http://www.codingforums.com/showthre...ewpost&t=65351


All times are GMT +1. The time now is 09:26 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.