PDA

View Full Version : pop-ups and random movies


paulinskip
02-27-2002, 10:07 AM
Hi all

I've read through numerous tutorials and posts and am stuck on the following two things, sorry if these are basic!

1. I've got a flash movie that generates a pop-up window as soon as it oopens set to a specific size etc, however I need to make is pop-up in the centre of the screen, I don't know what cose I need to add or where I need to add it. Any help would be great.

2. I've got 30-40 movies, at the end of each one I want it to load in a random one from the list. What happens though if I increase/decrease the number of movies at a later date? Do I have to alter the code in every single movie? Again any help would be great.

Thanking you all in advance

Paul

Ricod
02-27-2002, 10:26 AM
About the 1st : do a search on popup and center and screen. It has been answerd MANY times (which reminds me ... PLZ read the rules)

About the 2nd : That depends on your code. Why don't u put the needed code into the main movie ? Then u use that as a controller movie and need to change the code only ones when needed.

paulinskip
02-27-2002, 02:51 PM
Thanks for the quick reply, I've sorted the random movies. But am still stuck on the pop-up question.

I've search the forums read all the suggestions, downloaded the various files and the code generaters an still haven't managed to get it to work, I'm not sure where the code goes or exactly what code is needed.

Hope this makes sense.

many thanks

Paul

(P.S sorry If I broke the rules!)

poab
02-27-2002, 04:19 PM
Bognor! I love Bognor.

Anyway. Centering a pop-up is really a javascript thing. You then trigger the javascript in the head of the html document from a link in the Flash file.

Try doing a search at
http://www.javascript.com/

or some such place. I know size and options on windows are quite easy, but centering needs to test for screen width height etc, and I don't know how-sorry.

cheers