Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-04-2003, 01:44 PM
Junior Member
 
Join Date: Oct 2003
Posts: 15
Default Communication script -> Flash

Hi,

just a very simple question I can't resolve:
how can I launch functions writted in ActionScript in Flash environment from swfkit script?
I have looked the doc, and I can't find... .
Isn't there a FlashPlayer.executeFunction(functionName,Arguments ) or something like that?


thanks by advance.
P.
PS: for my question of this morning, I succeed to do what I wanted by using regions
Reply With Quote
  #2 (permalink)  
Old 11-04-2003, 02:01 PM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default Re:Communication script -> Flash

Put the call for the functions in a frame of your flashmovie.
Call the actions of that frame from within SWFkit using the
FlashPlayer.targetCallLabel (target, label) command.

Code:
FlashPlayer.targetCallLabel ("_root","updatefunction")
For the arguments you could pass them with
FlashPlayer. setVariable (name, value)




Reply With Quote
  #3 (permalink)  
Old 11-04-2003, 02:30 PM
Junior Member
 
Join Date: Oct 2003
Posts: 15
Default Re:Communication script -> Flash

thanks, it works perfecltly

P
Reply With Quote
  #4 (permalink)  
Old 08-06-2004, 03:53 AM
RJS RJS is offline
Member
 
Join Date: Sep 2003
Posts: 56
Default Re:Communication script -> Flash

Seems to me that setting up a "watch" object on frame 1, with a callback to execute the desired actionscript function would be a better way?

I've set up the callback with a switch statement which does different functions, according to the value assigned to the watched property (available to the callback function as the "newval" argument)

Downside is the Object.watch method is only avaiable on Flash 6+. Don't know of any other potential problems

Rob
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:40 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.