Richie,
Have you considered adjusting the drawRect of the stage? Using the drawRect property 
of the stage you can zoom in and out on various parts of the stage just like you can 
do in authoring. Therefore, you can adjust this rect causing a zoom in to one of your 
sprite clusters, then can zoom back out or on to another sprite cluster, etc.

For example:

-- 320x240 stage, not zoomed
put (the stage).drawRect
-- rect(0,0,320,240)

-- 320x240 stage, zoomed 2x
-- zoomed on middle of stage 
(the stage).drawRect = rect(-320,-240,320,240)

-- 320x240 stage, zoomed 2x
-- zoomed in on upper left corner
(the stage).drawRect = rect(0,0,640,480)

What you will need to do is figure out the rect area of your cluster within the stage, 
then devise a scheme to determine the appropriate zoom amount along with offset for 
the new drawRect.

Warning: this will scale your sprites, therefore bitmaps may look pixelated, text will 
too. Therefore this technique may lead to degradation of appearance. Test it and see 
what happens. Try using vector shapes and Flash sprites if possible as they scale 
better. 

Cheers,
Tom

-----Original Message-----
From: Richie Jindal
To: [EMAIL PROTECTED]
Sent: 9/8/2001 6:32 AM
Subject: <lingo-l> zooming into a cluster

Hello everybody,

For all those people who have missed my previous mails
I explain what I am doing again. I am developing a
small interface (as a student project) in which I am
parsing an xml file (that is generated by a php script
with some data) into D8.5 . The xml file has lets say
nine basic main tags(means below the first tag
obviously!!) and then further sub-tags under each of
these nine tags. For every one of these nine tags in
my xml file I generate a sprite with certain
attributes at runtime. Then for its subtags smaller
sprites clustered around the main sprite. This way I
get about nine basic clusters of sprites.
Additionally, each sprite has some data associated
with it that I can retrieve by clicking on the sprite.
uptil now everything works perfect.
The next functionality that I want now is to be able
to zoom into one cluster . 
I dont know exactly how to approach this problem...one
way is to figure out the main sprite(and hence which
cluster it is) by clicking on it and then to generate
the whole thing again with different sizing (either by
reparsing or just by the data that is already stored 
about the sprites). Cud there be some way that i can
consider this to be like a 3D setup and then use the
commands for changing the views in 3D lingo, even
though everything uptil now is only 2D graphics  ????
(might be a stupid question..but I am curious
nevertheless). or can there be some other way to do
this ??? Please suggest me some simple and reliable
method...as I am more or less a beginner at lingo and
this is my first hand at Dir.
Any suggestions wud be greatly appreciated!!!
Thanx

Richie

__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger
http://im.yahoo.com

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to