Virtual Mechanics: Community Forums and FAQs
Virtual Mechanics: Community Forums and FAQs
Animation / Mobile
Animation problems|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Working Mechanic |
I'm trying to build a simple animation but i'm having difficulties: my idea is to use a small image (32x32) that increases in size(64x64) when the mouse pointer is over and changes back when it leaves. I've defined a behavior triggerd by the mouse pointer that uses "metamorph - change this object - act1; where act1 does the resizing".
My problems: 1. How can i stop the image resizing automatically when the page is loaded? 2. How can i make the image to change back smoothly when mouse leaves. Maybe i am doing something wrong or my way isn't the best way to achieve that result. Please help a newbie on distress |
||
|
|
Honorary Mechanic |
I would use a mouseover for that action instead of setting up animation.
Set up a mouseover action on your smaller image to show the larger image on mouseover. You are not 'moving' anything on the act so this would be the option for a static plain larger picture. annie |
|||
|
|
Working Mechanic |
What i need is some sort of animation because i want the user to see the image grow (not by much), remain big while the mouse is over and then shrink slowly to original size when leaves. I have the feeling that can be achieved, i just don't know how.
Thank you, Annie misumisu |
|||
|
VM Staff![]() |
Try this:
Select the object Open the Action Editor > Transformation tab, and adjust the 'Scaling'. Click OK Open the Behavior Editor > Trigger Event tab, and check 'Mouse Over'. Now Preview and see if it does what you were looking for. - Derry |
|||
|
|
Working Mechanic |
Thanks Derry but i've already tried that and doesn't work; maybe i'm doing something wrong so here is what i've done:
1. Imported a picture 2. Select it > Action editor > Transforms > Scaling (0.5) 2.1. Timing > Repeat 2.1.1. If i set the repeat value to zero the animation simply doesn't start. If i set the value to 1 the transformation begins when the page is loaded; I've tried both ways + 3. Behavior editor > Trigger event:mouse over 3.1. End event: 3.1.1 Mouse leave - in this case when mouse leaves the scaling begins again. 3.1.2.If i don't select anything looks better because the scaling only occurs once, on mouse over. 3.2. Metamorph. If i leave it blank the scalling occurs only once, but i want that each time the user points his mouse to repeat the scalling; so i check "Change this object > change action > act1" Yesterday i've tried only that(for the entire day)and that's what it came out: - The scaling begins right after the page is loaded; i try to avoid that, - When the mouse is over the scaling occurs and when is done the picture snaps back to original size, even if the mouse is on the same spot on the picture and didn't move, i try to make the picture remain big while the mouse is over, and shrink only when it leaves, - when the mouse leaves the scalling begins again; doesn't look ok. Now i can do something simillar the way Annie sugested, but the truth is i have 4 pictures in a row and beside the final size of the page i try to "unleash" Web engine and use dhtml - i think it looks better the way i'm trying to do it. I'll try again today and if i fail then i'll try moving the picture a lil'bit because i have a need for motion on my page. One way or the other i'll finish my project this week and then you guys will see what i've tried to do. Regards, misumisu PS. Still, if you have any sugestion... |
|||
|
VM Staff![]() |
This is one way to do it:
Basically, you can make an action/event combination that scales up on 'mouse over' and down on 'mouse leave' by using the 'reverse each cycle' option but there are a few quirks yet to be worked out so the steps are a little more complicated than they might be. 1. Make an object, I'll call it 'obj1' 2. click the Action Editor button to create an action for that object (call it 'act1'). 3. In the Action Editor's 'Transforms' tab, Choose a scaling value, say 1, at turn on (check) the 'reverse each cycle' check box beside it Now in an ideal world, all you would need to do is add an event to the object, then give the event a Trigger Event of 'mouse over' and an End Event of 'mouse leave', leaving everything else in the event at its default. That would be all you need to do except right now the action in Web Engine is always triggered once when the page is loaded. So the object will scale up once when the page is loaded. Assuming that is not what you want, but rather you want it to only scale when you mouse over/mouse leave, you have to do a little bit more to prevent the action from occurring until the first mouse over: 4. Leave the first object as a temporary working object (that gives you a place to edit the action) and create your first real object (call it 'obj2'). 5. Don't give 'obj2' an action. 6. Give it an Event (select the object then click on the Event Editor button). Call it 'evt1'. 7. Give the event a Trigger Event of 'mouse over' and an End Event of 'mouse leave'. Leave everything else in the event at its default. 8. Now, in the event tab 'Metamorph' check the 'Change this Object' check box. 9. Next, check the ''Change Action' checkbox and select 'act1' in the listbox beside it. What this does is create an event with no action but gives it 'act1' on the first mouse over. Obj2 should now do what you want but you need to adjust the scaling to suit your needs. That leads to the other complication. Because the scaling doesn't include a path, the timing is set to 'per second'. That means the object scales to the given value in 1 second and the action 'speed' has no effect. If you don't want the scaling to take 1 second, what you can do is set scaling to more than you want but set the 'duration' (in the Action Editor, Timing tab) to a fraction of a second. So for a quick, small grow/shrink cycle try scaling of '1' and a duration of '0.1'. The final hurdle is that there is a bug that prevents duration from accepting the decimal point if you try to type it in. So you will have to copy/paste the text, 0.1, in from somewhere else. 10. Now, if that timing works for you, you can create the other objects and, using the Object editor, select 'evt1' into each one. You can delete your temporary object ('obj1') if you want now. Just create a new one and give it 'act1' if you want to adjust the action values. I hope that helps you. It sounds more complicated than it actually is but hopefully, in furture releases, we will make this much more automatic. |
|||
|
|
Working Mechanic |
Harpo,
Thank you so much !This is exactly what i wanted.I can't belive it is done... You are a GOD. Regards, misumisu |
|||
|
|
Working Mechanic |
This message has been edited. Last edited by: William McCormick, |
|||
|
|
Working Mechanic |
Thanks William,
i'll try tomorrow all those things. Even if i manage to achieve the results i'm expecting, i'm not sure how will they interact with "relative positioning" of objects; with "centered effect" the hot spots became left justified. Anyway, when i'll finish i'll post the page. Regards, misumisu |
|||
|
|
Working Mechanic |
http://www.rockwelder.com/test/testscalebutton.html
This is a page I made just to see what you could do rather easily quickly, and so easily repeatable. For the blue buttons, and the none pumping heart, I used the following setting. I actually used a transition scaling number of .38, and I pasted a timing duration number of .2 in the action timing box. The Behavior "Trigger Event","User Trigger" is set to "Mouse Over" The Behavior "Trigger Event", "Dynamic Trigger" is set to "On object Leave" The "End Event", "User Resets" are set to, "Mouse Leave" The "End Event", "Dynamic Resets" are set to "O Object Enter" The pumping heart I have to go back and see what that is set to. Thanks Harpo for the pasting of decimal values in the timing duration box. Sincerely, William McCormick |
|||
|
|
Working Mechanic |
http://www.Rockwelder.com/Flash/scalebutton/scalebutton.html
This flash movie above shows another way to create what appears to be an even more stable expanding button. Not unlike Harpo's method. This below is a link to a page with this type of button. And has text showing the details of creating it. http://www.Rockwelder.com/Test/WebEngine/Addingbuttons/addingbuttons.html Sincerely, William McCormick |
|||
|
|
Working Mechanic |
Harpo, I don't know if you know this or not. But Netscape 8.12 does not seem to support scaling in it's natural state. It just sort of offsets the graphics diagonally. But I believe I have the Netscape browser, NOT set to Internet Explorer style display.
But the scaling graphics still look cool in Netscape anyway. Sincerely, William McCormick |
|||
|
VM Staff![]() |
Hi William,
Thanks for the heads up on Netscape 8.12. We will look into it. We found a similar problem with FireFox. Nice little demo! Harpo |
|||
|
| Previous Topic | Next Topic | powered by eve community |
| Please Wait. Your request is being processed... |
|

