| View previous topic :: View next topic |
| Author |
Message |
Robin4286 Newbie cheater
Reputation: 0
Joined: 16 Jun 2007 Posts: 19
|
Posted: Fri Jun 22, 2007 12:18 pm Post subject: What does 'dup' do? |
|
|
In actionscript (or whatever the language flash uses) what does 'dup' do?
Thanks!
|
|
| Back to top |
|
 |
Simsgy Grandmaster Cheater
Reputation: 0
Joined: 07 May 2007 Posts: 581 Location: My new avatar <3
|
Posted: Fri Jun 22, 2007 1:26 pm Post subject: |
|
|
I guess dup is doing Duplicate (Although I don't know flash, I guess it does).
And is flash a language?
_________________
|
|
| Back to top |
|
 |
Robin4286 Newbie cheater
Reputation: 0
Joined: 16 Jun 2007 Posts: 19
|
Posted: Fri Jun 22, 2007 3:11 pm Post subject: |
|
|
Yeah, I looked at some code and it would seem to just take whatever value is on top of the stack and duplicate it. Ok next question is...
What do getMember/setMember do?
and in answer to the is flash a language question
Well in flash games it uses some form of scripting, I believe the name is actionscript.
Like when you decompile a flash it gives you some form of programming language, sort of a mix between ASM and javascript
|
|
| Back to top |
|
 |
MoolT Cheater
Reputation: 0
Joined: 16 Mar 2007 Posts: 38
|
Posted: Fri Jun 22, 2007 11:41 pm Post subject: |
|
|
| Robin4286 wrote: | Yeah, I looked at some code and it would seem to just take whatever value is on top of the stack and duplicate it. Ok next question is...
What do getMember/setMember do?
and in answer to the is flash a language question
Well in flash games it uses some form of scripting, I believe the name is actionscript.
Like when you decompile a flash it gives you some form of programming language, sort of a mix between ASM and javascript |
You can script in some language using the prog you use to make flash stuff (like games and vids). I haven't learnt it though.
|
|
| Back to top |
|
 |
Uzeil Moderator
Reputation: 6
Joined: 21 Oct 2006 Posts: 2411
|
Posted: Fri Jun 22, 2007 11:59 pm Post subject: |
|
|
Actionscript 1.0/2.0 are languages used to make flash games. The assembly-like language that you get from decompiling (like with flasm) is bytecode/flash macros.
dup is duplicate usually but I've never seen dup in flash coding ever.
_________________
|
|
| Back to top |
|
 |
Robin4286 Newbie cheater
Reputation: 0
Joined: 16 Jun 2007 Posts: 19
|
Posted: Sat Jun 23, 2007 10:01 am Post subject: |
|
|
Interesting... so the simple coding you use in the flash program are simply macros, much like those used in some assemblers!
So the language in question is a macro-less form of the language used in flash!
Anyways... back to my second question :
What do getMember and setMember do?
They seem to be used in a fashion similar to that of get/setVariable, but not quite.
Thanks for helping out!
|
|
| Back to top |
|
 |
Uzeil Moderator
Reputation: 6
Joined: 21 Oct 2006 Posts: 2411
|
Posted: Sat Jun 23, 2007 6:37 pm Post subject: |
|
|
To my knowledge, getMember and setMember are equivelants of setVariable and getVariable, but I don't know the difference. I've simply seen them both used for the same outcome (to set a variable to a certain value or get the value of that variable and return it onto the stack).
_________________
|
|
| Back to top |
|
 |
|