Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-24-2007, 06:19 PM
Junior Member
 
Join Date: Mar 2007
Posts: 9
Default Pass AS3 MovieClip reffrence to SWFKIT?

im trying to pass a reffrence to a movieclip within my movie to swfkit so that other movieclips can obtain this reffrence from making a call to swfkit, is this possible? oh and im working in AS3.
Reply With Quote
  #2 (permalink)  
Old 05-25-2007, 02:17 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Pass AS3 MovieClip reffrence to SWFKIT?

No, you can only pass the name of the movieclip. Could you please give us a sample? We will try to find a solution.
Reply With Quote
  #3 (permalink)  
Old 05-25-2007, 03:40 AM
Junior Member
 
Join Date: Mar 2007
Posts: 9
Default Re:Pass AS3 MovieClip reffrence to SWFKIT?

i think i found a way to do what i want with just pasing ints but i keep getting this error saying
ReferenceError: Error #1065: Variable ExternalInterface is not defined.

Code:
import SWFKit.*;

public class MrOperator extends MovieClip{
public var game:DepthBg;

public function MrOperator(g:DepthBg){
game = g;
ExternalInterface.addCallback("makeCircle", makeCircle);
}

public function makeCircle(x,y):void{
var circle:CircleParticle = new CircleParticle(x,y,140,true);
game.passParticle(circle);
}
why wont it work?
Reply With Quote
  #4 (permalink)  
Old 05-25-2007, 03:57 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Pass AS3 MovieClip reffrence to SWFKIT?

You may need to add the following line of code
Code:
import flash.external.*;
Reply With Quote
  #5 (permalink)  
Old 05-25-2007, 04:13 AM
Junior Member
 
Join Date: Mar 2007
Posts: 9
Default Re:Pass AS3 MovieClip reffrence to SWFKIT?

thank you.
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 04:20 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.