Page 1 of 1

Flash ActiveX control

Posted: Sun Aug 21, 2005 12:30 pm
by bidanh00co
Hi everybody !

I create a small app playing with Flash ActiveX (such as Flash Player)
I have some question, it will be very kind of you if you help me in detail.

1) Is there a code to detect the Flash ActiveX exist in a PC or not ??.. If it doesn't exist, the program will close.

2) I create a Flash file (presentation flash) and embedded to my App. In my Flash file, there are some "Scene". How can we make a button to control that flash file: GotoFrame(frame_number) , GotoLabel(Name_Of_Label)...etc....I test and success with "GotoFrame", but the thing I want is "GotoLabel" or "GotoScene" ...

Would you please help me....!!
Thank you.

Posted: Wed Aug 24, 2005 6:29 am
by bidanh00co
Why there's no reply ?? :((((( :cry:

Posted: Wed Aug 24, 2005 10:04 am
by FloHimself
hi

2) take a look at "TCallLabel"

Posted: Thu Aug 25, 2005 2:32 am
by bidanh00co
Yes, that's the problem.

The "TCallLabel" syntax is TCallLabel(a,b) . What is a, b ??

Thank you, I tried but no thing happens.

Posted: Thu Aug 25, 2005 2:38 am
by jack
do a Google search for TCallLabel and you will find the answer. :wink:

Posted: Thu Aug 25, 2005 11:48 am
by bidanh00co
Thank jack !

That's a good site to help me work in C++ with FlashControl.
But I see that the Method "TCallLabel" that they discribed requires 3 parameters:

void InvokeTCallLabel(HWND hwndFlashPlayerControl, LPCTSTR target, LPCTSTR label)

- hwndFlashPlayerControl
- target
- label


But in source code of Flash Embedded ActiveX, the author just give a "TCallLabel(a,b)" with 2 parameters required.

So, I wonder what does parameter "b" stand for ??

2. What is the difference between GotoFrame and TGotoFrame ? and "TCallLabel" & "TGotoLabel" ???

Posted: Thu Aug 25, 2005 1:22 pm
by FloHimself
This is the best resource i found for the description of the methods:
http://www.macromedia.com/support/flash ... sh_03.html

TCallLabel seems to call some action on the scene,
while TGotoLabel is the goto.

referring to this example from fred:
viewtopic.php?t=11465
you should call it like:

Code: Select all

oFlash\TGotoLabel("/MovieClip", "MyLabel")
iirc the strings arguments are unicode!
so maybe it works with:

Code: Select all

oFlash\TGotoLabel(Ansi2Uni("/MovieClip"), Ansi2Uni("MyLabel"))

Posted: Fri Aug 26, 2005 10:34 am
by bidanh00co
Thank FloHimSelf much ! but did you test it ?? :)

I test but it still inactive.

- oFlash\TGotoLabel(Ansi2Uni("/MovieClip"), Ansi2Uni("Scene_2"))

- oFlash\TGotoLabel(Ansi2Uni("C:\file.swf"), Ansi2Uni("Scene_2"))

- oFlash\TGotoLabel(0, Ansi2Uni("Scene_2"))

Posted: Fri Aug 26, 2005 1:39 pm
by FloHimself