Skip to main content
Known Participant
February 27, 2014
Question

event complete not firing in browser

  • February 27, 2014
  • 1 reply
  • 506 views

Hi

Using flash builder am working on my project. Its working on locally... once i moved to server its not working here the my code.

public var loader:UILoader;

                    public var imgUrl:String;

                    public var loadBool:Boolean;

                    public function UrlImage(imgUrl:String, width, height)

                    {

                              loader = new UILoader();

                              this.imgUrl = imgUrl;

 

                              loader.width = width;

                              loader.height = height;

 

                              loader.scaleContent = true;

                              loader.autoLoad = true;

                              loader.source = imgUrl;

 

                              this.addChild(loader);

                              loader.addEventListener(Event.COMPLETE, completeHandler);

                    }

                    public function completeHandler(e:Event):void

                    {

                              Bitmap(loader.content).smoothing = true;

                    }

 

 

Thanks in advance

Chandu

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
February 27, 2014

post a link to your online swf-embedding html.

Known Participant
February 28, 2014

function showFlash(swf_name, width, height, id, fVars)

                              {

                                        var str = '<embed src="'+swf_name+'" id="'+id+'" name="'+id+'" FlashVars="'+fVars+'" quality="high" scale="exactfit" width="'+width+'" height="'+height+'" align="middle" allowfullscreen="true" allowscriptaccess="always" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/> ';

                                        document.write(str);

 

                              }

kglad
Community Expert
Community Expert
February 28, 2014

i'm not sure what you're demonstrating with that code other than incomplete swf embed code.

use the html code published by flash.  upload that html and your swf and post a link to that html file if you still have a problem after using proper embedding code.