troubleshooting Question

image size in actionMovie

Avatar of jignesh7743
jignesh7743 asked on
Adobe Flash
3 Comments2 Solutions235 ViewsLast Modified:
There are 30 images on my webpage and each are named in a numbered sequence like this image1.jpg, image2.jpg, image3.jpg.

I import them into flash slideshow in actionMovie and that will pause on the frame for 3 seconds then fade out to the next image.

following code i m using:::

// initialize variables and properties
whichPic = 1;
square._alpha = 0;
// initiate change to new image when buttons are clicked
next.onPress = function() {
     if (whichPic<6 && !fadeIn && !fadeOut) {
          fadeOut = true;
          whichpic++;
          input = whichPic;
     }
};
back.onPress = function() {
     if (whichPic>1 && !fadeIn && !fadeOut) {
          fadeOut = true;
          whichpic--;
          input = whichPic;
     }
};
_root.onEnterFrame = function() {
     // when a new Photo is selected, fade out, load new image, and fade in
     if (square._alpha>10 && fadeOut) {
          square._alpha -= 10;
     }
     if (square._alpha<10) {
          loadMovie("c:/Nature/image"+whichPic+".jpg", "square" );
     
          fadeOut = false;
          fadeIn = true;
     }
     if (square._alpha<100 && fadeIn && !fadeOut) {
          square._alpha += 10;
     } else {
          fadeIn = false;
     }
     // limit input field
     if (input>6) {
          input = 6;
     }
     // initiate change to new image when Enter key is pressed
     if (Key.isDown(Key.ENTER)) {
          fadeOut = true;
          whichpic = input;
     }
};
// if a number is entered in the input field but Enter is not pressed, change
// back to current Photo number when clicking anywhere else
inputField.onKillFocus = function() {
     input = whichPic;
};

Now the problem is that the image which i m importing does not matches with the size of box i.e. square ...so i am getting only part of image....so my question is how can i scale the image which i am importing!!!???

thanks a lot in advance..
help me out with this prob..
cheers,
jignesh
ASKER CERTIFIED SOLUTION
Zeffer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros