A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: loading Image in to bitmapData

  1. #1
    Member
    Join Date
    Jul 2004
    Location
    brooklyn. NY
    Posts
    81

    loading Image in to bitmapData

    Hi,
    after experementing with the new feature, I couldnt figger it out, is it possible to load an image [not from the libery], an external image in to a bitmapData, or do I have to first load into a MovieClip, and then drow it in to bitmapData? in that case i still have the original clip on the Stage, how do I get rid of it??

    thanks in advance

    -A

  2. #2

  3. #3
    Member
    Join Date
    Jul 2004
    Location
    brooklyn. NY
    Posts
    81
    when I try to use removemovieclip or all the othe trick [_alpha = 0, _x = -Stage.width...] my bitmap is not shoeing, since its dependent on the original clip.

  4. #4
    Junior Member
    Join Date
    Dec 2001
    Posts
    23
    i think you can do so after u draw the mc into bitmap

  5. #5
    Senior Moderator
    Join Date
    Apr 2000
    Location
    Sheffield, UK
    Posts
    3,881
    You load the image into a temporary movieclip, then draw the image into a bitmapdata object, then remove the temporary movieclip.

    See my article on Macromedia Devnet:

    http://www.macromedia.com/devnet/fla...ge_api_05.html

  6. #6
    Member
    Join Date
    Jul 2004
    Location
    brooklyn. NY
    Posts
    81
    I see, so in order to see it i need to attach it in to a new movieclip.

    about the "onLoadInit" function, how would I assign it to this specific loader in a real website when I want to load more then one image and have different functions for each?

    thanks
    -A

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