Solved

Resize/Scale Transition with Actionscript

Posted on 2007-03-21
4
1,801 Views
Last Modified: 2008-01-09
Would like to know easiest way to get this type page loading transition: http://www.kurtnoble.com/

Was following previous EE thread: http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Macromedia_Flash/Q_21420139.html#a13976643

 Curious what negatyve's solution was but it's no longer posted.
0
Comment
Question by:shareea
  • 3
4 Comments
 
LVL 2

Accepted Solution

by:
seanhess earned 250 total points
ID: 18767812
Use Flash 8's Tween class on the width and height.  That looks like some kind of a bounce.
0
 

Author Comment

by:shareea
ID: 18783747
Would like sample code/fla demonstrating.
0
 

Author Comment

by:shareea
ID: 18801081
seanhess

okay - dug around  - thanks for pointing me in the right direction
0
 

Author Comment

by:shareea
ID: 18801121
In case anyone is following this thread - here's what I came up with for button named home_mc - on first frame of main timeline. If there's an easier way, all comments are welcomed:

//Button Tweens
import mx.transitions.*;
import mx.transitions.easing.*;

function Over(){
      var tw1:Tween = new Tween(this, "_xscale", Bounce.easeOut,       this._xscale, 125, 0.7, true);
      var tw2:Tween = new Tween(this, "_yscale", Bounce.easeOut,       this._yscale, 125, 0.7, true);
}

function Out(){
      var tw1:Tween = new Tween(this, "_xscale", Bounce.easeOut,       this._xscale, 100, 0.7, true);
      var tw2:Tween = new Tween(this, "_yscale", Bounce.easeOut,       this._yscale, 100, 0.7, true);
}

home_mc.onRollOver = Over;
home_mc.onRollOut = Out;
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now