PDA

View Full Version : Anybody here who rules in ASP/Javascript/Flash5 ?


Quaky
12-20-01, 12:59 PM
I have this question: I am using a flash file to display my graphs (I downloaded it, haven't got the FLA file) and ASP to pass the data via Javascript. My problem is that the clients (internet users) cannot see the graphs because the data is passed before the flash file is completely loaded.

What I need is a way to track the download progress of the swf file, and once it's completely downloaded, a Javascript function needs to be started.

Another possible way is placing a preloader (same for images used for rollovers) on the page, if so the flash file wil be downloaded completely BEFORE the page is shown and the ASP's are called by the javascript.

I know this is a complicated way to do what I need to do, but I like the graphics of the charts.

Can anybody help me, I would really appreciate it.
TIA, Quaky

Quaky
12-20-01, 02:13 PM
If anyone knows of an IIS5 DLL that renders Graphs as images you can always notify me :)

Wa11y
12-20-01, 02:26 PM
This might be best served under the Software section. You're more likely to get a response from someone who knows what's going on. A mod can move it for you.

Quaky
12-20-01, 02:34 PM
Tought of that too, To bad I can't move it. If a mod reads this, kick it over to the software boards please :)

Kingslayer
12-20-01, 04:59 PM
Why not have the settings on the flash file wait a few seconds before it shows in the browser that way everything is preloaded and everything should come out fine.

You can set this pause in the publish settings.

CrystalMethod
12-20-01, 06:40 PM
Best way to do what I think you're getting at is to make a flash preloader to show something while your main SWF loads, then load the main SWF, and unload the preload SWF, in ajacent keyframes.

Quaky
12-20-01, 10:11 PM
The problem is that I don't have the FLA file, this means that I can't edit the flash. I'll try to explain it more clearly:

The flash file gets parameters from javascript (the passed parameters are rendered with ASP but that's not the problem).
My problem is that the parameters are sent to the client before the entire flash file is sent. It's like trying to start a program that is not yet completely downloaded. What I need is a piece of code (HTML, Javascript, ASP, whatever) that detects wheter or not the flash file is downloaded, and sends the parameters to the flash once it is completely downloaded to the client's pc.

I hope that clears it up.

Also keep in mind that I know jack **** about flash. I download them and use them. I can't make them myself. :rolleyes:

CrystalMethod
12-21-01, 01:03 AM
Oh, well, what I was trying to get across was that you can make a preload SWF, to load your primary SWF. so that the entire thing gets loaded and then executes as normal.