A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: dynamicly load video in mx?

  1. #1
    Junior Member
    Join Date
    Jun 2000
    Posts
    26
    i wonder if you can dynamicly load video into flash mx like you do with .jpg files.

  2. #2
    Senior Member
    Join Date
    Mar 2002
    Posts
    194
    Yes and no.

    If you're using the flashcom server then yes or if you turn your video into seprate swf files and use loadmovie.
    Otherwise no you can't.

  3. #3
    Flash Video Moderator Wheels's Avatar
    Join Date
    Dec 2000
    Location
    Minneapolis
    Posts
    1,590
    Yes, the method is almost the same and can be implimented from a stardard http server.

    You use the same loadMovie("my.jpg", _root.targetMC); that you would use to load .jpg's - the only difference being you will load .jpg to a target and .swf to a level. You can load a .swf to a target as well, but it won't stream - it will completely download before it will play. .jpg's do this too, but with their smaller size (usually) it's not such a big issue. Still, it may be nice to let your viewer know the progress of the .jpg loading with a percentage or loader bar.

    You load a .swf to a level with loadMovie("my.swf", 1) for _level1. Make sure to load new movies to the same level so you free up memory by replacing the level. You can now control the properties of the loaded .swf by targeting the _level, like;
    Code:
    if(_level1){  //check to make sure it's there (true/false)
        _level1._alpha= 50;
    }
    5G
    [Edited by Wheels on 08-16-2002 at 04:01 AM]

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