It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Flash Forum

Need to know how.....

Moderator: Phate

Need to know how.....

Postby gitm on Wed Aug 23, 2006 12:21 am

Not sure if this is the correct place to put this, but after searching for an hour I decided to throw it here:

I am currently creating a webpage for a 1v1 tournament. The page loads up a flash file in the center of the page, and after it fades out, I want to put in some html buttons. Those buttons will take users to other parts of the site, which I know how to do. I just can't figure out how to make the flash file disappear, and then put the buttons in place of the flash file. Here is what I have so far:

http://www.team-exiled.com/1v1
gitm
 
Posts: 2
Joined: Wed Aug 23, 2006 12:10 am

Postby stewball on Wed Aug 23, 2006 2:40 pm

Simple answer is: you can't... well, not very easily anyway. You could use a javascript timer object that does a document.write in the div and writes the .swf in there when the timer object starts and then after a predetermined length it clears the div and then writes the html for the buttons.

OR, you could keep it how it is now which is fine using the flash onRelease() listener and getURL(); functions.
User avatar
stewball
100+ Club
 
Posts: 116
Joined: Sun Oct 30, 2005 6:30 pm
Location: London, UK

Postby Phate on Wed Aug 23, 2006 5:10 pm

hmmm... couldnt you put it in an Iframe? then have the page refresh to a different page in so many seconds?
Web-Developing since '03
Image
User avatar
Phate
500+ Club
 
Posts: 826
Joined: Sun Nov 21, 2004 4:12 am
Location: 127.0.0.1

Postby gitm on Wed Aug 23, 2006 7:31 pm

Well I stayed up until 6am this morning working on it, and then I finally decided to just make the menu flash. So I made a workaround for it, but when I get some time, I'll dabble with what you folks suggested. Thanks for your help.
gitm
 
Posts: 2
Joined: Wed Aug 23, 2006 12:10 am

Postby stewball on Thu Aug 24, 2006 4:23 pm

You could use flash to set a javascript variable instead of having a timer and having to have the flash movie length exact.
User avatar
stewball
100+ Club
 
Posts: 116
Joined: Sun Oct 30, 2005 6:30 pm
Location: London, UK


Who is online

Users browsing this forum: No registered users and 0 guests