dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Create instance of the media component

Hybrid View

  1. #1
    Member
    Join Date
    Jan 2004
    Posts
    43

    Create instance of the media component

    I've searched this forum, but couldn't find what I was looking for. I know you can create an instance of a button and place it on the stage with Actionscript, as opposed to doing it in design mode.

    But I was wondering if it can be done with an instance of a component, like the media player. I have a MC and I'm trying to make a video presentation, but the videos are of different sizes, so I would like to be able to click a button and have the video player appear in a specific spot, so I'd want to customize the X and Y coordinates and pass the video parameters such as .flv file and volume, etc.

    Any help is greatly appreciated, thanks!

  2. #2
    Flash Video Moderator Wheels's Avatar
    Join Date
    Dec 2000
    Location
    Minneapolis
    Posts
    1,590
    You could try to place the video component in a MovieClip, then attach the movieclip and set the properties with code. It's not easy, but it works. You'll have to be a good coder to get it to work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center