FMS causes error 1009 in OSMF player

Hi,
I have written a program to publish the audio and video data to the FMS. I am publishing the video data to FMS in live mode and trying to play back via OSMF player.  When i start publishing video data in the livepkgr application folder of FMS files like .bootstrap, .control, .meta are getting created. But when i try to playback via OSMFplayer i will get error 1009 and one intersting thing what i have observed is after 7 minutes this error won't come and OSMF player starts playing properly. Can you please give the solution for error 1009 which comes only for first 7 minutes?

Amit,
I tried to playback my file as you suggested
1. I tried to playback the file before publishing it. Player gave 2032 errror which was expected.
2. I started publishing the my file then the player started saying "stream not found null" for 9-10 minutes.
3. I was still publishing the video content. After 9-10 minutes the player started playing the contet that i was publishing.
4. Same thing was happening with OSMF player also.
One more thing is once the player starts playing the video content for a stream name, then the player never gives any error even i stop and start the publishing the video content.
For Ex: I pubished video with stream name "rtmp_video_1". Above steps 1,2 and 3 happened. Then i stopped publishing. After some 2-3 minutes again i started publishing with same stream name  "rtmp_video_1". The player didn't give any error and started playing immediately.
What i am thinking is that, FMS is taking some time (9-10 minutes) to make a stream available for video players to play. I have read some where that, when a player requests for a partucular stream with its stream name, the FMS does stream name to index conversion. When this conversion fails its sends error message to the player and player throws the error messages at the user. I don't know what is going wrong. Is something wrong with the way in which  i am publishing the video or something is wrong with the FMS? Please let me know.
Thanks and Regards,
Vishwanath

Similar Messages

  • Chart causing error 1009 when enabling compatibility mode in Flash Builder 4

    Hello.
    I'm trying to use the chart components in Flash Builder 4. I'm using Flex SDK 4, but had to turn on the "Flex 3 compatibility mode" for some off-topic reasons.
    I simply created a new application and copied the code from the DateTimeAxis class example: http://www.codigoactionscript.org/langref/as3/mx/charts/DateTimeAxis.html#includeExamplesS ummary
    When running the example, the following error is reported (sorry, it is in italian: it's simply the "null object" error):
    TypeError: Error #1009: Impossibile accedere a una proprietà o a un metodo di un riferimento oggetto null.
    at mx.charts.chartClasses::CartesianChart/updateMultipleAxesStyles()[E:\dev\4.0.0\frameworks \projects\datavisualization\src\mx\charts\chartClasses\CartesianChart.as:2598]
    at mx.charts.chartClasses::CartesianChart/commitProperties()[E:\dev\4.0.0\frameworks\project s\datavisualization\src\mx\charts\chartClasses\CartesianChart.as:1360]
    at mx.core::UIComponent/validateProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:7772]
    at mx.managers::LayoutManager/validateProperties()[E:\dev\4.0.0\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:572]
    at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:700]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1072]
    Is there a solution to this bug? We really need to use charts AND keep the Flex 3 compatibility mode.

    I use SDK 4.1 but I also get the error: (Flashbuilder 4.0.1 in Flex 3 compatibility mode)
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at mx.charts.chartClasses::CartesianChart/updateMultipleAxesStyles()[E:\dev\4.0.0\frameworks \projects\datavisualization\src\mx\charts\chartClasses\CartesianChart.as:2598]
        at mx.charts.chartClasses::CartesianChart/commitProperties()[E:\dev\4.0.0\frameworks\project s\datavisualization\src\mx\charts\chartClasses\CartesianChart.as:1360]
        at mx.core::UIComponent/validateProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:7772]
        at mx.managers::LayoutManager/validateProperties()[E:\dev\4.0.0\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:572]
        at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:700]
        at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1072]
    So I guess it is not solved....
    regards,

  • CPlibrary.js causing error in SCORM Cloud Player

    I have my course posted on SCORM Cloud, and when it launches, the slides take a long time to load between slides, and some of the elements on the slide don't load. SCORM Cloud customer service looked at the logs and found that the module is having a difficult time finding the elements in the CPlibrary.js file.
    http://support.scorm.com/attachments/token/2sli5zgurdgbkov/?name=Screen+Shot+2013-06-12+at +5.12.27+PM.png
    This is a module that was created by someone else and then published by me, so the elements in the library were not added by me or created on my machine. Does that make a difference?
    It runs fine when I preview in the browser from Captivate. The problem is just when it is published and posted on SCORM Cloud.
    Thanks for any help you can offer.

    That is correct, at least in my case. Keep in mind, even though our two issues are similar, the solution could be vastly different.
    It may very well be the LMS. I've had to go up against an LMS provider before in situations like this and it's not an easy task. The last thing they want to do is admit it's "their fault."
    I'd suggest recreating the slide and testing on SCORM Cloud. If your developer doesn't get any errors on there, then it may very well be the LMS. All LMS' have different settings, which is both frustrating and confusing. Just trying to come up with a course that fully works on a given LMS can be a job on its own.

  • OSMF Player Error: URL missing from Media tag - HTTP Live

    When I try to play an HTTP Live Stream using OSMF Player, I get "URL missing from Media tag" error.
    I installed Flash MS4.0 with Apache2.2.
    My live manifest file (f4m) is below.
    http://localhost/live/events/livepkgr/events/_definst_/liveevent.f4m
    <manifest>
    <id> livepkgr/events/_definst_/liveevent </id>
    <mimeType> </mimeType>
    <streamType> live </streamType>
    <duration> 0 </duration>
    <media streamId="livestream1" bitrate="100">
    <metadata> </metadata>
    </media>
    <media streamId="livestream2" bitrate="200">
    <metadata> </metadata>
    </media>
    <media streamId="livestream3" bitrate="350">
    <metadata> </metadata>
    </media>
    <bootstrapInfo profile="named" url="../../../../streams/livepkgr/streams/_definst_/livestream%i1/livestream%i1.bootstrap" id="bootstrap2386"></bootstrapInfo>
    <media streamId="livestream%i1" url="../../../../streams/livepkgr/streams/_definst_/livestream%i1/livestream%i1" bootstrapInfoId="bootstrap2386">
    <metadata>
    AgAKb25NZXRhRGF0YQgAAAAAAAhkdXJhdGlvbgAAAAAAAAAAAAAMYXVkaW9jb2RlY2lkAgAEbXA0YQAFd2lkdGgAAA AAAAAAAAAABmhlaWdodAAAAAAAAAAAAAAMdmlkZW9jb2RlY2lkAgAESDI2NAAKYXZjcHJvZmlsZQBAUIAAAAAAAAAI YXZjbGV2ZWwAQD4AAAAAAAAABmFhY2FvdAAAAAAAAAAAAAAPYXVkaW9zYW1wbGVyYXRlAEDfQAAAAAAAAA1hdWRpb2 NoYW5uZWxzAEAAAAAAAAAAAA52aWRlb2ZyYW1lcmF0ZQD/+AAAAAAAAAAJdHJhY2tpbmZvCgAAAAIDAAZsZW5ndGgA AAAAAAAAAAAACXRpbWVzY2FsZQBAj0AAAAAAAAAIbGFuZ3VhZ2UCAANlbmcAAAkDAAZsZW5ndGgAAAAAAAAAAAAACX RpbWVzY2FsZQBAj0AAAAAAAAAIbGFuZ3VhZ2UCAANlbmcAAAkADXNtcHRlVGltZUluZm8DAAtzbXB0ZU9mZnNldAAA AAAAAAAAAAAACQAHY3VzdGRlZgoAAAAAAAAJ
    </metadata>
    </media>
    <bootstrapInfo profile="named" url="../../../../streams/livepkgr/streams/_definst_/livestream%i2/livestream%i2.bootstrap" id="bootstrap6801"></bootstrapInfo>
    <media streamId="livestream%i2" url="../../../../streams/livepkgr/streams/_definst_/livestream%i2/livestream%i2" bootstrapInfoId="bootstrap6801">
    <metadata>
    AgAKb25NZXRhRGF0YQgAAAAAAAhkdXJhdGlvbgAAAAAAAAAAAAAMYXVkaW9jb2RlY2lkAgAEbXA0YQAFd2lkdGgAAA AAAAAAAAAABmhlaWdodAAAAAAAAAAAAAAMdmlkZW9jb2RlY2lkAgAESDI2NAAKYXZjcHJvZmlsZQBAUIAAAAAAAAAI YXZjbGV2ZWwAQD4AAAAAAAAABmFhY2FvdAAAAAAAAAAAAAAPYXVkaW9zYW1wbGVyYXRlAEDfQAAAAAAAAA1hdWRpb2 NoYW5uZWxzAEAAAAAAAAAAAA52aWRlb2ZyYW1lcmF0ZQD/+AAAAAAAAAAJdHJhY2tpbmZvCgAAAAIDAAZsZW5ndGgA AAAAAAAAAAAACXRpbWVzY2FsZQBAj0AAAAAAAAAIbGFuZ3VhZ2UCAANlbmcAAAkDAAZsZW5ndGgAAAAAAAAAAAAACX RpbWVzY2FsZQBAj0AAAAAAAAAIbGFuZ3VhZ2UCAANlbmcAAAkADXNtcHRlVGltZUluZm8DAAtzbXB0ZU9mZnNldAAA AAAAAAAAAAAACQAHY3VzdGRlZgoAAAAAAAAJ
    </metadata>
    </media>
    <bootstrapInfo profile="named" url="../../../../streams/livepkgr/streams/_definst_/livestream%i3/livestream%i3.bootstrap" id="bootstrap1"> </bootstrapInfo>
    <media streamId="livestream%i3" url="../../../../streams/livepkgr/streams/_definst_/livestream%i3/livestream%i3" bootstrapInfoId="bootstrap1">
    <metadata>
    AgAKb25NZXRhRGF0YQgAAAAAAAhkdXJhdGlvbgAAAAAAAAAAAAAMYXVkaW9jb2RlY2lkAgAEbXA0YQAFd2lkdGgAAA AAAAAAAAAABmhlaWdodAAAAAAAAAAAAAAMdmlkZW9jb2RlY2lkAgAESDI2NAAKYXZjcHJvZmlsZQBAUIAAAAAAAAAI YXZjbGV2ZWwAQD4AAAAAAAAABmFhY2FvdAAAAAAAAAAAAAAPYXVkaW9zYW1wbGVyYXRlAEDfQAAAAAAAAA1hdWRpb2 NoYW5uZWxzAEAAAAAAAAAAAA52aWRlb2ZyYW1lcmF0ZQD/+AAAAAAAAAAJdHJhY2tpbmZvCgAAAAIDAAZsZW5ndGgA AAAAAAAAAAAACXRpbWVzY2FsZQBAj0AAAAAAAAAIbGFuZ3VhZ2UCAANlbmcAAAkDAAZsZW5ndGgAAAAAAAAAAAAACX RpbWVzY2FsZQBAj0AAAAAAAAAIbGFuZ3VhZ2UCAANlbmcAAAkADXNtcHRlVGltZUluZm8DAAtzbXB0ZU9mZnNldAAA AAAAAAAAAAAACQAHY3VzdGRlZgoAAAAAAAAJ
    </metadata>
    </media>
    </manifest>
    It seems to me that it is a configuration issue, but I have no clue.
    I compared above manifest with a sample manifest that I found on Adobe's site, the attributes are same but the structure is not. Maybe that is causing OSMF to fail.
    Thanks for any suggestion!

    I am using other encoder than FMLE. I am publishing 3 streams.
    rtmp://x.y.z.w/livepkgr
    H264 BL3.0 60kbps, 160kbps and 310kbps & AAC-LC Stereo 32kHz 40kbps & Fragment duration 4 sec
    >>> matches C:\Program Files\Adobe\Flash Media Server 4\applications\livepkgr\events\_definst_\liveevent Event.xml and Manifest.xml files.
    <FragmentDuration>4000</FragmentDuration>
    <media streamId="livestream1" bitrate="100" />
    <media streamId="livestream2" bitrate="200" />
    <media streamId="livestream3" bitrate="350" />
    (e.g. 60kbps video + 40kbps audio for the 1st stream)
    I have Common output parameters > Stream Name configuration on my Live Transcoder and I write the following:
    livestream%i?adbe-live-event=liveevent&adbe-http-streaming-ver=1.0
    Then Admin Console > View Apps > Live Log includes the following:
    Stream name is: livestream%i1 and live event is: liveevent
    Stream name is: livestream%i2 and live event is: liveevent
    Stream name is: livestream%i3 and live event is: liveevent
    As you say, it seems %i above causes the problem, but how to fix it?
    My f4m includes the bitrates:
    <id> livepkgr/events/_definst_/liveevent </id>
    <mimeType> </mimeType>
    <streamType> live </streamType>
    <duration> 0 </duration>
    <media streamId="livestream1" bitrate="100">
    <metadata> </metadata>
    </media>
    <media streamId="livestream2" bitrate="200">
    <metadata> </metadata>
    </media>
    <media streamId="livestream3" bitrate="350">
    <metadata> </metadata>
    </media>
    Thanks!

  • Component on Scene 2 causes TypeError: Error #1009??

    This one should be easy to explain because I'm sure a lot of
    you have noticed it. Just create a Scene 2 and put any component
    (EDIT: Try FLVPlayback since removing and re-adding the other
    components seemed to work for me) on the stage and compile. You'll
    get this error:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at
    Untitled_fla::MainTimeline/__setProp___id1__Scene2_Layer1_0()
    at Untitled_fla::MainTimeline/frame1()
    where id1 is the instance name if you assigned one.
    My original project worked fine in CS3 (actionscript 3, Flash
    9 project) but after upgrading to CS4 I got this error when
    compiling. I thought it had to do with not having a
    addEventListener(Event.ADDED_TO_STAGE, onAddedToStage); but once I
    narrowed it down to the issue with Scenes and Components I figured
    it must not.
    What is causing this and how do I fix it?
    Thank you!

    I'm on a plain 10.0 but I don't think it is a Flash issue as
    you are trying to do something that is not possible. I jumped
    directly from 8 to CS4 so I cannot tell about how CS3 handles
    things, but you will not be able to access a component from within
    a scene that does not contain the instance.
    Or will you also get the error on a plain Scene 1 and Scene 2
    containing only a simple button component? As said, I don't.

  • Error   1009 and I don't know what to do exactly, plz help me

    hi
    I wish that you could help me
    I am a beginner in actionscript 3.0, and I have a main swf file, with a menu and several buttons, when I click on each button, a new swf should be loaded, and the menu is resized and goes to the top left of the page, and if I click on the menu, it should come back..
    the problem is that when I click on the first button, everything works well, but when I click on another button, I get this error:
    TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul.
        at s_fla::MainTimeline/s_fla::__setProp___id0__Scene1_texte_2()
        at s_fla::MainTimeline/s_fla::frame2()
    I understood that the problem is due to the file which is displayed before it has been loaded.
    I also found that I have to use the function Event.ADDED_TO_STAGE, but I don't know where to put it??
    could you help me please?
    here is my code:
    function size(e:MouseEvent):void{
        menu_mc.gotoAndPlay(2);
        menu_mc.buttonMode = true;
        menui_mc.addEventListener(MouseEvent.CLICK, showmenu);
        menu_mc.button01_btn.removeEventListener(MouseEvent.CLICK, size);
        menu_mc.button02_btn.removeEventListener(MouseEvent.CLICK, size);
       menu_mc.button03_btn.removeEventListener(MouseEvent.CLICK, size);
    addChild (cliploader);
    function size(e:MouseEvent):void{
        menu_anatomie_mc.gotoAndPlay(13);
        menu_mc.removeEventListener(MouseEvent.CLICK, showmenu);
        menu_mc.button01_btn.addEventListener(MouseEvent.CLICK, size);
        menu_mc.button02_btn.addEventListener(MouseEvent.CLICK, size);
        menu_mc.button03_btn.addEventListener(MouseEvent.CLICK, size);
        removeChild (cliploader);
    menu_mc.button01_btn.addEventListener(MouseEvent.CLICK, loadpage);
    menu_mc.button02_btn.addEventListener(MouseEvent.CLICK, loadpage);
    menu_mc.button03_btn.addEventListener(MouseEvent.CLICK, loadpage);
    menu_mc.button01_btn.page = "file01.swf";
    menu_mc.button02_btn.page = "file02.swf";
    menu_mc.button03_btn.page = "file03.swf";
    function loadpage(e:MouseEvent):void{
        cliploader.myldr.source = e.currentTarget.page;
    please tell me what to do exactly
    P.S: cliploader is a UI loader which is present on the scene
    in my swf files, I have flvplayback which loads a flv files, and I think this is the source of the problem, because I have tried the same thing with a simple swf file which maybe loads quickly, and I didn't get this error
    thank you in advance

    thanks
    I think that the error is in the file that I want to load, in this file I have a flvplayback that I named myplayer, which is in the third frame, and because the video doesn't stop even if I move to another frame, I had to add this code in the third frame
    next_btn.visible = true;
    prev_btn.visible = true;
    myplayer.addEventListener(Event.REMOVED_FROM_STAGE, stopPlay);
    function stopPlay(e:Event)
    myplayer.stop();
    myplayer.stop(); this is line 7 on frame 3
    when I publish this file, it works
    but when I try to play it from the menu in the main swf file I get the error, how can I fix it please?
    can I make this manually, or I'll have the same problem?
    as I said, I tried to load different swf files from the main menu and I didn't have this problem (because there were no video players), so I think the problem is caused by the video player?
    thank you

  • ActionScript TypeError: Error #1009?

    Okay, so I was on this website earlier, www.peterdavid.net and tried to view a video that Vevo was hosting directly on the site's homepage, when it loaded up till about 56% an ActionScript error came up saying basicallly something like:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at com.vevo.mx::MenuScreenContainer/setModelInfo()
        at EmbeddedPlayer/bootstrapCompleteHandler()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at org.swizframework::Swiz$/dispatchEvent()
        at com.vevo.controller::BootstrapController/checkAsyncCalls()
        at com.vevo.controller::BootstrapController/youTubeReadyHandler()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at org.swizframework::Swiz$/dispatchEvent()
        at EmbeddedPlayer/playerReadyHandler()
        at EmbeddedPlayer/__corePlayer_playerReady()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.core::UIComponent/dispatchEvent()
        at com.vevo.view.controls::CorePlayer/playerReadyHandler()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.core::UIComponent/dispatchEvent()
        at com.vevo.view.controls::AS3YouTubePlayer/onPlayerReady()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at com.google.youtube.application::SwfProxy/onExternalEvent()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at com.google.youtube.model::YouTubeEnvironment/broadcastExternal()
        at com.google.youtube.application::VideoApplication/build()
        at com.google.youtube.application::Application/onInited()
        at com.google.youtube.application::VideoApplication/onInited()
        at com.google.youtube.application::Application/initData()
        at com.google.youtube.application::VideoApplication/initData()
        at com.google.youtube.application::Application/init()
        at com.google.youtube.application::VideoApplication/init()
        at com.google.youtube.application::Application/onInit()
    Now my question is really, first of all, is this a problem with the website or with my computer, second, how do I fix this, and yeah I don't know anything about ActionScript, I was not trying to write one at all I simply came across a website and this happened during the video playing. Any thoughts?
    EDIT: not sure if it would help, but the options I had were to Dismiss All and Continue.
    Thanks in advance.

    Usually this type of error is caused by the website, rather than your Flash Player installation.  If you tell us what video on the website is causing it, someone here can test it.
    What OS and browser are you using?
    Also, is 'third-party content' checked on the Flash Player Settings Manager at http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager.html ?

  • Stream not found in OSMF player

    Hi..
    This is ramesh,
    I installed adobe zerri server in my local server and using f4f packager i created manifest files with different bitrates and moved that files to /opt/adobe/fms/webroot/vod .
    using osmf player iam giving request as http//:www."local server ip"/vod/filename.f4m ,its playing contents fully and no problem with this........
    i created one delivery service in CDSM page , content origin as this zerri server ip  ,assigned service engine with some domain name and i prepositioned the files  in delivery service content origin. using osmf player iam giving request as http://www.domainname/vod/filename.f4m but contents are playing up to some fragments and throwing error as "STREAM NOT FOUND" in OSMF player...
    can anyboby suggest me that why the contents are not playing while giving request with domain name?
    problem with zerri code in service engine ?
    thanks,
    Ramesh

    Hi, thanks for the quick response.
    i have changed the HttpStreamingContentPath location in apache httpd.conf  form
    <Location /vod>
        HttpStreamingEnabled true
        HttpStreamingContentPath "/srv/www/vhosts/domain.xy/httpdocs/vod"
    </Location>
    to
    <Location /vod>
        HttpStreamingEnabled true
        HttpStreamingContentPath "/srv/www/vhosts/domain.xy/httpdocs"
    </Location>
    and all files are in the vod folder. But after opening   /vod/test.f4m in the OSMF player the player.swf tryed to open:
    "GET /:///vod/:///vod/testSeg1-Frag1 HTTP/1.1" 404 1324 http://www.domain.de/player.swf"
    Is this URL-Part "/:///vod/:///vod/testSeg1-Frag1" generated from the module or from the player.swf with the f4m-File?

  • OSMF Player Not Visible In Parent SWF

    Situation:
    Have an OSMF player that works fine, with an ad component that also works fine. These components both exist in a single SWF.
    When I embed that SWF on a page, it loads fine, plays fine, behaves as expected. Ad component is visible, with sound. Video component is visible with sound.
    However, when I attempt to load that player SWF into a shell SWF with a simple Loader object, the video component has errors. The shell SWF uses a Loader object to load the player SWF, and add the content from the loader to the display list. The ad component in the loaded SWF, is visible with sound (just as expected, just as before). The video component has ONLY audio. No visibility. This is the problem.
    It seems that loading this SWF into another SWF is the cause.
    stageVideo was obviously the first thing I looked at. But I am not using stageVideo. It is disabled. wmode transparent.
    Please do not ask for code, as I am not at liberty to add it to this forum.
    I am just hoping maybe someone can pass along an idea, thought, suggestion. Maybe it will spark something that can help me fix it.
    Appreciated.

    I have the Debugger version. There is no official "failure", as in, no errors are actually thrown.
    The shell, and the player SWF are in the same folder. All files are loaded properly. No 404, or security errors.
    The video loads, plays, etc. Essentially, everything is running exactly the same as it does when it runs correctly. The only issue is visibility of that one asset in the player SWF, being the actual player. Other assets in the player SWF are visible.
    Weird.

  • Error in http dynamic streaming TypeError - Error #1009

    Hello everyone,
    I am making mutli-bitrate streaming in FMS and FFMPGE.
    In FFMPEG I create 4 bitrate of source video and publish it on the FMS through RTMP protocol (rtmp://my-server/livepkgr/mystreamName1?adbe-live-event=liveevent).
    Now all configurations are working currently but sometimes I get this error:
    1- TypeError - Error #1009
    This is my FFMPEG syntaxt to create multi-bitrate:
    ffmpeg -re -i j:\movie\warz.mkv
    -preset ultrafast -threads 1 -vcodec libx264 -b:v 720k -r 24 -g 24 -keyint_min 4 -x264opts "keyint=4:min-keyint=48:no-scenecut" -s 856*360 -acodec libmp3lame -b:a 16k -ac 1 -ar 44100 -f flv rtmp://12.11.1.2/livepkgr/relation720p?adbe-live-event=relation
    -preset ultrafast -threads 1 -vcodec libx264 -b:v 600k -r 24 -g 24 -keyint_min 4 -x264opts "keyint=4:min-keyint=48:no-scenecut" -s 856*360 -acodec libmp3lame -b:a 16k -ac 1 -ar 44100 -f flv rtmp://12.11.1.2/livepkgr/relation360p?adbe-live-event=relation
    -preset ultrafast -threads 1 -vcodec libx264 -b:v 350k -r 24 -g 24 -keyint_min 4 -x264opts "keyint=4:min-keyint=48:no-scenecut" -s 570*240 -acodec libmp3lame -b:a 16k -ac 1 -ar 44100 -f flv rtmp://12.11.1.2/livepkgr/relation240p?adbe-live-event=relation
    -preset ultrafast -threads 1 -vcodec libx264 -b:v 98k -r 24 -g 24 -keyint_min 4 -x264opts "keyint=4:min-keyint=48:no-scenecut" -s 342*144 -acodec libmp3lame -b:a 16k -ac 1 -ar 44100 -f flv rtmp://12.11.1.2/livepkgr/relation144p?adbe-live-event=relation
    -preset ultrafast -threads 1 -vcodec libx264 -b:v 98k -r 24 -g 24 -keyint_min 4 -x264opts "keyint=4:min-keyint=48:no-scenecut" -s 342*144 -acodec libmp3lame -b:a 16k -ac 1 -ar 44100 -f flv rtmp://12.11.1.2/livepkgr/relation98p?adbe-live-event=relation
    and this is my F4M file:
    [code]
    <manifest xmlns="http://ns.adobe.com/f4m/2.0">
    <dvrInfo beginOffset="0" endOffset="1800"></dvrInfo>
    <baseURL>http://12.11.1.2/hds-live/livepkgr/_definst_/relation</baseURL>
    <media href="relation360p.f4m" bitrate="600"/>
    <media href="relation240p.f4m" bitrate="350"/>
    <media href="relation144p.f4m" bitrate="128"/>
    <media href="relation720p.f4m" bitrate="1932"/>
    <media href="relation98p.f4m" bitrate="98"/>
    </manifest>
    [/code]
    Please advise me to fix this problem
    any help will be appreciated

    Unless you can reproduce the issue in Flash player, i am sorry i can not be of much help to you...

  • Error #1009: Cannot access a property or method

    Here's the context of the problem, in which I will try to include as much information as possible while keeping the explanation brief.
    I am trying to make a portfolio website (architectural design + concept art).  Flash / programing are not my focus and this is my first go at learning the software.  Due to the nature of the content and my (lack) of ability in AS3, I want the the coding to be really simple and still let the site look good.  The way the site is currently structured:
    1) Basic menu buttons that navigate to sections of the site (brings up a new page).
    2) Example, clicking on <Graphics> takes you to a new page and a sub-menu animates in (simple motion tween for the buttons to cascade down).  This animation is a movie clip placed on the main timeline.
    3) On the screen is also a slideshow for all the images within <Graphics>.  Instead of multiple small slideshows, I combined them all into one, so as to avoid complications with add / remove from stage.  There are prev / next buttons that keep images within their sub section (ie 1->2->3->1).  The sub-menu buttons are suppose to link to the start of each sub section, much like chapters on a DVD.  (The slideshow is a movieclip sub-nested in the menu movieclip).
    Main menu buttons work.
    Sub-menu animation works.
    Slideshow works.
    Can't get the sub-menu buttons to access the slideshow chapters.
    I have created and solved about half a dozen errors, and each time I fix something, it just causes another point to break.  I've gone around in circles for days, and not sure which was is up anymore.  So, while the slideshow works independently of the rest of the content, and I think I have the parent referencing correct, the problem I am currently facing is thus:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at 03graphics_fla::MainTimeline/frame1()
    I've browsed some other threads, and I think I know what the problem is.  Since the sub-menu is animated, the buttons do not appear on frame 1 of the nested timeline, while the actionscript is on frame 1 of the main timeline - thus the code doesn't exist yet when I click the button.
    Is this indeed the problem?  If so, how do I go about fixing it?
    Additionally, does the structure makes sense on how my site is organized?  Is there an easier / cleaner way to code it?
    (This thing is completely ghetto-rigged, I just need it to function - it's like my own little Millenium Falcon...)
    Cheers,
    Andy

    Try following this posting, which is just a posting or two away from your own in the forum...
    http://forums.adobe.com/thread/748542?tstart=0

  • First flexunit test is always failing with Error Error #1009: Cannot access a property or method of

    Hi,
    I have flexunit project which I am trying to run on linux server.
    1. I have Tests project.
    2. I am trying to compile it on linux server and creating Tests.swf file and then executing Tests.swf using ant on 64 bit linux server using standalone flash debug player.
    3. Tests project contains 4 tests and first tests always fail with following error,
        test:
         [flexunit] Validating task attributes ...
         [flexunit] Generating default values ...
         [flexunit] Using default working dir [/mnt/build/VinitFlexUnitBranch/workspace/src/Tests]
         [flexunit] Using the following settings for the test run:
         [flexunit] FLEX_HOME: [/var/lib/flex4.1sdk]
         [flexunit] haltonfailure: [true]
         [flexunit] headless: [false]
         [flexunit] display: [99]
         [flexunit] localTrusted: [true]
         [flexunit] player: [flash]
         [flexunit] port: [1024]
         [flexunit] swf: [/mnt/build/VinitFlexUnitBranch/workspace/bin/Tests.swf]
         [flexunit] timeout: [60000ms]
         [flexunit] toDir: [/mnt/build/VinitFlexUnitBranch/workspace/src/Tests/report]
         [flexunit] Setting up server process ...
         [flexunit] Entry [/mnt/build/VinitFlexUnitBranch/workspace/bin] already available in local trust file at [/home/deploy/.macromedia/Flash_Player/#Security/FlashPlayerTrust/flexUnit.cfg].
         [flexunit] Executing 'gflashplayer' with arguments:
         [flexunit] '/mnt/build/VinitFlexUnitBranch/workspace/bin/Tests.swf'
         [flexunit]
         [flexunit] The ' characters around the executable and arguments are
         [flexunit] not part of the command.
         [flexunit]
         [flexunit] Starting server ...
         [flexunit] Opening server socket on port [1024].
         [flexunit] Waiting for client connection ...
         [flexunit] Client connected.
         [flexunit] Setting inbound buffer size to [262144] bytes.
         [flexunit] Receiving data ...
         [flexunit] Sending acknowledgement to player to start sending test data ...
         [flexunit]
         [flexunit] FlexUnit test pause in suite Tests.Classes.DummyASyncTest had errors.
         [flexunit]
         [flexunit] Stopping server ...
         [flexunit] End of test data reached, sending acknowledgement to player ...
         [flexunit] Closing client connection ...
         [flexunit] Closing server on port [1024] ...
         [flexunit] <testcase classname="Tests.Classes::DummyASyncTest" name="pause" time="8" status="error"><error message="Error #1009: Cannot access a property or method of a null object reference." type="Tests.Classes::DummyASyncTest.pause" ><![CDATA[TypeError: Error #1009: Cannot access a property or method of a null object reference.
         [flexunit] at org.fluint.uiImpersonation.flex::FlexEnvironmentBuilder/buildVisualTestEnvironment()
         [flexunit] at org.fluint.uiImpersonation::VisualTestEnvironmentBuilder/buildVisualTestEnvironment()
         [flexunit] at org.flexunit.internals.runners.watcher::FrameWatcher/getStage()
         [flexunit] at org.flexunit.internals.runners.watcher::FrameWatcher()
         [flexunit] at org.flexunit.internals.runners.statements::StackAndFrameManagement()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/withStackManagement()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/withDecoration()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/methodBlock()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runners::Suite/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runners::Suite/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runner::FlexUnitCore/beginRunnerExecution()
         [flexunit] at org.flexunit.runner::FlexUnitCore/verifyRunnerCanBegin()
         [flexunit] at org.flexunit.token::AsyncCoreStartupToken/sendReady()
         [flexunit] at org.flexunit.runner.notification.async::AsyncListenerWatcher/sendReadyNotification()
         [flexunit] at org.flexunit.runner.notification.async::AsyncListenerWatcher/handleListenerReady()
         [flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
         [flexunit] at flash.events::EventDispatcher/dispatchEvent()
         [flexunit] at org.flexunit.listeners::CIListener/setStatusReady()
         [flexunit] at org.flexunit.listeners::CIListener/dataHandler()
         [flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
         [flexunit] at flash.events::EventDispatcher/dispatchEvent()
         [flexunit] at flash.net::XMLSocket/scanAndSendEvent()]]></error></testcase>
         [flexunit] <endOfTestRun/>
         [flexunit] Analyzing reports ...
         [flexunit]
         [flexunit] Suite: Tests.Classes.DummyASyncTest
         [flexunit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec
         [flexunit]
         [flexunit] Results :
         [flexunit]
         [flexunit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec
         [flexunit]
        BUILD FAILED
        /mnt/build/VinitFlexUnitBranch/workspace/src/Tests/build.xml:26: FlexUnit tests failed during the test run.
        at org.flexunit.ant.tasks.TestRun.analyzeReports(Unknown Source)
        at org.flexunit.ant.tasks.TestRun.run(Unknown Source)
        at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
        Total time: 1 second
    Exited with status 1
    [deploy]$
    4. Everytime I run this, any test which is run first will fail and all other tests will pass.
    My Tests.as file is as below:
    * Tests.as
    package
    import Tests.XTestSuite;
    import flash.display.Sprite;
    import mx.core.FlexSprite;
    import org.flexunit.listeners.CIListener;
    import org.flexunit.listeners.UIListener;
    import org.flexunit.runner.FlexUnitCore;
    public class Tests extends Sprite
    public var flexSprite:FlexSprite;
    public function Tests()
    onCreationComplete();
    public function onCreationComplete() : void {
    var core : FlexUnitCore = new FlexUnitCore();
    core.addListener(new CIListener());
    core.runClasses(Tests.XTestSuite);
    public function currentRunTestSuite():Array
    var testsToRun:Array = new Array();
    testsToRun.push(Tests.XTestSuite);
    return testsToRun;
    XTestSuite try to run 4 flexunit test classes.
    one of that flexunit test script class is as below:
    package Tests.Classes
    import flexunit.framework.Assert;
    import org.flexunit.Assert;
    import org.flexunit.asserts.assertEquals;
    public class DummyASyncTest
    [Test]
    public function pause() : void
    assertEquals(true, true);
    trace("I M in dummy");
    All other tests are dummy tests which just asserts(true, true).
    I am not sure if I doing something wrong or forgot to take care of something.

    Hi,
    I have flexunit project which I am trying to run on linux server.
    1. I have Tests project.
    2. I am trying to compile it on linux server and creating Tests.swf file and then executing Tests.swf using ant on 64 bit linux server using standalone flash debug player.
    3. Tests project contains 4 tests and first tests always fail with following error,
        test:
         [flexunit] Validating task attributes ...
         [flexunit] Generating default values ...
         [flexunit] Using default working dir [/mnt/build/VinitFlexUnitBranch/workspace/src/Tests]
         [flexunit] Using the following settings for the test run:
         [flexunit] FLEX_HOME: [/var/lib/flex4.1sdk]
         [flexunit] haltonfailure: [true]
         [flexunit] headless: [false]
         [flexunit] display: [99]
         [flexunit] localTrusted: [true]
         [flexunit] player: [flash]
         [flexunit] port: [1024]
         [flexunit] swf: [/mnt/build/VinitFlexUnitBranch/workspace/bin/Tests.swf]
         [flexunit] timeout: [60000ms]
         [flexunit] toDir: [/mnt/build/VinitFlexUnitBranch/workspace/src/Tests/report]
         [flexunit] Setting up server process ...
         [flexunit] Entry [/mnt/build/VinitFlexUnitBranch/workspace/bin] already available in local trust file at [/home/deploy/.macromedia/Flash_Player/#Security/FlashPlayerTrust/flexUnit.cfg].
         [flexunit] Executing 'gflashplayer' with arguments:
         [flexunit] '/mnt/build/VinitFlexUnitBranch/workspace/bin/Tests.swf'
         [flexunit]
         [flexunit] The ' characters around the executable and arguments are
         [flexunit] not part of the command.
         [flexunit]
         [flexunit] Starting server ...
         [flexunit] Opening server socket on port [1024].
         [flexunit] Waiting for client connection ...
         [flexunit] Client connected.
         [flexunit] Setting inbound buffer size to [262144] bytes.
         [flexunit] Receiving data ...
         [flexunit] Sending acknowledgement to player to start sending test data ...
         [flexunit]
         [flexunit] FlexUnit test pause in suite Tests.Classes.DummyASyncTest had errors.
         [flexunit]
         [flexunit] Stopping server ...
         [flexunit] End of test data reached, sending acknowledgement to player ...
         [flexunit] Closing client connection ...
         [flexunit] Closing server on port [1024] ...
         [flexunit] <testcase classname="Tests.Classes::DummyASyncTest" name="pause" time="8" status="error"><error message="Error #1009: Cannot access a property or method of a null object reference." type="Tests.Classes::DummyASyncTest.pause" ><![CDATA[TypeError: Error #1009: Cannot access a property or method of a null object reference.
         [flexunit] at org.fluint.uiImpersonation.flex::FlexEnvironmentBuilder/buildVisualTestEnvironment()
         [flexunit] at org.fluint.uiImpersonation::VisualTestEnvironmentBuilder/buildVisualTestEnvironment()
         [flexunit] at org.flexunit.internals.runners.watcher::FrameWatcher/getStage()
         [flexunit] at org.flexunit.internals.runners.watcher::FrameWatcher()
         [flexunit] at org.flexunit.internals.runners.statements::StackAndFrameManagement()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/withStackManagement()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/withDecoration()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/methodBlock()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runners::Suite/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runners::Suite/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runner::FlexUnitCore/beginRunnerExecution()
         [flexunit] at org.flexunit.runner::FlexUnitCore/verifyRunnerCanBegin()
         [flexunit] at org.flexunit.token::AsyncCoreStartupToken/sendReady()
         [flexunit] at org.flexunit.runner.notification.async::AsyncListenerWatcher/sendReadyNotification()
         [flexunit] at org.flexunit.runner.notification.async::AsyncListenerWatcher/handleListenerReady()
         [flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
         [flexunit] at flash.events::EventDispatcher/dispatchEvent()
         [flexunit] at org.flexunit.listeners::CIListener/setStatusReady()
         [flexunit] at org.flexunit.listeners::CIListener/dataHandler()
         [flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
         [flexunit] at flash.events::EventDispatcher/dispatchEvent()
         [flexunit] at flash.net::XMLSocket/scanAndSendEvent()]]></error></testcase>
         [flexunit] <endOfTestRun/>
         [flexunit] Analyzing reports ...
         [flexunit]
         [flexunit] Suite: Tests.Classes.DummyASyncTest
         [flexunit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec
         [flexunit]
         [flexunit] Results :
         [flexunit]
         [flexunit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec
         [flexunit]
        BUILD FAILED
        /mnt/build/VinitFlexUnitBranch/workspace/src/Tests/build.xml:26: FlexUnit tests failed during the test run.
        at org.flexunit.ant.tasks.TestRun.analyzeReports(Unknown Source)
        at org.flexunit.ant.tasks.TestRun.run(Unknown Source)
        at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
        Total time: 1 second
    Exited with status 1
    [deploy]$
    4. Everytime I run this, any test which is run first will fail and all other tests will pass.
    My Tests.as file is as below:
    * Tests.as
    package
    import Tests.XTestSuite;
    import flash.display.Sprite;
    import mx.core.FlexSprite;
    import org.flexunit.listeners.CIListener;
    import org.flexunit.listeners.UIListener;
    import org.flexunit.runner.FlexUnitCore;
    public class Tests extends Sprite
    public var flexSprite:FlexSprite;
    public function Tests()
    onCreationComplete();
    public function onCreationComplete() : void {
    var core : FlexUnitCore = new FlexUnitCore();
    core.addListener(new CIListener());
    core.runClasses(Tests.XTestSuite);
    public function currentRunTestSuite():Array
    var testsToRun:Array = new Array();
    testsToRun.push(Tests.XTestSuite);
    return testsToRun;
    XTestSuite try to run 4 flexunit test classes.
    one of that flexunit test script class is as below:
    package Tests.Classes
    import flexunit.framework.Assert;
    import org.flexunit.Assert;
    import org.flexunit.asserts.assertEquals;
    public class DummyASyncTest
    [Test]
    public function pause() : void
    assertEquals(true, true);
    trace("I M in dummy");
    All other tests are dummy tests which just asserts(true, true).
    I am not sure if I doing something wrong or forgot to take care of something.

  • Runtime Error 1009 After Converting from Flex 3.6 to 4.5.1

    I am in the process of converting my application from SDK 3.6 to 4.5.1.  The process is going smoothly thanks to the many resources out there including Greg Lafrance's series http://www.adobe.com/devnet/flex/articles/migrating-flex-apps-part1.html
    I am now getting an error while the application is loading in the browser.  The error text is:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at main/initApp()...
    The error occurs in the AS code where I am attempting to get the URL from the player using the mx.utils.URLUtil library.  In particular, I am setting a global variable in my app to the URL of the visitor.  The specific code for this is:
    this.stServerName=URLUtil.getServerName(mainApp.url);
    Is URLUtil still in use in Flex 4.5.1?  If not, is there another way to get the server name from the host?
    Thanks!
    Lee

    URLUtil still exists.  I would verify what is null.

  • Could somebody explain why I am getting this Error #1009 message?

    Hi. I am following a tutorial on lynda.com in hopes of learning how to use actionscript 3.0 and my copy of flash CS4 to create games. I wrote my code exactly like it showed in the tutorial, but for some reason I will occasionally receive an error that says
    "TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at Monster/die()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at fl.motion::AnimatorBase/end()
    at fl.motion::AnimatorBase/handleLastFrame()
    at fl.motion::AnimatorBase/nextFrame()
    at fl.motion::AnimatorBase/handleEnterFrame()"
    It doesn't happen all the time but it will every once in a while. There doesn't really seem to be anything specifically that triggers it either. I also happened to notice that not all of the enemies respond to being clicked on. I don't know if these two things are related or not. I don't know if the error is caused by the code for the monster library item or the code for the main timeline. Thank you in advance for looking at my code.
    This is my code for the monster library item:
    import fl.motion.Animator;
    import fl.motion.MotionEvent;
    var this_xml:XML = <Motion duration="30" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
    <source>
      <Source frameRate="10" x="275" y="200" scaleX="1" scaleY="1" rotation="0" elementType="movie clip" symbolName="monster">
       <dimensions>
        <geom:Rectangle left="-32.5" top="-32.95" width="65.05" height="65.95"/>
       </dimensions>
       <transformationPoint>
        <geom:Point x="0.49961568024596464" y="0.49962092494313876"/>
       </transformationPoint>
      </Source>
    </source>
    <Keyframe index="0" tweenSnap="true" tweenSync="true">
      <tweens>
       <SimpleEase ease="0"/>
      </tweens>
    </Keyframe>
    <Keyframe index="29" tweenSnap="true" tweenSync="true" scaleX="2.782" scaleY="2.697">
      <tweens>
       <SimpleEase ease="0"/>
      </tweens>
    </Keyframe>
    </Motion>;
    var this_animator:Animator = new Animator(this_xml, this);
    this_animator.play();
    this_animator.addEventListener(MotionEvent.MOTION_END, hurtPlayer);
    function hurtPlayer(MotionEvent):void
    var main:MovieClip = MovieClip(this.parent.parent);
    main.decreaseEnergy();
    this.parent.removeChild(this);
    this.addEventListener(MouseEvent.CLICK, killMonster);
    function killMonster(event:MouseEvent):void
    this_xml = <Motion duration="5" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
    <source>
      <Source frameRate="10" x="275" y="200" scaleX="1" scaleY="1" rotation="0" elementType="movie clip" symbolName="monster" class="Monster">
       <dimensions>
        <geom:Rectangle left="-32.5" top="-32.95" width="65.05" height="65.95"/>
       </dimensions>
       <transformationPoint>
        <geom:Point x="0.49961568024596464" y="0.49962092494313876"/>
       </transformationPoint>
      </Source>
    </source>
    <Keyframe index="0" rotateDirection="cw" rotateTimes="1" tweenSnap="true" tweenSync="true">
      <tweens>
       <SimpleEase ease="0"/>
      </tweens>
    </Keyframe>
    <Keyframe index="4" rotateDirection="cw" rotateTimes="1" tweenSnap="true" tweenSync="true" scaleX="0.416" scaleY="0.378">
      <color>
       <Color alphaMultiplier="0"/>
      </color>
      <tweens>
       <SimpleEase ease="0"/>
      </tweens>
    </Keyframe>
    </Motion>;
    this_animator = new Animator(this_xml, this);
    this_animator.play();
    this_animator.addEventListener(MotionEvent.MOTION_END, die);
    function die(event:MotionEvent):void
    var main:MovieClip = MovieClip(this.parent.parent);
    main.increaseScore();
    this_animator.removeEventListener(MotionEvent.MOTION_END, hurtPlayer);
    this.parent.removeChild(this);
    This is my code for the main timeline:
    var monstersInGame:uint;
    var monsterMaker:Timer;
    var container_mc:MovieClip;
    var cursor:MovieClip;
    var score:int;
    var energy:int;
    function initializeGame():void
    monstersInGame = 10;
    monsterMaker = new Timer(1000, monstersInGame);
    container_mc = new MovieClip;
    addChild(container_mc);
    monsterMaker.addEventListener(TimerEvent.TIMER, createMonsters);
    monsterMaker.start();
    cursor = new Cursor();
    addChild(cursor);
    cursor.enabled = false;
    Mouse.hide();
    stage.addEventListener(MouseEvent.MOUSE_MOVE, dragCursor);
    score = 0;
    energy = energy_mc.totalFrames;
    energy_mc.gotoAndStop(energy);
    function dragCursor(event:MouseEvent):void
    cursor.x = this.mouseX;
    cursor.y = this.mouseY;
    function createMonsters(event:TimerEvent):void
    var monster:MovieClip;
    monster = new Monster();
    monster.x = Math.random() * stage.stageWidth;
    monster.y = Math.random() * stage.stageHeight;
    container_mc.addChild(monster);
    function increaseScore():void
    score ++;
    if(score >= monstersInGame)
      monsterMaker.stop();
    function decreaseEnergy():void
    energy --;
    if(energy <= 0)
      monsterMaker.stop();
    else
      energy_mc.gotoAndStop(energy);
    initializeGame();

    Ok. Apparently, I didn't test it enought times to get the error. I went back and tested it again to get the error. When I did this, the
    trace(this); revealed [object Monster]
    and
    trace(this.parent); revealed [object MovieClip].
    The only one that was different was the one that gave the error. For that one the
    trace(this); revealed [object Monster]
    and
    trace(this.parent); revealed null.
    Then it gave all of the error information.

  • Preloader :Error #1009: Cannot access a property or method of a null object reference.

    Hi,
    I'm having a lot of trouble getting a preloader to work on my Flash website. I'm new to actionscript, the site works fine but when I place the preloader in frame 1, I get.
    Error#1009: Cannot access a property or method of a null object reference.
    Then it lists three areas. The buttons on the site don't work anymore.
    I've followed the Lynda com tutorials so don't know what is causing this error.
    Included is the word.doc with the error code, preloader code, the main flash frame 2 code and the debug information.
    Any help would be great.
    Thanks!

    You need to make sure 'cards' is named properly and is present when that line of code executes.  If it is somewhere down a timeline, it is not present.
    As far as your preloader code goes, what is infoLoader.  I have to assume it's some form of component since you don't have any code to instantiate it.

Maybe you are looking for

  • Mini DVI port on MacBook changed

    I have been using Mini DVI to VGA on my PowerBook (12 in) for several years, now. I just purchased the new MacBook (Black) and find that the adapter does not fit into the DVI port! When looking on a couple of retail website, including Apple, I find o

  • What happen next, after erase and lock screen of macbook pro?

    Hi, I just lost my macbook pro and I have some personal data on it. I read some articles who said that Erase mac will delete whole data. When I erased my Macbook pro from Web Interface https://www.icloud.com it ask me to enter 6 digits passcode I ent

  • Dazzle

    I intend to transfer my Super VHS tapes from an old camera to DVD and have aquired a Dazzle Platinum. But everything is for Windows! Does anyone know if it can be used on a Mac and if so how do I go about doing it? I have checked Pinnacle's site but

  • Log file in RSADRLSM02 : regional structure

    Hello, can somebody tell me what is the structure od the "log. file name log" passed like a mandatory parameter to the program RSADRLSM02 that is filling the regional structure ? Thank you, Tom.

  • Web Management & Builder tool

    I recently moved to mac and I want to know any good softwares to build simple websites. I want to host my own website but I dont know how that works with mac. I have been trying to find online but I haven't found one application that would work for m