Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

event complete not firing in browser

Community Beginner ,
Feb 27, 2014 Feb 27, 2014

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

TOPICS
ActionScript
472
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 27, 2014 Feb 27, 2014

post a link to your online swf-embedding html.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 27, 2014 Feb 27, 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);

 

                              }

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 28, 2014 Feb 28, 2014
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines