Skip to main content
Participant
March 22, 2009
Question

create a slideshow using only 1 keyframe

  • March 22, 2009
  • 7 replies
  • 797 views
Hi
I have aboat 5000 picture and i want to create a slideshow , using only one keyframe(instead of using 5000 keyframe with go to next frame script for button) for displying the next picture, for example, only with pressing next button using actionscript.
thanks.
This topic has been closed for replies.

7 replies

Participating Frequently
April 2, 2009
I was able to take care of those errors, but I now get this error:

Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

I have checked and double checked the XML file and it's paths. All paths are correct, files names are correct, and files are in their respective folders. I have narrowed it down to this line of code:

imageLoader.load(new URLRequest(xmlList.attribute("thumb")));

When I comment out this line of code I do not get the errors, only a blank movie. Nothing happens. At least there are no errors. Any thoughts?

Andy
AttaBoy2
Inspiring
April 3, 2009
I noticed that that I said to put the thumbnails in a folder called Thumbnails but in the xml the attribute thumb refers to content in a folder called thumbnails. Maybe you should change the name of the Thumbnails folder to thumbnails.
I attached the code properly this time I couldn't find the exact code I pasted the first time so I got an example I know works. Also note in this example it's looking for the xml in a folder called data.
Ned Murphy
Legend
April 2, 2009
You're partly a victim of someone not using the Attach Code feature, as should be done... if you track down where the code starts being italics, there would have been an array index of [ i ] being specified (I added extra spaces for it here). No telling how many more might be missing as a result.

An [ i ] in a posting is read as an italics tag.

Beyond that, check that your file is set up to be using AS3.
Participating Frequently
April 2, 2009
I get several errors:

**Error** Scene 1, Layer 'Layer 1', Frame 1, Line 2: 1172: Definition fl.transitions:easing could not be found.
import fl.transitions.easing;

**Error** Scene 1, Layer 'Layer 1', Frame 1, Line 2: 1172: Definition fl.transitions:easing could not be found.
import fl.transitions.easing;

**Error** Scene 1, Layer 'Layer 1', Frame 1, Line 23: 1137: Incorrect number of arguments. Expected no more than 0.
imageLoader.load(new URLRequest(xmlList.attributes("thumb")));

**Error** Scene 1, Layer 'Layer 1', Frame 1, Line 38: 1120: Access of undefined property Regular.
fadeTween = new Tween(imageLoader, "alpha", Regular.easeOut(0,1,1,true));

**Error** Scene 1, Layer 'Layer 1', Frame 1, Line 38: 1136: Incorrect number of arguments. Expected 6.
fadeTween = new Tween(imageLoader, "alpha", Regular.easeOut(0,1,1,true));

Total ActionScript Errors: 5, Reported Errors: 5

Any suggestions as to how to fix? I would greatly appreciate it.

Andy
Ned Murphy
Legend
April 2, 2009
It would probably work about 500 times faster. Try it first, then see what you need help with.
Participating Frequently
April 2, 2009
How would this work if you only have about 10 images to display? I have the same type of problem, where I would like to display the images without the use of several keyframes and for the images to be on a folder and can be changed at any time.

Andy
AttaBoy2
Inspiring
March 24, 2009
Put your full size Images in a folder called Images, put your thumbnails in a folder called Thumbnails

List your images in a xml file like this:

<images>
<image source="images/Image1.jpg" thumb="thumbnails/Image1.jpg">Description of image 1.</image>
<image source="images/Image2.jpg" thumb="thumbnails/Image2.jpg">Description of image 2.</image>
<image source="images/Image3.jpg" thumb="thumbnails/Image3.jpg">Description of image 3.</image>
<image source="images/Image4.jpg" thumb="thumbnails/Image4.jpg">Description of image 4.</image>
</images>
Write your AS3 like this










Ned Murphy
Legend
March 22, 2009
Try Googling for an AS3 slideshow or gallery tutorial, IF you run into problems after you try to get something working, come back and ask for help with it.