Using Http To Connect To Server-Side Scripts - MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH Manual

Learning actionscript 2.0 in flash
Table of Contents

Advertisement

3.
Select Control > Test Movie to test the Flash document.
As the external XML file loads, the nested
download progress of the XML. Once the XML file has completely loaded, the
event handler gets deleted so it doesn't continue to calculate the download
onEnterFrame
progress. Depending on how fast the download completes, you should be able to see the
bar slowly grow until the
download occurs too fast, the progress bar may go from 0% to 100% too quickly, making
the effect harder to see; in this case it may be necessary to try downloading a larger
XML file.
Using HTTP to connect to server-side
scripts
The loadVariables function, loadVariablesNum function, getURL function,
loadMovie function, loadMovieNum function functions and the loadVariables
(MovieClip.loadVariables method), loadMovie (MovieClip.loadMovie method), and
getURL (MovieClip.getURL method) methods can communicate with server-side
scripts using HTTP or HTTPS protocols.These functions and methods send all the variables
from the timeline to which the function is attached. When used as methods of the MovieClip
object,
loadVariables()
movie clip; each function (or method) handles its response as follows:
The
function returns any information to a browser window, not to
getURL()
Flash Player.
The
loadVariables()
Flash Player.
The
loadMovie()
Flash Player.
When you use
loadVariables()
several parameters:
is the file in which the remote variables reside.
URL
is the level or target in the SWF file that receives the variables. (The
Location
function does not take this parameter.)
For more information about levels and targets, see
and levels"
in Using Flash.
638
Working with External Data
is the same width as the
bar_mc
,
, and
getURL()
loadMovie()
method loads variables into a specified timeline or level in
method loads a SWF file into a specified level or movie clip in
,
getURL()
movie clip resizes to display the
bar_mc
stroke_mc
send all the variables of the specified
, or
, you can specify
loadMovie()
Chapter 1, "About Multiple Timelines
movie clip. If the
getURL()

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents