Use "NetStream" in Flex 2

I use NetStream as:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="conn()" layout="absolute" frameRate="31"
cornerRadius="0">
<mx:Script>
<![CDATA[
import flash.net.*
import mx.controls.Alert;
public var nc:NetConnection
public var ns:NetStream;
private function conn():void{
nc=new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS,statusHa);
nc.connect("rtmp://192.168.0.119/Audio");
private function statusHa(err:NetStatusEvent):void{
Alert.show(err.info.code);
]]>
</mx:Script>
</mx:Application>
it always alert the message: NetConnection.Connect.Failed
the address rtmp://192.168.0.119/Audio can be connected by
flash use actionscript 2 .
@_@ why

Is there any one know why @_@

Similar Messages

  • Using RoboHelp with Flex

    Does anybody know how to use RoboHelp with Flex? I'm a Flex
    developer and am new to RoboHelp, and am trying it out to create
    some online help for my Flex application. I've searched, and also
    tried a couple of tutorials, but so far I haven't found anything
    about how to combine the two. Thanks.

    The issue is the calling of the help from Flex so I wonder if
    you might do better asking this question on the Flex forums?

  • 'Using ColdFusion with Flex – sample does not work

    Hi, I am having problems with Tom Jordahl's article on 'Using
    ColdFusion with Flex – Part 1: Creating and running a contact
    manager application' found on link '
    http://www.adobe.com/devnet/flex/articles/coldfusionflex_part1_02.html'
    I do not understand his instruction. In step 4, it states:
    "Copy the channel definition from the example Flex
    configuration files found in resources/config (default location:
    C:\fds2\resources\config\). "
    In that folder, I have the following files:
    data-management-config.xml, messaging-config.xml, proxy-config.xml,
    remoting-config.xml. So which file in this folder am I supposed to
    copy from. And where am I supposed to paste it to? Is it into
    WEB-INF/services-config.xml file ?
    When I ran the test,
    http://localhost:8700/samples/dataservice/cfcontact/contactmgr.mxml,
    I get the following errors:
    4 Errors found.
    Error /dataservice/cfcontact/contactmgr.mxml:31
    Definition samples.contact could not be found.
    30: import mx.rpc.events.*;
    31: import samples.contact.*;
    32:
    I am very new at Flex and trying hard to understand this sw.
    Can someone pse help. Thanks a million.

    What he means is to copy the channel section from the
    C:\fds2\resources\config\services-config.xml file:
    <!-- ColdFusion specific RTMP channel -->
    <channel-definition id="cf-dataservice-rtmp"
    class="mx.messaging.channels.RTMPChannel">
    <endpoint uri="rtmp://{server.name}:2048"
    class="flex.messaging.endpoints.RTMPEndpoint"/>
    <properties>
    <idle-timeout-minutes>20</idle-timeout-minutes>
    <serialization>
    <!-- This must be turned off for any CF channel -->
    <instantiate-types>false</instantiate-types>
    </serialization>
    </properties>
    </channel-definition>
    <!-- ColdFusion specific HTTP channel -->
    <channel-definition id="cf-polling-amf"
    class="mx.messaging.channels.AMFChannel">
    <endpoint
    uri="
    http://{server.name}:{server.port}/{context.root}/messagebroker/cfamfpolling"
    class="flex.messaging.endpoints.AMFEndpoint"/>
    <properties>
    <serialization>
    <!-- This must be turned off for any CF channel -->
    <instantiate-types>false</instantiate-types>
    </serialization>
    <polling-enabled>true</polling-enabled>
    <polling-interval-seconds>8</polling-interval-seconds>
    </properties>
    </channel-definition>
    To the file
    C:\fds2\jrun4\servers\default\samples\WEB-INF\flex\services-config.xml.
    The resources directory contains just templates for
    development, the samples
    directory is a fully-deployed flex app.
    Jorge Hernandez
    "watsonValu" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi, I am having problems with Tom Jordahl's article on
    'Using ColdFusion
    > with
    > Flex ? Part 1: Creating and running a contact manager
    application' found
    > on
    > link
    > '
    http://www.adobe.com/devnet/flex/articles/coldfusionflex_part1_02.html'
    > I do not understand his instruction. In step 4, it
    states:
    > "Copy the channel definition from the example Flex
    configuration files
    > found
    > in resources/config (default location:
    C:\fds2\resources\config\). "
    > In that folder, I have the following files:
    data-management-config.xml,
    > messaging-config.xml, proxy-config.xml,
    remoting-config.xml. So which file
    > in
    > this folder am I supposed to copy from. And where am I
    supposed to paste
    > it to?
    > Is it into WEB-INF/services-config.xml file ?
    > When I ran the test,
    >
    http://localhost:8700/samples/dataservice/cfcontact/contactmgr.mxml,
    I get
    > the
    > following errors:
    > 4 Errors found.
    > Error /dataservice/cfcontact/contactmgr.mxml:31
    > Definition samples.contact could not be found.
    > 30: import mx.rpc.events.*;
    > 31: import samples.contact.*;
    > 32:
    >
    > I am very new at Flex and trying hard to understand this
    sw. Can someone
    > pse
    > help. Thanks a million.
    >
    >

  • H264 on AIR for iOS using NetStream.appendBytes()

    Does anybody here know if Adobe has plans to support NetStream.appendBytes() for h264 video in future releases of AIR for iOS?
    If so, will hardware decoding for h264 video be supported (via StageVideo) when using NetStream.appendBytes() ?
    Any info would be greatly appreciated...

    Feature request for this issue: Feature#3844755 - [New_Feature_Requirement] NetStream.appendBytes() for H.264 (MP4) videos

  • Can I use IIS for flex portal development?

    I want to use IIS for flex portal development. As we can user
    jboss portal server to deploy flex portlets.
    Is it possible ?
    Thanks

    Hello,
    pulling 10-25 million rowsYou will never want to show that many records on a page or html based report, the page weight would be absolutely huge along with your network load (this would be the case in any web enviroment), even google which I will have to assume has many more records than you do only shows 10 records returned at a time.
    Results 1 - 10 of about 3,510,000,000 for htmlApplication Express can handle sql queries against that data, the question you really should be researching is what it takes to create queries that perform well against such a dataset
    http://forums.oracle.com/forums/search.jspa?threadID=&q=query+large+datasets&objID=c18
    Carl

  • How use Cookies with flex

    Hi,
    Can we use cookies in flex. If so, can any body give me the
    sample code for that.
    Thanks
    Satish KC.

    Rather than ordinary cookies, use Local Shared Object. It is
    much more powerful than standard cookies.
    I'll look for an example. What version of Flex are you using?
    Tracy

  • How use eclipse create Flex API ?

    How use eclipse create Flex API ?

    I'm pretty sure this isn't anything to do with Acrobat Forms. Perhaps there is a forum for Flex?

  • NetStream in Flex SDK

    HI
    I have a clinet and a server side WebCam applictions that is
    developted in Flex builder 3 and on top of Flash Media Server . in
    server side I have published a NetStream and in client side I have
    played a NetStream with same name
    the application works well and I can use my webcam
    I want to show to server side the total number of viwers
    I would like to get total number of subscribers that connect
    to a published live NetStream instance
    Thank you

    Hi Swapnil,
    1)Try Overlaying SDK to 2.0 like:
                     a)Download the AIR SDK 2.0 zip
                     b)and paste it at C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0 and
                     c)extract it.Check whether this SDK selected in Flex Compiler.
    2) Make sure that you have changed the AIR version number in descripter file (-app.xml) for example <application xmlns="http://ns.adobe.com/air/application/1.5"> here have to change 1.5 to 2.0.
    3) In the Flex Compiler panel check that which Flex SDK (3.5) has been selected. Might it different from defaultly selected.
    In Flex Builder you can check in two ways :
              a)Window>Preferences>Flex>Installed SDKs(Default)>Check SDK selected.
              b)Select Project folder in Navigator Panel and Mouse Right click >properties>Flex Compiler>Check SDK selected.
    4)Make sure that the opening files have accessibility with this function.
    -Vamshi

  • Is there a way to use Stage3D in Flex Mobile projects on iPad?

    When I create a project of type "Action Script Mobile Project" the Stage3D works on iPad, Android device and in the AIR desktop simulator.
    But when I create a project of type "Flex Mobile Project" it works in the desktop simulator and on Android device but does not work on iPad.
    When running on iPad the stage.stage3Ds[] collection is empty.
    Is it a sort of limitation made by intent? Or a bug? Or maybe I am doing something wrong?
    What I actually need is an ability to render offscreen bitmaps with GPU in an application that uses Spark UI. This is why I need Flex Mobile project.
    My configuration is the following:
    iPad with retina display
    Sony Xperia Tablet Z
    AIR SDK 3.7 (and I have also tried AIR SDK 3.8 today)

    Hi,
    Check this thread, discussing the similar issue
    Re: What video format that is compatible with Muse

  • Local video file (.mp4) file not play in MAC OS using netstream (NetStream.Play.StreamNotFound)

    I have developed adobe air application using adobe flash builder 4.6 for Windows and Mac OS. Application allow user to download movie (.mp4) file in his system at specific location for play  without live streaming. File downloading correctly in both OS and also file playing from download location in Window application correctly. but when start playing file Mac OS application not start playing.
    When start playing in mac OS, NetStatusEvent.Net_Status event return "NetStream.Play.StreamNotFound" event info code. I have found one solution for mac OS is use colon notation instead of slash notation. I have tried it but it also not working.
    Code:
    _nc = new NetConnection();
    _nc.addEventListener(NetStatusEvent.Net_Status, connectionHandler);
    _nc.connect(null);
    private function connectionHandler(event:NetStatusEvent):void
         trace("Connection to server: " + event.info.code);
         /// Get "NetStream.Play.StreamNotFound" code in mac OS.    
    slash notation path: /Users/mayur/Downloads/myvideo.mp4
    Colon notation path: I have tried following colon notation path
    1) :Users:mayur:Downloads:myvideo.mp4
    2) Users:mayur:Downloads:myvideo.mp4
    3) Macintosh HD:Users:mayur:Downloads:myvideo.mp4 (Macintosh HD - Drive name)
    Please help me to solve this issue.

    Finally I found a solution...
    The problem is that AIR on Android stores the application data in the protected directory /data/... which is not accessible by StageWebView (or any browser app).
    So you have to copy the video file you want to play to a temporary pubic directory on the sd-card for example and use this in StageWebView.
    You also have to create a temporary html-page with the video-tag and load this page in StageWebView (not the string) because external resources are only loaded in StageWebView when using an URL.
    On iOS the application storage directory is readable for StageWebView so you don't have to do this step.
    Hope this helps

  • How to publish a local audio stream using NetStream?

    As all we know, if we want to publish a stream to FMS or Red5, we can code like below:
    var nc:NetConnection = new NetConnection();
    nc.connect("rtmp://localhost/myApp");
    var ns:NetStream = new NetStream(nc);
    ns.attachAudio(Microphone);
    ns.publish("audio", "live");
    my problem is that we can pass an instance of Microphone to ns.attachAudio() only, if I want to attach a local audio stream,like playing a local sample.flv file to become a audio stream, how can I do?
    this issue has been asked 7 years ago, see the post. but i can not find any solutions.
    any tips will be appreciated. thx in advance.

    how to watch my local network stream using java,help!http://www.ethereal.com - a third party program (but not using java)

  • How to use https inside flex with 2-way authentication

    I've got a Flex app which provides a front-end for doing  basic CRUD db operations. The app is served up from a Tomcat/Blaze server using 2-way authentication and uses Java objects to do the server-side db work. Serving the app works fine. The problem arises when the data components in the app try to call back to the server to pull data from the db. The HttpService template needs to be https://...   but the call cannot complete because Flex does not provide a certificate to the server as the browser does.
    Using http://... works fine but then the db data is sent in the clear (which is very bad).
    What is the standard way to solve this problem? Is there a way to get Flex to use the same cert that the browser provided?
    Thanks for any assistance!
    [ RHEL5, Apache Tomcat 5.5.23, JDK 1.5, IE/Firefox browsers]

    Nitin,
    Kindly go through the below links ...
    http://help.sap.com/saphelp_nw04/helpdata/en/1f/7e2441509fa831e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/frameset.htm
    Also, make a search on the SDN as this question has been answered many a times on the forum.
    Regards,
    Neetesh

  • Using boundingBox in flash CS3 to use it in Flex

    I am stuck with my Banner design in Flash CS3. I some
    animation which is coming outsied of my scene to the scene. But
    whenever I am using this swf in flex it is also showing the outside
    of the screen material. I know I have to use boundinBox. I am doing
    it But still it is not working. Is there any to help me out.

    Yes...It worked .Thanks a lot for your help.

  • How to use caching in flex

    Hi
    i'm new to flex.I want to use caching in the flex application but i couldnt find any details regrading that.In my application will be getting values from a xml feed but on holidays there wont be any change in the values so instead of ping the server i would rather cache it and then display the values.Can u help me on this??
    Thanks,
    Magesh

    Hi Magesh,
    You can use shared objects (flash cookies) to save persistent data on a user's computer. This local storage is not garanted! The user can disable it and can also limit the amount of data that can be stored.
    I think you still need to query the server to check if the data has been updated. If so the app can receive remote updated data otherwise it can use local data.
    hth,
    Jerome.

  • Cannot pass Value Using getURL() in Flex 2.0

    I have pasted a piece of code to pass value using query
    string,I am sure there wouldn't be any problem with code.But I get
    error calling getURL() method.
    The error I am getting on compilation is,
    Call to a possibly undefined method getURL.
    4: {
    5: getURL("QueryStringSample.mxml");
    6: }
    I also tried giving entire url as "
    http://localhost:8080/Test/QueryStringSample.mxml",
    since I am running the application using local Tomcat server.both
    the mxml apps,That is, calling.mxml(PassParam.mxml) and
    called.mxml(QueryStringSample.mxml) are in same package/Folder
    (Test).
    what is the cause for this probblem .
    my code..
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    >
    <mx:Script>
    function passVal():void
    getURL("QueryStringSample.mxml");
    </mx:Script>
    <mx:VBox>
    <mx:HBox>
    <mx:Label text="Name: " />
    <mx:TextInput id="nameInput" />
    </mx:HBox>
    <mx:HBox>
    <mx:Label text="Hometown: " />
    <mx:TextInput id="homeTownInput" />
    </mx:HBox>
    <mx:Button label="pass param" click="passVal();" />
    </mx:VBox>
    </mx:Application>
    Thanks in Advance.

    Now that the Flex 2.0 forums are all set up, it is time to
    start using them for 2.0 questions. So in the future, don't post
    2.0 questions here.
    In the meantime, getURL has been changed to navigateToURL().
    See the docs for details.
    Also, I think you are mixing Flex 1.5 and 2.0. 2.0 does not
    use a server, and you do not call mxml file directly. Instead you
    compile the swf with FlexBuilder or the command line compiler, and
    call the html wrapper.
    Tracy

Maybe you are looking for

  • Boot Camp Mac Book Pro Can Boot to Win 8.1 but not Mavericks

    My Mac Book Pro Mavericks partition is damaged and I cannot boot to it, I can boot to Windows 8.1 without any issues.    Disk repair did not fix the problem, any suggestions?   I also tried using Migration Assistant to from my iMac to the Mac Book pr

  • How do I get to Facebook edit options using Safari?

    I am trying to reach the Edit Options on my Facebook page using Safari on my MacBook Pro. When I get to the bottom, it says "There are no more posts to show right now", but I don't see the Edit Options. Do I have to use a different browser?

  • Network host busy on USB connected printer

    Appreciate any advice or tips. I have a HP Photosmart C4200 plugged via USB to iMac running 10.6.4, prints fine, and print sharing is on. From my MacBook Pro running 10.5.8 I can connect to the printer using hostname-iMac.local. No documents (Word, n

  • PDF render operation exception

    Dear Colleagues, I had a table on PDF(interactive form) if i use cardinality 1..n i am getting some dump after execution of wda. when i investigate by debuging the PDF Function module i found the follwind exeception. i don't have any interger fields

  • New to Dreamweaver - need new-image-on-refresh code

    Hi everyone, I hope this is the appropriate place to post this request, if not, please redirect me. Thanks. I have extremely limited knowledge using Dreamweaver and coding (ie: I know basic html), but I am attempting to build a page where the image I