LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-03-2003, 03:12 AM
aolba aolba is offline
Registered User
 
Join Date: Jan 2003
Posts: 3
Rep Power: 0
aolba is on a distinguished road
Elastic FX, didnīt return to normal size

I manage to modify an script I found, this flash make a thumb (of a serie of thumb) bounce and grow in an elastic way when you pass over it.
The original script was placed all over the main time line. I need to have all this content in one single MC. I found a way to do this, it works fine, but when I try to load this movie in to a level (1,2,3) the shrink FX didnīt work, it didnīt return to the original size.
This also hapend with the original file, so I supose the problem is not in my modifications.
I donīt remember where do I get this file, it is in my library, and I canīt contact the source.
I suspect the problem could be in this area, this is the script inside this MC the name is Code, instance mcode:

---------------------------------------------------------

counter = 0;
while (Number(counter)<Number(/:numclips)) {
counter = Number(counter)+1;
if (("NM" add counter) eq (/:recentM)) {
call("growme");
setProperty("\"/\"&/:recentM&\"temp\"", _x, "Getproperty(\"/\"&/:recentM&\"temp\",_x) + 10");
} else {
call("shrinkme");
}
}
----------------------------------------------------------
NEXT FRAME

gotoAndPlay("uno");
----------------------------------------------------------
NEXT FRAME (growme)

mxscale = getProperty("_root.lista.NM" add counter add "temp", _xscale);
myscale = getProperty("_root.lista.NM" add counter add "temp", _yscale);
if (Number(mxscale)>200) {
if (eval("_root.lista.NM" add counter add "temp:switch") == 1) {
set("_root.lista.NM" add counter add "temp:growth", (eval("_root.lista.NM" add counter add "temp:growth"))*-0.5);
set("_root.lista.NM" add counter add "temp:switch", 0);
}
} else {
if (eval("_root.lista.NM" add counter add "temp:switch") == 0) {
set("_root.lista.NM" add counter add "temp:growth", (eval("_root.lista.NM" add counter add "temp:growth"))*-0.5);
set("_root.lista.NM" add counter add "temp:switch", 1);
}
}
setProperty("_root.lista.NM" add counter add "temp", _yscale, myscale+(eval("_root.lista.NM" add counter add "temp:growth")));
setProperty("_root.lista.NM" add counter add "temp", _xscale, mxscale+(eval("_root.lista.NM" add counter add "temp:growth")));
----------------------------------------------------------
NEXT FRAME (shrinkme)

mxscale = getProperty("_root.lista.NM" add counter, _xscale);
myscale = getProperty("_root.lista.NM" add counter, _yscale);
if (Number(mxscale)>100) {
if (eval("_root.lista.NM" add counter add ":switch") == 1) {
set("_root.lista.NM" add counter add ":growth", (eval("_root.lista.NM" add counter add ":growth"))*-0.2);
set("_root.lista.NM" add counter add ":switch", 0);
}
} else {
if (eval("_root.lista.NM" add counter add ":switch") == 0) {
set("_root.lista.NM" add counter add ":growth", (eval("_root.lista.NM" add counter add ":growth"))*-0.2);
set("_root.lista.NM" add counter add ":switch", 1);
}
}
setProperty("_root.lista.NM" add counter, _yscale, myscale-(eval("_root.lista.NM" add counter add ":growth")));
setProperty("_root.lista.NM" add counter, _xscale, mxscale-(eval("_root.lista.NM" add counter add ":growth")));
--------------------------------------------------------------



This is the hierarchy of my movie
Main Time line (MC grupo, instance lista)
----------MC Grupo, inside of this:
----------first keyframe:

// initial duplications and position original clips out of sight
/:Zsorting = "Deactivated";
counter = 0;
/:numclips = 4;
while (Number(counter)<Number(/:numclips)) {
counter = Number(counter)+1;
duplicateMovieClip("_root.lista.M" add counter, "NM" add counter, counter);
set("_root.lista.NM" add counter add ":mynumber", counter);
}
/:Zorder = Number(/:numclips)+1;



----------(MC Code, instance mcode)----inside of this is the problem code...I think
----------(MC clip1..2...3...4, instances M1...M2...M3)
inside all this MC, over the button object

on (press) {
startDrag("");
}
on (release) {
stopDrag();
}
on (rollOver) {
if (/:ZSorting eq "Deactivated") {
/:recentM = getProperty(_target, _name);
/:Zorder = Number(/:Zorder)+1;
duplicateMovieClip("_root.lista." add /:recentM, /:recentM add "temp", /:Zorder);
set("_root.lista." add /:recentM add "temp:mynumber", eval("_root.lista." add /:recentM add ":mynumber"));
/:Zsorting = "Activated";
set("_root.lista." add /:recentM add "temp:growth", 50);
set("_root.lista." add /:recentM add "temp:switch", 1);
removeMovieClip("_root.lista." add /:recentM);
}
}
on (releaseOutside, rollOut) {
/:Zorder = Number(/:Zorder)+1;
duplicateMovieClip("_root.lista." add /:recentM add "temp", /:recentM, /:Zorder);
set("_root.lista." add /:recentM add ":mynumber", eval("_root.lista." add /:recentM add "temp:mynumber"));
/:ZSorting = "Deactivated";
removeMovieClip("_root.lista." add /:recentM add "temp");
set("_root.lista." add /:recentM add ":growth", 50);
set("_root.lista." add /:recentM add ":switch", 0);
/:recentM = 0;
stopDrag();
}



you could find the files in
http://www.agvideo.tv/forums/altec.fla my work file
http://www.agvideo.tv/forums/main.fla dummy file to load the file
http://www.agvideo.tv/forums/jumpingboxes.fla the original

I think this is all the information I have, It is probably a detail but I dontīsee it, I hope some one could.
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
loadClip: size problem valderama Flash MX ActionScript 1 04-25-2007 11:45 AM
elastic grow didnīt return to normal size aolba Flash MX 5 03-16-2005 01:46 AM
XPathAPI intrinsic classes FrozenMedia Actionscript 2.0 10 12-21-2004 05:28 PM
robert penner's equation jal Flash 5 Actionscript 6 06-18-2002 06:19 PM
getInheritance() and getClass - prototype fun robertpenner Advanced Flash 3 08-12-2001 10:52 PM




All times are GMT. The time now is 07:13 AM.