Search found 10 matches

by john lory
Sun Feb 22, 2009 3:22 pm
Forum: Tricks 'n' Tips
Topic: how to get Comate invoke return value?
Replies: 4
Views: 1934

in fact ,it is unnecessary that to add new methods, only invoke corresponding type accessing method.
for flash CallFunction method,code like:

Code: Select all

...
rr.s = flashobject\GetStringProperty("CallFunction('" + cmd + "')")
             Debug rr
...
it works
by john lory
Sun Feb 22, 2009 2:21 pm
Forum: Tricks 'n' Tips
Topic: how to get Comate invoke return value?
Replies: 4
Views: 1934

Invoke() should not be used to retrieve a property value.

----CallFunction is NOT property,but a METHOD at flash control

Use GetStringProperty() instead in the case you outline.

btw, why are you posting this in the Tricks 'n' Tips section?
---I post this thread at the error section.... :oops ...
by john lory
Sun Feb 22, 2009 1:00 pm
Forum: Coding Questions
Topic: about Comat event handler: how to register specified event ?
Replies: 5
Views: 911

@John Lory :

please see the latest update to COMate in which I have added all that you were after.

I must point out though that, from what I have seen on the web, the "FlashCall" event exposed by the Shockwave object does not have a return value! I may have misunderstood what I was reading (as it ...
by john lory
Sun Feb 22, 2009 12:50 pm
Forum: Tricks 'n' Tips
Topic: how to get Comate invoke return value?
Replies: 4
Views: 1934

how to get Comate invoke return value?

code like:
flashobject\invoke("CallFunction('" + cmd + "')")

the CallFunction is flash ocx control method,prototype like:

# CallFunction
# [b]retType: string[/b]
# params:
# request
# in:True out:False optional:False type:string
#
it have return value, but how can i to get the retrun value ...
by john lory
Sat Feb 21, 2009 6:48 pm
Forum: Coding Questions
Topic: about Comat event handler: how to register specified event ?
Replies: 5
Views: 911

srod ,for flashcall api detail information, refer bellow links please:
http://osflash.org/pipermail/osflash_osflash.org/2005-August/002274.html
http://osflash.org/ext_howto

the calling flow:
...
register host (python,c#) callback function for flash flashcall event,
flash fire the flashcall event ...
by john lory
Sat Feb 21, 2009 2:17 pm
Forum: Coding Questions
Topic: about Comat event handler: how to register specified event ?
Replies: 5
Views: 911

:shock: your are SUPERMAN ,srod, so quickly you replied .
sorry for my mistake,flashcall event have NOT return value :oops:
thanks you works!!
by john lory
Thu Feb 19, 2009 11:13 am
Forum: Coding Questions
Topic: about Comat event handler: how to register specified event ?
Replies: 5
Views: 911

about Comat event handler: how to register specified event ?

I wan't process flash ocx event ,the code like bellow:

FlashObject = COMate_CreateObject("ShockwaveFlash.ShockwaveFlash", GadgetID(winhd) )
Debug FlashObject
If FlashObject
FlashObject\SetEventHandler(@myEventCallback())
....

the flash ocx 's flashcall event prototype is:
Public Event ...
by john lory
Wed Dec 31, 2008 4:39 pm
Forum: Coding Questions
Topic: COmate and Flash ocx problem:can't register event handler
Replies: 6
Views: 1035

great works~~~~~,thank your great works :P
by john lory
Mon Dec 29, 2008 3:03 pm
Forum: Coding Questions
Topic: COmate and Flash ocx problem:can't register event handler
Replies: 6
Views: 1035

thanks for your reply :P

I'll find other solutions for it:)
by john lory
Mon Dec 29, 2008 10:38 am
Forum: Coding Questions
Topic: COmate and Flash ocx problem:can't register event handler
Replies: 6
Views: 1035

COmate and Flash ocx problem:can't register event handler

hi all:
my code like below:

FlashObject = COMate_CreateObject("ShockwaveFlash.ShockwaveFlash", GadgetID(0))

If FlashObject
Debug(FlashObject\SetEventHandler(@myEventCallback()))
Debug COMate_GetLastErrorDescription()
....

Procedure myEventCallback(object.COMateObject, eventName.s ...