calling function from loaded swf
im trying to call a function from my loaded swf but I am not completely sure how to go about it.
to load my flash movie, I did:
flash1.Base = "http://mechquest.battleon.com/game/"
flash1.LoadMovie("http://mechquest.battleon.com/game/gamefiles/game3_9_23.swf")
The swf loads and plays fine, but I want to call functions from movie.swf by clicking a button.
I tried using this:
flash1.callFunction("_root.conn.loadQuestID(139)")
but that comes up with an error, I searched around the net for the error and I believe it happens either because the swf is protected.
So if i create another swf as a child of my main swf, then I can call its functions? I just want to be able to call functions from the loaded swf through VB or another loaded swf. If anyone can help me with this I'd appreciate it.
to load my flash movie, I did:
flash1.Base = "http://mechquest.battleon.com/game/"
flash1.LoadMovie("http://mechquest.battleon.com/game/gamefiles/game3_9_23.swf")
The swf loads and plays fine, but I want to call functions from movie.swf by clicking a button.
I tried using this:
flash1.callFunction("_root.conn.loadQuestID(139)")
but that comes up with an error, I searched around the net for the error and I believe it happens either because the swf is protected.
So if i create another swf as a child of my main swf, then I can call its functions? I just want to be able to call functions from the loaded swf through VB or another loaded swf. If anyone can help me with this I'd appreciate it.