newsblog

Post details: Flash FLVPlayback Seperate Play and Pause Buttons

2007-09-16

Flash FLVPlayback Seperate Play and Pause Buttons

I'm working on a custom skin for the FLVPlayback component. The design requires a play button with a pause button next to it at all times. All the provided skins use the dual PlayPauseButton system. That's where you have a play button and no pause button. When you press play it switches to become the pause button. Then when you pause it returns to being the play button. The Adobe LiveDocs say:

If you want to have separate Play and Pause buttons, rather than a combined Play-Pause button, simply place the play_mc and pause_mc clips on the Stage without wrapping them with a playpause_mc clip.

The actual process is this:

  • Delete the playpause_mc instance off the stage altogether
  • Drop an instance of your play button and an instance of your pause button in it's place
  • Inside the AllLayout clip place your play and pause buttons as you want them to appear
  • Now here's the critical part. Make sure to give them the instance names play_mc and pause_mc
  • If you don't do the last step then the skin won't show up at all when you view the actual FLVPlayer, it will look fine when you preview the skin though

Comments, Pingbacks:

No Comments/Pingbacks for this post yet...

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.
Authorisation Image
Please enter this verification code before posting comment.
Smilies:
=> :idea: :) :D :p B) ;) :> :roll: :oops: :| :-/ :( >:( :'( |-| :>> ;D :P :)) 88| :. XX( :lalala: :crazy:
Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
URLs, email, AIM and ICQs will be converted automatically.
Options:
 
(Line breaks become <br />)
(Set cookies for name, email & url)

categories

search

syndicate this blog XML


What is RSS?