Flash ActiveX control

Just starting out? Need help? Post your questions and find answers here.
bidanh00co
User
User
Posts: 56
Joined: Thu Jul 07, 2005 10:06 am

Flash ActiveX control

Post 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.
bidanh00co
User
User
Posts: 56
Joined: Thu Jul 07, 2005 10:06 am

Post by bidanh00co »

Why there's no reply ?? :((((( :cry:
FloHimself
Enthusiast
Enthusiast
Posts: 229
Joined: Wed May 14, 2003 3:38 pm
Location: Lüneburg - Germany

Post by FloHimself »

hi

2) take a look at "TCallLabel"
My favorite numbers: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
bidanh00co
User
User
Posts: 56
Joined: Thu Jul 07, 2005 10:06 am

Post 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.
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Post by jack »

do a Google search for TCallLabel and you will find the answer. :wink:
bidanh00co
User
User
Posts: 56
Joined: Thu Jul 07, 2005 10:06 am

Post 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" ???
FloHimself
Enthusiast
Enthusiast
Posts: 229
Joined: Wed May 14, 2003 3:38 pm
Location: Lüneburg - Germany

Post 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"))
My favorite numbers: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
bidanh00co
User
User
Posts: 56
Joined: Thu Jul 07, 2005 10:06 am

Post 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"))
FloHimself
Enthusiast
Enthusiast
Posts: 229
Joined: Wed May 14, 2003 3:38 pm
Location: Lüneburg - Germany

Post by FloHimself »

My favorite numbers: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
Post Reply