×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

zoom problem

zoom problem

zoom problem

(OP)
hi.. can someone help me with a script problem?
where's what i need to figure out ( :P ) with our help...
i my progect i have a picture galary and i need a script or something for a controlded zoom on one picture. let's say the picture has ( in full version ) 1024*768 (the project is for 800*600) and on mouse click on thumb a part of that picture is diplayed.. and in that sprite i have some navigation tools to move throug the picture...i know it can be done but just dont know how :(
Ohh...and another problem ( :D ), i know how to make a thumb enlarge on mouse enter, but can the thumb have 30% transperancy and on mouse enter it changes to 100% ?
THX for taking you time to read this and any ideea is welcome.. this is my first project in director so i'm a noob in using it. :P Thx again

RE: zoom problem

I didn't understand very well your first problem but for the second one, just attach the following behaviour to the sprite:

-- Sprite Behaviour
on beginSprite me
  sprite(me.spriteNum).blend = 30
end beginSprite

on mouseEnter me
  sprite(me.spriteNum).blend = 100
end mouseEnter

on mouseLeave me
  sprite(me.spriteNum).blend = 30
end mouseLeave
--

Kenneth Kawamoto
www.materiaprima.co.uk

RE: zoom problem

(OP)
First of all, thx for second problem solution... Now in my first problem i'm talking about a zoom with some sort of control ( from the user ) on a picture.. let's say i have a big picture, like ... 2000*1000, but the director project is 800*600..ok... in a foto galery i have a thumb nail of the large picture.. on mouse click on thumb nail i'm telling director to go on a sprite where the bigger picture is not displayed in full, it's on a detail level of the picture( let's say 50% of it , and i have some sort of control with the mouse do make a navigation through the rest of it , and i let the user move to whatever part he wants, to see more details of that picture). i need to know how can i make some sort of navigation ( in - out ) of that picture ( something like internet explorer with pictures opened in a new window, at the bottom of that picure there's a buton for zoom ) ... i dont know how to explain this any other way ... THX AGAIN KENNETH

RE: zoom problem

(OP)
and another question ( :P ) regarding transperancy.... how can i apply that code ( the one above ) to another button and have the same efect on the thumb nail.. i did something like this :
in a text area i've hidden a button with this behavior :

on mouseEnter
  go to frame 215
end mouseEnter
on mouseLeave
  go to frame 200
end mouseLeave

so i have 2 frames "215 and 200"... on frame 200 the thumb nail has 30% transperancy and at 215 it has 100% .. what i need to know is a shorter way to do this, coz i have like 300 pictures that will have a behavior like this one. THX

RE: zoom problem

If you mean you want to change the blend of a sprite other than itself on rollover, just do:

-- Sprite Behaviour
on beginSprite me
  sprite(1).blend = 30
end beginSprite

on mouseEnter me
  sprite(1).blend = 100
end mouseEnter

on mouseLeave me
  sprite(1).blend = 30
end mouseLeave
--

In this example sprite(1) is the one you want to change the blend.

Kenneth Kawamoto
www.materiaprima.co.uk

RE: zoom problem

(OP)
Thx..that's great :D

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close