Loading in the background...

They have: 7 posts

Joined: Nov 1999

So, as some of you might have picked up, I do some flash design . I've come into a problem that I'm hoping can be solved by some of the brilliant minds around here. I've got an intro page (index.html) with a shockwave file (intro.swf) on it. It loads, the intro plays. Great. BUT, I don't want the users to wait AGAIN for the main site to load! (demo2.swf on demo2.html). So, I need demo2.swf to load in the background during that inactivity mode where they're just watching this intro. I've come up with a *decent* way to do it in Flash, but it's far from perfect, and in certain circumstances, it just plain doesn't work. I'm hoping maybe there's some sort of javascript method I can use to load this in the background. Anyone got any suggestions? Thanks in advance!

_/ Drew /_

Brian Farkas's picture

They have: 1,015 posts

Joined: Apr 1999

I'm sure there must be a way to do this with JavaScript, but I'm not totally sure about the coding for that... SO, what you might do is to make the first page into frames, with an "invisible" frame (1 pixel high) somewhere in the page that preloads the flash animation for the second page. After that, just insert some code into the second page to make it break free from the frames, and you'll be good to go- the flash will already be cached from the invisible frame. The code for making your page "break free" from frames can be found here: http://www.etips.net/tutorials/html/frames2.html
and the code for creating an "invisible frame" can be found here:
http://www.pageresource.com/html/frame3.htm

I hope this works!

Brian Farkas

------------------
Web Design - Hosting - Promotion - Programming
InfoStar Web Design - Click Here!

They have: 7 posts

Joined: Nov 1999

Somebody JUST gave me the same response in the Javascript Forum... BUT, my reply was this:
The hidden frame seemed like a good idea, except the flash file has sound in it, so you'd hear it! Also, it would probably be killing twice the processor power, as I guess the shockwave player would continue to work, not knowing it was hidden.

I don't think it will work... hmmmm... ... BUT THANKS FOR TRYING TO HELP!!!!

_/ drew /_

They have: 297 posts

Joined: Apr 1999

Why dont you use multiple scenes?

Malte

------------------
Malte Ubl - www.Boardzilla.org
Communication: public<->programmers
of the Boardzilla BB

They have: 7 posts

Joined: Nov 1999

I've thought about it, but if someone skips the intro, they'll have to load the whole thing even though they aren't watching it! And then they'll still have to load the scenes with the site itself!
_/ drew /_

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.