Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-15-2003, 01:23 AM
Member
 
Join Date: Sep 2003
Posts: 95
Default Can SWFKit functions call each other?

If so how?

e.g. from Flash I want to call function A using ("ffish_run", "function A");

But then in SWFKit have function A call another function B.

So far it will work if the function B exists in the Initialize script, but I really want to know if I can create two new separate functions and have them call each other directly.

Cheers,

G.
Reply With Quote
  #2 (permalink)  
Old 10-15-2003, 03:54 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Can SWFKit functions call each other?

You can use the invoke method.

If function B is in script "script 1", in function A, you can do like this

function A()
{
...
invoke("script 1");
B();
}
Reply With Quote
  #3 (permalink)  
Old 10-16-2003, 04:50 AM
Member
 
Join Date: Sep 2003
Posts: 95
Default Re:Can SWFKit functions call each other?

;D

cool, thanks a lot for that I will try it out!

G.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:21 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.