0

I'm trying to control a movieClip using p2p netconnection. I understand that I can control properties of a movieClip --- such as

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

Can I also control a frame Action ? the following doen't work ---

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

obj.Event = score.gotoAndStop("green");
bobsmo
  • 11
  • 1

1 Answers1

0

It will work.

I suspect your "green" label.Recheck it again.

This works

_root.gotoAndStop(_currentframe+1);
Shankar Narayana Damodaran
  • 68,075
  • 43
  • 96
  • 126
  • I can't get it. Basically I'm trying to send a message to the second swf. I'm able to send properties like visibilty and .x .y position. But I can't send a frame action ? see the following case "NetGroup.SendTo.Notify": rover.x = event.info.message.x; rover.y = event.info.message.y; myFencer.fence.visible = event.info.message.visible; score.frameEvent = event.info.message.frameEvent; – bobsmo Jul 03 '13 at 06:57
  • `obj.frameEvent = score.gotoAndStop("green");` – bobsmo Jul 03 '13 at 07:11
  • @bobsmo, The second swf what you mean is the `same swf` right ?. What was the trace value of `event.info.message.FrameEvent` ? – Shankar Narayana Damodaran Jul 03 '13 at 07:19
  • (yes - the same swfs) i can't get a trace to display any event. here is what i have - On a button click send a message to the swf ` case "NetGroup.SendTo.Notify": rover.x = event.info.message.x; rover.y = event.info.message.y; myFencer.fence.visible = event.info.message.visible; score.frameEvent = event.info.message.frameEvent; ttrace.text = event.info.message.frameEvent.toString(); break;` – bobsmo Jul 03 '13 at 17:04
  • the trace doesn't display anything `function myClickredStart (e:MouseEvent):void{ obj.frameEvent = score.gotoAndStop("green"); score.gotoAndStop("red"); trace(score); trace(obj.frameEvent); greenStart.visible=false; redStart.visible=false; }` – bobsmo Jul 03 '13 at 17:05