A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Flash version problems

  1. #1
    Senior Member
    Join Date
    Aug 2003
    Location
    California
    Posts
    149

    Flash version problems

    This link: http://www.ec-webservices.com/ruffa2...y-productions/ is a slide show I created. I created it in Flash MX and it works fins using IE6, Firefox and Netscape. I modifed the gallery using Flash 8 but saving as Flash MX 2004. The original gallery had all of the pictures in the flash project. The new version I used loadMovie and arrays to load images in as to save download times. I also put all of the code on frame 1 of the root instead of adding code to each button.

    Now the slide show only works in IE6. The pics and arrays are not working in Firefox and NEtscape. Could you check the links in the various browsers and let me know what the problem may be.

    Thanks... Bubba

  2. #2
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    are their flashplayer plug-ins up to date?

    and why did you use dynamic images with MX? sorry Im at work..and i only have IE here..

    on a side note: is that irl? shes hot.
    back on topic...

    I would add a pre-loader so when peopl click the button and the image doesnt instantly appear, that have some sort of visual feedback that things are still working.

  3. #3
    Senior Member
    Join Date
    Aug 2003
    Location
    California
    Posts
    149
    I do have the latest version but it cant be the plugins. The flash file actually loads in on Firefox and Netscape, it is not displaying correctly but it is there. When you click the button you will get "undefined" in a text box that reads from an array. I know the file has loaded but it is not playing correctly. Very strange.

    I put all of the pics in the Flash MX display because I was a dorky noob that knew no other way. I a still a dorky noob but I do know about the loadMovie technique though!

  4. #4
    Senior Member
    Join Date
    Aug 2003
    Location
    California
    Posts
    149
    Still stuck on this issue. I copied all of my objects and actionscript into Flash MX to see if I had the same problem and I do. My only logical explanation is the Firefox and Netscape doesnt like the actionscript which I know makes no sense but what else could cause the 2 browsers to load the movie but have problems with loading the pictures. i have copied my code here to see if any of you actionscript experts may know why I am having this problem.

    Thanks... Bubba

    // Load image function to center the photo in the container.
    MovieClip.prototype.loadImage = function(url) {
    this.createEmptyMovieClip("pic_holder",100);
    this.pic_holder.loadMovie(url);
    this.onEnterFrame = function() {
    if(this.pic_holder._width) {
    delete this.onEnterFrame;
    this.pic_holder._x = -this.pic_holder._width/2;
    this.pic_holder._y = -this.pic_holder._height/2;
    }
    }
    }

    // Load the images/text into arrays and load the first pic.
    _root.onLoad = function() {
    currElement = 0;
    picDataLoad = new LoadVars();
    arrPics = new Array();
    arrText = new Array();
    folder = "images/"; // Path where photos are.
    picDataLoad.load("century-productions.txt"); // Load data from text file.
    picDataLoad.onLoad = function(success) {
    if (success) {
    arrPics = picDataLoad.pic.split(",");
    arrText = picDataLoad.text.split(",");
    galleryTitle = picDataLoad.title;
    galleryText = arrText[0];
    picPath = folder+arrPics[0];
    _root.mcPhoto.loadImage(picPath);
    }
    }
    }

    // Next button code
    _root.next_btn.onRelease = function() {
    if (currElement < arrPics.length - 1) {
    ++currElement;
    picPath = folder+arrPics[currElement];
    _root.mcPhoto.loadImage(picPath);
    galleryText = arrText[currElement];
    } else {
    currElement = 0;
    picPath = folder+arrPics[currElement];
    _root.mcPhoto.loadImage(picPath);
    galleryText = arrText[currElement];
    }
    }

    // Previous button code
    _root.prev_btn.onRelease = function() {
    if (currElement == 0) {
    currElement = arrPics.length - 1;
    picPath = folder+arrPics[currElement];
    _root.mcPhoto.loadImage(picPath);
    galleryText = arrText[currElement];
    } else {
    --currElement;
    picPath = folder+arrPics[currElement];
    _root.mcPhoto.loadImage(picPath);
    galleryText = arrText[currElement];
    }
    }

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