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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

flash4 actionscript to flash mx

Status
Not open for further replies.

amren

Programmer
Mar 4, 2005
5
GB
Hello anyone, whos smarter than me in flash.

I need major help, as it is known that flash four tutorials can be used for flash mx. now i have found one, on flashkit. which is so cool for my final yr project.

what im asking, its a plea really. that can anyone convert the actionscript below so it can be used in flash mx, as it is different in flash mx.

the action script below is from flash 4..

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



Start Drag ("drag", lockcenter)
Stop

// this is on one movie clip
-----------------------------------------------------------

Set Variable: "xPos" = GetProperty("../drag", _y)
Set Variable: "xPos" = xPos-150
Set Property ("../nav", Rotation) = GetProperty ( "../nav", _rotation )-(xPos/20)

// this is on another movie clip
-----------------------------------------------------------
Go to and Play (_currentframe-1)

// this is on the same movie clip but different frame
-----------------------------------------------------------
Set Variable: "x" = GetProperty ("../drag", _x)
If (x> 200)
Set Variable: "midX" = x - 200
If (midX <0 )
Set Variable: "midX" = - midX
End If
Set Property ("../nav", X Scale) = midX
Set Property ("../nav", Y Scale) = midX
If (GetProperty ("../nav", _xscale) <30)
Set Property ("../nav", X Scale) = "30"
Set Property ("../nav", Y Scale) = "30"
End If
If (GetProperty ("../nav", _xscale)> 100)
Set Property ("../nav", X Scale) = "100"
Set Property ("../nav", Y Scale) = "100"
End If
End If

//this is on the 3rd movie clip
-----------------------------------------------------------
On (Release)
Begin Tell Target ("/")
Go to and Stop ("thelabel")
End Tell Target
End On
// this piece of actionscript is for all the buttons made in the movie clips.
-----------------------------------------------------------


the link is

pls have a look, i havent used a forum before, but could you pls help. anyone. i have tried to convert the actionscript rom flash 4 to flash mx, but got stuck on the second movie clip

thank you so much

amren
 
well yes, what do you mean you have loaded mx and it works fine, teach me please lol. cas im just saying everytime i follow the instructions of the tutorial, and the actionscript comes up with sytax errors, what i was wondering if you know the codes for flash mx 2004, when the actionscript is for flash 4, but get the same effect, pls help if you can. have a look at the link if you can, thanks
 
I did have a look at the link and downloaded the .fla where it says "Download (13 kb)" to the upper left of the start of the tutorial. I then loaded this .fla in Flash MX (not MX2004), and it works fine, Flash making the necessary corrections in the actionscript...

If you set your MX2004 to use AS1.0, it should work just as well... You could even try it with AS2.0 (I'm not on MX2004), and it might still work.

Regards. Affiliate Program - Web Hosting - Web Design
 
oh crap i must of missed that, your a king man, thanks so you can just download the stuff and make the say image arragmnets like change it to suit you cool.
thank you let me try and illlet you know,

thanks man
 
by the way how and what is AS1.0, and AS2.0 and how you do this
thanks man
 
AS1.0 is actionscript for MX only...

AS2.0 is actionscript for MX 2004... Different!

I know you can select either on MX2004 (but I'm not on MX2004) so I think it's in Preferences but not sure!

Regards. Affiliate Program - Web Hosting - Web Design
 
yeah thats were i went, but its not there, but it worked fine, i guess it done it automatically, but thanks for your help man, truly blessed you are. thanks man
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top