dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: PNG wont show transparency in Flash

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Posts
    1

    Post PNG wont show transparency in Flash

    I have a problem I can't seem to fix - why wont the transparent attributes of the PNG files I have substituted into the XML gallery wont show? instead there is a heavy white border that overlaps other images in when the flash is rendered

    var tn:Number = 0;
    var current_tn_x:Number;
    var current_tn_y:Number;
    var current_pic_no:Number = -1;
    var total_items:Number;
    var tn_loader:Loader = new Loader();
    var flashmo_xml:XML;
    var flashmo_tn_list = new Array();
    var mc:MovieClip = new MovieClip();
    var thumbnail_group:MovieClip = new MovieClip();
    var timer_running:Boolean = false;

    stage.align = StageAlign.TOP_LEFT;
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.addEventListener( Event.RESIZE, resize_listener );
    set_this_xy();

    this.addChild(thumbnail_group);
    this.addChild(tn_loading_info);

    function set_this_xy(): void
    {
    this.x = Math.floor( stage.stageWidth * 0.5 );
    this.y = Math.floor( stage.stageHeight * 0.5 );
    flashmo_fullscreen.x = this.x - flashmo_fullscreen.width;
    flashmo_fullscreen.y = this.y - flashmo_fullscreen.height;
    tn_loading_info.x = - Math.floor( stage.stageWidth * 0.5 ) + 20;
    tn_loading_info.y = - Math.floor( stage.stageHeight * 0.5 ) + 20;
    }

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    Russia: Western Siberia
    Posts
    268
    According to what you have submitted here, for any reason.

    This code has nothing to do with any images.
    Last edited by caseyryan; 03-16-2011 at 02:07 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