• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 675
  • Last Modified:

Control load order of flash, javascript and html Div's

My page http://www.westcommonline.com/Remy/website/index.asp?n=lightDuty receives a variable that is transferred from ASP to Javascript and then to Flash.  My problem is that sometimes teh SWF loads to slow and misses the variable.  

How can I ensure the folllowing load order
Page structure (has div elements)
Flash file (500 KB)

This will allow my JS to send info on which part of the flash file to display.

Alternatively, I could have it load the javascript before the flash file, but I need to know that the variable in javascript is set before teh Flash swf loads and makes a call to find out what the js value is.
1 Solution
use flashvars to get the value from the html (.asp) page into the flash movie.

the server compiles the page before the flash movie is initiated.

<param name="myVariable" value="<% response.write("232") %>" />

see the following for more info.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now