View Full Version : dynamically create thousands of clickable pixels
mikal
September 28th, 2006, 06:00 PM
Just a question
Is it possible to create a 3d circle or image/four sides with a million clickable pixels or more?
If so...
if you click one, can there be a cordinating click? Meaning click one and try to find the other.
A final may include a 3d rendering... but is the senerio possible?
If you know...
If you can point me in the right direction or a "YEAH it can be done LOOK".
Or if you can do it personally email me. http://board.flashkit.com/board/images/smilies/thumbsup.gif
Thanks
jerez_z
October 3rd, 2006, 05:17 PM
you wouldn't be able to have a million buttons or movieclips all running at once (it would overload the computer just trying to generate it) but what you could do is have one clip and just use the current coordinates of the mouse to gather where they clicked and that would basically provide the same thing. It would be a little harder to implement in 3d but definatley possible.
evildrummer
October 4th, 2006, 08:50 AM
explain the purpose of it and more detail in what would happen as there would be several ways o doing this but some would not work in a certain scenario.
Flashthinker
October 7th, 2006, 04:24 AM
A million? That's a lot. That's a 1000*1000 bitmap... Which is huge.
It is possible, but with a million pixels it will run VERY VERY slowly. I wouldn't use bigger than 300*300 pixels.
It would be really hard to make it in 3D. Since flash isn't particularily good at perspective texture mapping.
You could use raycasting; which is an algorithm that takes rows of pixels from the input bitmap and resizes them according to the position on the perspective plane. This is really difficult to do especially to get the relative width of the actual 3D plane at a certain point.
Personally I wouldn't try this. You would have to dynamically generate movieclips to hold each pixel and assign each of these a onRelease/onPress event using a for loop.
I wouldn't even consider doing a sphere.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.