Help with unloading movie

Ask a Question related to Macromedia Flash Flashcom, Design and Development.

  1. #1

    Default Help with unloading movie

    So here's the situation.
    I'm trying to create a flash movie that has a two buttons and a loader
    component.
    One button will pull a video from one streaming source and load it using the
    loader, the other will pull from another streaming source and load it using the
    same loader.

    When I click button 1 the stream loads up fine and in my FMS Admin console, I
    see the number of clients increase by 1. When I click button 2, the steam
    loads up and the total client increase again.
    So basically, everytime I click the button, the number of clients increases
    even if I load the same stream over and over again. This will continue until I
    close the movie or the server limit is reached (I am currently using the
    development version of FMS).

    My code is pretty simple.
    It's as follows:
    btn1.onPress = function() {
    loader1.unload();
    loader1.load("url1");
    }
    btn2.onPress = function() {
    loader1.unload();
    loader1.load("url2");
    }

    The issue here is that I can't get it to properly unload the movie so the
    connection with FMS remains. I've tried making button 1 load the streame and
    button 2 unload the stream, but no matter how much I press button 2, it would
    not unload and the stream will remain there running.

    If anyone has any suggestions, it would be much appreciated.
    Thanks.

    99forever Guest

  2. Similar Questions and Discussions

    1. Unloading a streaming movie
      Hello, I'm building a media player that can play .flv streaming files as well as ..swf files. I'm looking for a way to unload a .flv streaming...
    2. Unloading web service
      Hello! How can I unload my web service from aspnet_wp.exe programmatically? The OS is Windows 2003 server, .NET v1.1.4322. Thanks in advance! ...
    3. Unloading a loaded movie
      Hi, I'm sure this is a pretty simple question, but I'm new to all this I have a button that when pressed loads an external swf into my movie, when...
    4. Question regarding controlling and/or loading and unloading external movie clips based on objects _y position.. please HELP!
      Here is the situation... Look here http://www.worthyconcepts.com/Version2/Bars1.html I am loading multiple external movies (right now only...
    5. HPL unloading error
      Dear all, OS: Solaris 2.7 Memory : 2048MB CPU : 4 Engine Version : IDS 7.31.UC2 I'm using HPL to unload my database into the flat files...
  3. #2

    Default Re: Help with unloading movie

    Are you using NetConnection API inside loader1.load("uri1") ?

    In that case it would be required to explicitly close the Netconnection using NetConnection.close();


    fmslove Guest

  4. #3

    Default Re: Help with unloading movie

    I placed a loader component on the stage and gave it an instance name of
    "loader1" and set autoLoad to false.
    In the actionscript window, I added the code in my first post.
    I'm not sure if the load function uses the NetConnectionAPI or not. The load
    command is a predefined method of loader.

    I've tried loading the external swf streams into a MC using NetCommand with no
    luck so far.
    If any one has any suggestions on the best way to do this, I'm flexible in the
    approach to take as long as it works.
    All I want to do is load SWF files which are just containers for rmtp streams
    and I want to be able to switch between different SWF/streams.
    Thanks.

    99forever Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139