photopatrick
05-17-2004, 12:36 PM
Learning by trying.
I'm trying to figure out how to make a"empty"mc to load my swf's in.
The thing is that I've got this box tweening to different sizes and I wanna load swf's in to that box controlled by the same mc that "controlls" the size of the box.And the way I've aranged everything "logic becomes non logic"
So I've tied to make a "empty" mc on the layer above the box and everything works ok(well maybe not but the swf loads anyway.)
But then I have to make as many "empty" mc as swf's I wanna load ehrr.
Not the best way I know.
The next thing is when I try to make the "empty" mc layer to a guidlayer(I dont wanna se the "empty" mc on stage)the swf loads to the x position as the mc I'm calling the action from.
There must be a better way to work this out.I've tried to find tutorials about this with no luck .
Here's the fla and a test swf u guys if u wanna take a look at it.
This is the code.
#include "easing_equations.as"
#include "lmc_tween_as1.as"
menuPad = 10;
function resizeBox(w,h)
{
box.tween(["_width","_height"],[w,h],2);
menu.tween("_x",box._x+w+menuPad,2);
}
And in the mc that controlls the size of the box
on(release) {
this._parent.resizeBox(300,300);
loadMovie("macrofade4.swf",_root.empty);
}
Here's the fla and a test swf u guys if u wanna take a look at it
Thanks....
Forgot to say that the fla is really a fla created by petefs posted here to guid in tweening/easing.I just wanna lern the way to load the swf's and take no credit for the example (maybe my shitty macro swf)
I'm trying to figure out how to make a"empty"mc to load my swf's in.
The thing is that I've got this box tweening to different sizes and I wanna load swf's in to that box controlled by the same mc that "controlls" the size of the box.And the way I've aranged everything "logic becomes non logic"
So I've tied to make a "empty" mc on the layer above the box and everything works ok(well maybe not but the swf loads anyway.)
But then I have to make as many "empty" mc as swf's I wanna load ehrr.
Not the best way I know.
The next thing is when I try to make the "empty" mc layer to a guidlayer(I dont wanna se the "empty" mc on stage)the swf loads to the x position as the mc I'm calling the action from.
There must be a better way to work this out.I've tried to find tutorials about this with no luck .
Here's the fla and a test swf u guys if u wanna take a look at it.
This is the code.
#include "easing_equations.as"
#include "lmc_tween_as1.as"
menuPad = 10;
function resizeBox(w,h)
{
box.tween(["_width","_height"],[w,h],2);
menu.tween("_x",box._x+w+menuPad,2);
}
And in the mc that controlls the size of the box
on(release) {
this._parent.resizeBox(300,300);
loadMovie("macrofade4.swf",_root.empty);
}
Here's the fla and a test swf u guys if u wanna take a look at it
Thanks....
Forgot to say that the fla is really a fla created by petefs posted here to guid in tweening/easing.I just wanna lern the way to load the swf's and take no credit for the example (maybe my shitty macro swf)