A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: F[8] - Firefox Troubles! - Need Help

Threaded View

  1. #1
    Senior Member frostbite's Avatar
    Join Date
    Aug 2003

    F[8] - Firefox Troubles! - Need Help

    I am calling images into flash through XML.

    Now in Firefox and Safari, the images load fine and everything goes well, except the preloader for the images never shows up, and it doesn't fade in.

    However, in IE, everything works perfectly.

    What can I do to my code to make it work with Firefox and Safari as well as IE?

    Here is the part of my code that seems to be failing. When the image is loaded, the preloader SHOULD progress to frame 100, at which time the image SHOULD fade in.
    this._parent.onEnterFrame = function() {
    	loaded = this.image.getBytesLoaded();
    	total = this.image.getBytesTotal();
            frame = Math.round((loaded/total)*100);
    	this.preloader._visible = true;
    	if (frame < 99) {
    	} else {
    		this.preloader._visible = false;
    		alphaTween = new mx.transitions.Tween(image, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 2, true);
    		delete this.onEnterFrame;
    The preloader is a bar that goes from frame 1 to 100. So as the image loads, the movie clip preloader should progress.
    Last edited by frostbite; 03-21-2007 at 02:48 PM.
    Yarrg Matey!

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