can anyone update this code to MX?
it’s a great tutorial but doesn’t work in MX -
http://www.flashkit.com/tutorials/Special_Effects/Real_Tim-Boban_Kl-144/index.php
T H A N K S
can anyone update this code to MX?
it’s a great tutorial but doesn’t work in MX -
http://www.flashkit.com/tutorials/Special_Effects/Real_Tim-Boban_Kl-144/index.php
T H A N K S
This…
On (Press)
Start Drag ("/outline", L=100, T=100, R=300, B=300)
End On
On (Release)
Stop Drag
End On
Should be
on (press) {
_root.outline.startDrag(true, 100, 100, 300, 300);
}
on (release) {
stopDrag();
}
And This…
Set Variable: "x_mask" = GetProperty (outline ,_x)
Set Variable: "y_mask" = GetProperty(outline,_y)
Set Property ("/outline/bigpic", X Position) = (200- x_mask)
Set Property ("/outline/bigpic", Y Position) = (200 - y_mask)
Should be
var x_mask = _root.outline._x;
var y_mask = _root.outline._y;
_root.outline.bigpic._x = 200-x_mask;
_root.outline.bigpic._y = 200-y_mask;
This should help. Instances and targeting of clips may be off though.
Thanks. I am struggling with ActionScript and just can’t seem to get it - would you mind looking at this file I’m going around in circles
This .fla still has all the original code.
I change it to the dot syntax way I showed you above and removed the actions from frame 2 since they are already in the onClipEvent (load) of your movie clip and everything worked fine.
:: Copyright KIRUPA 2024 //--