Solved

Resize/Scale Transition with Actionscript

Posted on 2007-03-21
4
1,811 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
The goal of the tutorial is to teach the user how to how to record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

749 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