Skip to main content
Known Participant
August 4, 2013
Question

I really need your help to duplicate a function

  • August 4, 2013
  • 1 reply
  • 1264 views

Hi all im runing FMS 4 on windows server 2008

so im trying to duplicate a function called

application.onAppStart = function (){

code goes here

}

into the main.asc

so i would like to know how to duplicated it, im new into flash and action script

Feel free to ask anything A big S.O.S i need to solve this

This topic has been closed for replies.

1 reply

yaboutAuthor
Known Participant
August 4, 2013

40 views and no reply

Petro_O__Bochan
Inspiring
August 4, 2013

Hello,

1. You attached more tags to this post than the actual question.

2. Show us some basic code you are trying to duplicate.

yaboutAuthor
Known Participant
August 4, 2013

Sorry for that, so here's the code:

application.onAppStart = function (){

     nc = new NetConnection();

     myStream = Stream.get("localstream");

     nc.onStatus = function(info){

               if(info.code == "NetConnection.Connect.Success" ){

                         myStream.play("remotestream", -1, -1, true, nc);

               }

     }

     nc.connect("rtmp://remoteip:1935/remoteapp");

}

so i would like to use it more then once in the file main.asc

Ty