PDA

View Full Version : Flash - Click image to play movie


rosschapman
October 21st, 2005, 16:42
Ah, third post in a row. *Nice.

I've starting using flash to display some movies and I want to create this effect in the .fla.

jpeg - "Click to play movie"
User clicks the image
Movie plays.

I can't figure it out in the tutorials (using Flash 8).


thanks,

the_pm
October 21st, 2005, 16:55
Hmm, you can create a play movie button in Flash and simply advance the movie to the second frame when clicked.

Flash 8 should be pretty good with allowing static objects to control movies - JavaScript and ActionScript talk to each other better than ever before now! But it's a bit beyond my knowledge on how exactly to do this, I'm afraid.

The best I can give you is affirmation it can be done :)

rosschapman
October 21st, 2005, 17:31
no worries - it'll be my weekend project!


cheers!

sea otter
October 21st, 2005, 21:39
sounds like a question for Vito, no?

rosschapman
October 23rd, 2005, 16:21
well, i found a solution. Make a button in the flash timeline and then play movie. now just need to find a way to go back to the start when it finishes.

in addition-

How can I tell Opera not to display flash objects? for some reason (as in this http://www.iwdn.net/showthread.php?t=3165), opera's overflow in layout doesn't work out with flash objects, so how do i turn flash off in opera?.

thanks!

the_pm
October 23rd, 2005, 21:33
well, i found a solution. Make a button in the flash timeline and then play movie. now just need to find a way to go back to the start when it finishes.In the final frame of the movie, in a separate layer devoted to scripts, create a keyframe, and insert gotoAndStop(1); - it's something like that (the helpful Flash actionscript functions will give you the proper format if this isn't correct.

opera's overflow in layout doesn't work out with flash objects, so how do i turn flash off in opera?.You'd need JavaScript to do this, and it would be very unreliable, since many if not most Opera users spoof IE UA Strings to avoid sniffing scripts.

vito
October 24th, 2005, 13:06
Roos, sounds like you have it all worked out. But if you like, you can also take a look at http://www.proxus.com/components/FLV_Player.php . Upon installation, it will add itself to Flash menu as a video component option (I believe you need MX or better). Works OK, but is a bit buggy. Several months ago, I figured out a way to have the embedded player display a jpg, and clicking it would play the movie. But for the life of me, I can't figure out how to replicate it now.

Vito