Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello im with a doubt and need your help if its possible.
I have a class dish and i load 1 file ".swf", and i have a little game that works like this:
The dish moves in the x and y axis and i when i click in the dish it falls down.
But i want to have not only 1 dish i want have 10 different dishes with diferent images.
And i want that they appear in a random sequence.
But i dont have ideia how i cant do that...someone can give me "light"?

I use this variables to load my dish to the stage in my game project.

C#
var load_dish:Loader = new Loader();
var path:URLRequest = new URLRequest("dish.swf");
Posted
Comments
RedDk 24-Nov-13 15:05pm    
Consult "ExtendScript Toolkit CS(X)" SDK located in the Adobe\Adobe Utilities\ and download "JavaScript Tools Guide CS(X)" to look up details of use. Samples directory contains just that. Communicating with Flash, you'll be able to call methods, etc.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900