• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

I really need your help to duplicate a function

New Here ,
Aug 03, 2013 Aug 03, 2013

Copy link to clipboard

Copied

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

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2013 Aug 04, 2013

Copy link to clipboard

Copied

40 views and no reply

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 04, 2013 Aug 04, 2013

Copy link to clipboard

Copied

Hello,

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

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2013 Aug 04, 2013

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2013 Aug 04, 2013

Copy link to clipboard

Copied

up up up

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2013 Aug 04, 2013

Copy link to clipboard

Copied

Ok i got it now it works so how can i parse PageUrl and SwfUrl??

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 05, 2013 Aug 05, 2013

Copy link to clipboard

Copied

None have an Answer

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 07, 2013 Aug 07, 2013

Copy link to clipboard

Copied

LATEST

??

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines