View Full Version : Is it possible in action script?
Eikichi
07-04-2006, 01:42 PM
I've made this in pure frames without any Action Script
http://www.yousendit.com/transfer.php?action=download&ufid=A5EA4B3523244EB4
But this isn't a really good idea since it's no automated...
I need a script that will fit the boxes in the SWF to the content, and the "pushing" thing in action script too..
Is it possible?:eek:
oldnewbie
07-04-2006, 02:53 PM
http://www.flashkit.com/movies/Interfaces/Menus/sliding_-Toon_Van-4842/index.php
http://www.actionscripts.org/showMovie.php?id=1012
http://www.actionscripts.org/showMovie.php?id=745
mooska
07-04-2006, 03:20 PM
import mx.transitions.Tween;
import mx.transitions.easing.*;
var dist = 4;
var lastPressed;
var wantSize = 300;
clip1._x = 40;
this.onEnterFrame = function() {
for (i=2; i<4; i++) {
var mc = this["clip"+i];
var prev = this["clip"+(i-1)];
mc._x = prev._x+prev._width+dist;
trace(this["clip"+(i-1)]);
}
};
for (i=1; i<4; i++) {
//this["clip"+i]._x = mc._x+mc._width+dist;
var mc = this["clip"+i];
mc.onPress = function() {
if (lastPressed != this) {
t = new Tween(this, "_xscale", Elastic.easeOut, this._xscale, wantSize, 3, true);
t2 = new Tween(lastPressed, "_xscale", Elastic.easeOut, wantSize, 100, 3, true);
lastPressed = this;
}
};
}
seanlail
07-04-2006, 05:17 PM
Both posts are showing him only on press.
I think he wants it on rollover.
oldnewbie
07-04-2006, 06:01 PM
If so, then I can adapt it (them) to rollOver's!
mooska
07-05-2006, 07:32 AM
Both posts are showing him only on press.
I think he wants it on rollover.
It doesnt matter, will work enyway.
Eikichi
07-05-2006, 03:29 PM
Thanks for help guys, I'll try this out right away!
Eikichi
07-05-2006, 05:57 PM
Do you guys have a link for horizontalnavigation menu like this?
oldnewbie
07-05-2006, 06:13 PM
like this :confused: :confused: :confused:
Eikichi
07-05-2006, 06:19 PM
Like this
http://www.flashkit.com/movies/Interfaces/Menus/sliding_-Toon_Van-4842/index.php
But more kinds... this one doesn't suit me :P
mooska
07-05-2006, 06:31 PM
Code Ive gave will work like you want, if you replace all _x, _xscale, _width with _y, _yscale, _height ;)
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.