
20-06-08, 17:56
|
|
Junior Member
|
|
Join Date: Jun 2008
Posts: 1
Rep Power: 0
|
|
Re: Reflect Gallery
Dear Flep,
First of all thank you very much for the great work.
I am working on a sliding puzzle game and I would like to incorporate the ReflectGallery in my game, so when the player choses an image to solve the sliding puzzle, they first scroll through the lovely ReflectGallery, click twice on the large image to select it which will take them to the next frame where I will have the following code:
//instantiate the SlidingPuzzle Class
var sp:SlidingPuzzle = new SlidingPuzzle();
//define the number of horizontal pieces the image should be broken to, there is a set relation b/n the number of the vertical and the number of horizontal pieces
sp.pieces = 3;
//how many times we shuffle the pieces
sp.shuffle = 200;
sp.imageChosen = ..............; //Somehow I have to pass the chosen image here
addChild(sp);
sp.startSlidingPuzzle();
Any idea how to pass the selected image to my sliding puzzle class?
Your help will be greatly appreciated!
Many thanks
PS: By the way I hope Italy wins the EURO 2008! |
Last edited by nev; 20-06-08 at 17:58..
Reason: spelling
|