Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Actionscripting

Categories Loading a ComboBox from a file
Author: Sas Jacobs | Website: http://www.sasjacobs.com |

 
Page 5
«prev 1 2 3 4 5 6 7 8 9 10 11 12 next»

Checking that the text file has loaded

The second frame checks that the data file has been loaded. Add the following code on frame two of the actions layer. It uses the value of the variable End to decide whether the file has been loaded. Once it has been loaded, the movie can play.

sitestext.onLoad = function() {
if (sitestext.End == 1) {
gotoAndPlay("end");
}
else {
gotoAndPlay("start");
}
}

Add a stop action to frame three of the action layer.

«prev 1 2 3 4 5 6 7 8 9 10 11 12 next»

» Level Intermediate

Added: : 2002-08-13
Rating: 7.64 Votes: 25
Hits: 2134
» Author
Applications Developer Marconi Australia
» Download
Download the files used in this tutorial.
Download (369 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments
 
   
 


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers