View previous topic :: View next topic |
Author |
Message |
benoit74 How do I cheat?
Reputation: 0
Joined: 22 Sep 2016 Posts: 3
|
Posted: Thu Sep 22, 2016 9:24 pm Post subject: VB how to load variables instead of setting them? |
|
|
Example
I want to LOAD / enable the Variable instead of changing the value of a one.
Like this
_root.Notify("Messagebox appears in flash")
All I know how to do is
Flash.SetVariable("_root.HP", "100")
Doing the latter should be possible, but I don't know how to go about doing it.
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
|
Back to top |
|
 |
benoit74 How do I cheat?
Reputation: 0
Joined: 22 Sep 2016 Posts: 3
|
Posted: Thu Sep 22, 2016 10:01 pm Post subject: |
|
|
Did you read what I said? None of this is what I want to do. I want to basically "call" a function or variable. Load, Call, Enable, whatever is the best terminology.
There is a commonly used line in a game that is _root.DoThing("This Does Something"); I want to execute that through VB.
Any idea?
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Fri Sep 23, 2016 4:34 pm Post subject: |
|
|
Code: | Flash.CallFunction("<invoke name=""_root.Notify"" returntype=""xml""><arguments><string>no clue</string></arguments></invoke>"); |
|
|
Back to top |
|
 |
benoit74 How do I cheat?
Reputation: 0
Joined: 22 Sep 2016 Posts: 3
|
Posted: Sun Sep 25, 2016 1:41 pm Post subject: |
|
|
Zanzer wrote: | Code: | Flash.CallFunction("<invoke name=""_root.Notify"" returntype=""xml""><arguments><string>no clue</string></arguments></invoke>"); |
|
Can't get it to work, maybe I'm just doing this wrong or maybe the game doesn't allow this somehow?
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sun Sep 25, 2016 5:39 pm Post subject: |
|
|
More likely that I don't know what I'm talking about. Found that on Google.
|
|
Back to top |
|
 |
|