2013-07-03 36 views
0

我试图用p2p网络连接控制影片剪辑。我知道我可以控制一个movieclip的属性---如p2p RTMFP控制影片剪辑帧动作

case "NetGroup.SendTo.Notify": 
rover.x = event.info.message.x; 
rover.y = event.info.message.y; 
myFencer.fence.visible = event.info.message.visible; 

我也可以控制一个帧的Action吗?以下do nott ---

case "NetGroup.SendTo.Notify": 
score.FrameEvent = event.info.message.FrameEvent; 

obj.Event = score.gotoAndStop("green"); 

回答

0

它会工作。

我怀疑你的“绿色”标签,再次检查一遍。

这工作

_root.gotoAndStop(_currentframe+1); 
+0

我无法得到它。基本上我试图发送消息给第二个瑞士法郎。我可以发送可见性和.x .y位置等属性。但我无法发送帧动作?请参阅以下案例“NetGroup.SendTo.Notify”: rover.x = event.info.message.x; rover.y = event.info.message.y; \t \t \t myFencer.fence.visible = event.info.message.visible; \t \t \t score.frameEvent = event.info.message.frameEvent; – bobsmo

+0

'obj.frameEvent = score.gotoAndStop(“green”);' – bobsmo

+0

@bobsmo,第二个swf你的意思是同样的swf的权利? “event.info.message.FrameEvent”的跟踪值是什么? –