A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: SWF format and Bitmap Fills

  1. #1
    Junior Member
    Join Date
    Mar 2001
    Posts
    22

    SWF format and Bitmap Fills

    Help!

    I'm trying to use PHP and Flashwriter to place a JPEG into a SWF wrapper, but have the SWF placed not at 0,0... I want it placed so 0,0 is at it's center, not top left.

    So, I drew the rectangle starting at (0 - width/2),(0 - height/2). The rectangle draws in the right place, but the bitmap fill still shows the image at 0,0.. so the image is cut off and in the wrong place.

    Check out the attached ZIP file with a SWF inside to see what I mean.

    I want to move the bitmap fill so that it stars at the top left corner of the rectangle. Is this too obscure, or can some SWF expert help me?

    Thanks!
    Attached Files Attached Files
    Become a citizen of Zanpo, Virtual Cities

  2. #2
    World Kit Vote Holder Abelius's Avatar
    Join Date
    Feb 2002
    Location
    US
    Posts
    963
    Always admired your site...!
    Cordially,
    Abelius
    www.worldkit.com

  3. #3
    Junior Member
    Join Date
    Mar 2001
    Posts
    22

    Thanks.. problem solved

    Thanks for the compliments..

    I fixed the problem. Turns out it had something to do with translation matrices. Not sure what they are but the SWF spec helped me.

    -g
    Become a citizen of Zanpo, Virtual Cities

  4. #4
    Junior Member
    Join Date
    Aug 2004
    Posts
    5
    hi,
    I am also trying to write my own swf files and was having troubles with JPEG. My problem was how to display jpegs. I used DefineBitsJPEG2 tag and showframe and that does not do it. I also tried to show the jpeg within a rectangle as a clipped bitmap fill and that didnt work either? can you tell me what tags did uwrite in order show the JPEG. may be then I can work on it figure out whats causing your problem too.
    Abhi.

  5. #5
    Junior Member
    Join Date
    Mar 2001
    Posts
    22
    If you are using PHP do a search on Flashwriter. It does exactly what you need.
    Become a citizen of Zanpo, Virtual Cities

  6. #6
    Junior Member
    Join Date
    Aug 2004
    Posts
    5
    I am using Java. Any ideas?

  7. #7
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    there is a java binding in MING

    Musicman

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