Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pls HELP me BACKWARD Engineer this FLASH movie!!??

Status
Not open for further replies.

mc3

Programmer
Mar 11, 2002
14
US
Hi!

I just finished a tutorial on Flash basics, but the best way I learn is to find FLASH examples that I like, and try to emulate them. I am trying to backward engineer a particular FLASH Movie, but now I am stumped and am looking for advice.

If anyone would like to point me in the right direction, I certainly would be grateful. Here is a link to the FLASH movie I wish to emulate:


I have also include the FLASH FLA file to download so you can look at it in Flash.

If you check out the Flash movie at the above link, you will see a small map and a large map. When you drag the mouse around in the small map, then in another box the map is magnified and moves around zoomed in wherever the mouse is located on the smaller map. Easier to see it than explain it.

In looking at the FLA file in Flash, I can figure out how there is a large map that is masked, that moves around when the cursor is moved around on the smaller map. But how do you connect the cursor movements on the smaller map to the larger map?

This is a mystery to me. Can anyone help me here?

Thanks

mc3
 
Open up the symbol mc_h and look at the actionscript it contains. This is the code that does it. It's old school stuff, though. It would look a little cleaner if it had been made in Flash 5.

Code:
xX = getProperty("/h", _x)-50;
xoff = "515";
yoff = "325";
yY = getProperty("/h", _y)-50;
mainxX = "GetProperty ( \"/main\", _x )";
mainyY = "GetProperty ( \"/main\", _y )";
setProperty ("/main", _x, Number(mainxX-xX)+Number(xoff));
setProperty ("/main", _y, Number(mainyY-yY)+Number(yoff));
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top