This is G o o g l e's cache of http://www.flashsandy.org/forum/index.php?showtopic=403 as retrieved on 24 Aug 2007 02:03:30 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
To link to or bookmark this page, use the following url: http://www.google.com/search?q=cache:a_x16ZmD0hMJ:www.flashsandy.org/forum/index.php%3Fshowtopic%3D403+site:www.flashsandy.org/forum&hl=en&ct=clnk&cd=10


Google is neither affiliated with the authors of this page nor responsible for its content.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> found it
kronosvl
post Mar 23 2007, 09:23 AM
Post #1


Newbie
*

Group: Members
Posts: 3
Joined: 21-March 07
Member No.: 952



I found it
I used something like this:
CODE
zoom.addEventListener(InterpolationEvent.onProgressEVENT, this, rotate,PARAMETERS);

so it remains only the second problem: How do I know where ia was click inside a face?

[Edit] .. is the solution to this problem (IMG:style_emoticons/default/cool.gif)

This post has been edited by Petit: Mar 23 2007, 08:43 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Petit
post Mar 23 2007, 08:41 PM
Post #2


Advanced Member
***

Group: Moderator
Posts: 612
Joined: 21-June 06
From: Borgholm, Sweden
Member No.: 38



QUOTE(kronosvl @ Mar 23 2007, 10:23 AM) *

so it remains only the second problem: How do I know where ia was click inside a face?

Hi kronosvl!
Do you want to know the coordinates of the mouse pointer within the face?
If so, that might be a bit hard.

Another thing: It's much easier to follow the discussion of a problem if you post in the same tread.
Use [reply] rather than [new topic] if you discuss the same problem.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
kronosvl
post Mar 24 2007, 02:39 PM
Post #3


Newbie
*

Group: Members
Posts: 3
Joined: 21-March 07
Member No.: 952



You are right. I clicked New Topic instead of Add reply and I noticed too late (I was very tired).
on topic:
I have afew boxes. I click one of them - zoom to that box (btw where should I put the code for that - it's finished and is better then what i found on this forum about this subject) - and then i wan't to be able to click one of 10 pictures from one face of the cube and do a specific action.

the problem is how do I know what picture was clicked.

if I can't know that i think I need to do the building from planes. 10 on every face asambled like it is a buiding. But I don't know how the animation will work with hundreds of planes.

This post has been edited by kronosvl: Mar 24 2007, 02:41 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Petit
post Mar 24 2007, 03:28 PM
Post #4


Advanced Member
***

Group: Moderator
Posts: 612
Joined: 21-June 06
From: Borgholm, Sweden
Member No.: 38



QUOTE(kronosvl @ Mar 24 2007, 03:39 PM) *

I have afew boxes. I click one of them - zoom to that box (btw where should I put the code for that - it's finished and is better then what i found on this forum about this subject)

Well, if you are zooming ( smoothly ) within a Sandy world, you have to use a PositionInterpolator,
or maybe listen for the World3D onRenderEvent, and let the event handler move the camera.
In other words you have to use Sandy classes or rewrite sandy itself (IMG:style_emoticons/default/wink.gif)
QUOTE

- and then i wan't to be able to click one of 10 pictures from one face of the cube and do a specific action.
the problem is how do I know what picture was clicked.

Looking at a cube, each of the sides are divided into faces, triangular for the 'tri' mode and sqare for the 'quad mode. This divides the cube side in smaller areas - the number of areas depends on the quality setting.
no = (q+1)*(q+1) for 'quad' mode, twice that many for 'tri' mode.

this is what you can do:
Let's say you want four images on one side.

You create a combined image with your four images in a 2 by 2 grid.
You use this image in a TextureSkin for all faces that belongs to one side.
You get all faces of an Object3D by calling its getFaces() method.
You also enable object events for all faces.
The event handler for the onPress event can identify which face you pressed.

Read more on that in the User Interactions tutorial under "Selecting a Face"
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

- Lo-Fi Version Time is now: 24th August 2007 - 01:39 AM
phpMyVisites