Flashvars loaderInfo Error

Hi All
         I am facing a technical proble when I am importing a "FlashVarsParam.as" class file in my main class " VideoPlayer.as" and when I am using "FlashVarsParam.as" in my FLA doucument class "VideoPlayer.fla" then it is workining fine. "FlashVarsParam.as" file given below so please check it and help.
I am accessing in my main class and then it gives me error
plackage {
                   import flash.display.*;
                   import flash.events.*;
                  import FlashVarsParam;
public class VideoPlayer extends MovieClip{
public var getflashvars:FlashVarsParam;
public function VideoPlayer()
getflashvars =new  FlashVarsParam()
// It givs me error
Please help me to solve this problem.
Thanks
Sunil
package {
        import flash.display.*;
        import flash.events.*;
        import flash.text.TextField;
    public class FlashVarsParam extends MovieClip
        public var file:LoaderInfo;
        public var playlist:LoaderInfo;
        public var autostart:LoaderInfo;
        public var _file:String;
        public var _playlist:String;
        public var _autostart:String;
        public function FlashVarsParams(){
            playlist  = root.loaderInfo as LoaderInfo;
            file       = root.loaderInfo as LoaderInfo;
            autostart = root.parent.loaderInfo as LoaderInfo;
            addListeners(playlist);
            addListeners(file);
            addListeners(autostart);
        public function securityErrorHandler(event:SecurityErrorEvent):void {
            playlist = LoaderInfo(event.currentTarget)
            file     = LoaderInfo(event.currentTarget);
            autostart =  LoaderInfo(event.currentTarget);
            removeListeners(playlist)
            removeListeners(file)
            removeListeners(autostart)
            playlist = null;
            file = null;
            autostart = null;
            trace("securityErrorHandler: " + event);
        public function ioErrorHandler(event:IOErrorEvent):void {
            playlist = LoaderInfo(event.currentTarget)
            file = LoaderInfo(event.currentTarget);
            autostart = LoaderInfo(event.currentTarget);
            removeListeners(playlist)
            removeListeners(file)
            removeListeners(autostart)
            playlist = null;
            file = null;
            autostart = null;
            trace("ioErrorHandler: " + event);
        public function loadFlashVars(evt:Event):void
            trace("loaded: " + evt);
            playlist = LoaderInfo(evt.currentTarget)
            file = LoaderInfo(evt.currentTarget);
            autostart = LoaderInfo(evt.currentTarget);
            var playlist_1:String = (playlist.parameters.hasOwnProperty("playlist")) ? playlist.parameters.playlist as String: "No Playlist data";
            var files_1:String = (file.parameters.hasOwnProperty("file")) ? file.parameters.file as String: "No File found";
            var autostart_1:String = (autostart.parameters.hasOwnProperty("autostart")) ? autostart.parameters.autostart as String: "Autostart not found";
                _file      = files_1;
                _playlist  = playlist_1
                _autostart = autostart_1
                trace(_file)
                trace(_playlist)
                trace(_autostart)
            removeListeners(playlist)
            removeListeners(file)
            removeListeners(autostart)
            playlist = null;
            file = null;
            autostart = null;
            var _txt:TextField = new TextField()
            _txt.width = 300;
            _txt.background = true;
            _txt.text = playlist_1+"=="+files_1+"="+autostart_1;
            addChild(_txt);
            trace(_file)
            trace(_playlist)
            trace(_autostart)
        public function addListeners(dispatch:EventDispatcher):void
            //when the data from the flashvars is now loaded call loadFlashVars method
            dispatch.addEventListener(Event.COMPLETE, loadFlashVars);
            //when there is no flashvars call loadFlashVars ** prevents the ugly runtime error box **
            dispatch.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
            //when data is been loaded from an untrusted domain ** prevents the ugly runtime error box **
            dispatch.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
        public function removeListeners(dispatch:EventDispatcher):void
            // clean up after yourself you don’t need wasted memory
            // listening for some thing that already happend and will not happen again
            dispatch.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
            dispatch.removeEventListener(Event.COMPLETE, loadFlashVars);
            dispatch.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);

What is the error?

Similar Messages

  • Flashvars, loaderinfo for mp3 player with xml

    ok, I am using flash cs5, am pretty new to as3, and I've been trying for 3 days to figure this out, as of yet have not been able to.
    I have built a music community website, obviously members can sign up for an account, and upload mp3 files to their accounts.
    now I'll explain in as much detail as I can.
    Once registration is complete, the php script creates a folder in the members directory on my server with their unique id, then when they go and upload an mp3, it uploads it to their folder and automatically creates a playlist.xml file for the song(s)
    so, I have a prebuilt flash mp3 player that I got from developphp.com, his as3 code calls for a static directory for the audio and xml, now since the flash player will live in the root, and the xml and audio will live in the members/$id folders, I am told to use flashvars and loaderinfo.parameters to do what I need, and that is to load the xml and mp3 files into the player for the profile that is being viewed at that moment, so lets look at what I've put into the html object and embed.
    lets use profile #7
    <param name="movie" value="flplayer.swf?<?php print"$id/playlist.xml" ?>">
                <embed src="flplayer.swf?<?php print "$id/playlist.xml" ?>"> (please tell me if I have done this incorrectly)
    now if we go to the profile.php?id=7 page, thius is what the page source looks like:
    <param name="movie" value="flplayer.swf?7/playlist.xml">
                <embed src="flplayer.swf?7/playlist.xml>">
    now here is where I am stuck, as I said the flash mp3 player urlLoader and URLRequest, and I have been searching for days to figure out what I am supposed to do to get the player to pick up on the flash vars, here is the top part of the as3 code where it calls for the mp3 and the xml.
    stop();
    var myFormat:TextFormat = new TextFormat();
    myFormat.color = "0xFFFFFF";
    list.setRendererStyle("textFormat", myFormat);
    var trackToPlay:String;
    var pausePosition:int = 0;
    var songURL:URLRequest;
    var isPlaying:Boolean = false;
    var i:uint;
    var myXML:XML = new XML();
    var XML_URL:String = "mp3_playlist.xml";
    var myXMLURL:URLRequest = new URLRequest(XML_URL);
    var myLoader:URLLoader = new URLLoader(myXMLURL);
    myLoader.addEventListener("complete", xmlLoaded);
    function xmlLoaded(event:Event):void {
        myXML = XML(myLoader.data);
       var firstSong:String = myXML..Song.songTitle[0];
       var firstArtist:String = myXML..Song.songArtist[0];
       songURL = new URLRequest("mp3_files" + firstSong + ".mp3");
       status_txt.text = "1. "+firstSong +" - "+firstArtist;
         for each (var Song:XML in myXML..Song) {
    i++;
    var songTitle:String = Song.songTitle.toString();
    var songArtist:String = Song.songArtist.toString();
    list.addItem( { label: i+". "+songTitle+" - "+songArtist, songString: songTitle, Artist: songArtist, songNum: i } );
    var myArray = new Array (0,0);
             list.selectedIndices = myArray;
    gotoAndStop(3);
    I am not asking for free work, I'm just trying to get pointed in the right direction, through searching I have been trying to find out how and what to change, and I have been having a great deal of trouble finding the info, I'm ready to pull my hair out.

    ok, here is the object/embed section from dreamweaver
    <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="386" height="250">
                  <param name="movie" value="flplayer.swf">
                <embed src="flplayer.swf?xml=members/$id/playlist.xml">
                  <param name="quality" value="high">
                  <param name="wmode" value="opaque">
                  <param name="swfversion" value="9.0.45.0">
                  <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
                  <param name="expressinstall" value="Scripts/expressInstall.swf">
                  <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
                  <!--[if !IE]>-->
                  <object type="application/x-shockwave-flash" data="flplayer.swf" width="386" height="250">
                    <!--<![endif]-->
                    <param name="quality" value="high">
                    <param name="wmode" value="opaque">
                    <param name="swfversion" value="9.0.45.0">
                    <param name="expressinstall" value="Scripts/expressInstall.swf">
                    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                    <div>
                      <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                      <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                      </div>
                    <!--[if !IE]>-->
                    </object>
                  <!--<![endif]-->
                  </object>

  • Why you tube doesn't play videos-error says "flashvars" and "playerEmbed" not found

    Safari plays YouTube videos fine. But, Firefox gives a ribbon error across the top: Quality selector disabled: "flashvar" not found (flashBlock?) Then second line of error says: Download Link Disabled: "PlayerEmbed" not found. How do I remedy these two errors?

    You're welcome.
    I should have phrased my previous post a little differently - the sizes available to me for an export were for a random iMovie project that I selected.
    Copied from another post.
    If you want to download and view one of your iMovie projects to your iPod or iPhone, you first need to send it to iTunes. *When you send your project to iTunes, iMovie allows you to create one or more movies of different sizes, _depending on the size of the original media that’s in your project._* *The medium-size movie is best for viewing on your iPod or iPhone.*
    So the sizes available for the export can fluctuate depending on the size of the original media that's in the iMovie project being exported.
    I would experiment using the medium size for the export. If this works for viewing the movie on both your iPhone and Apple TV without having two copies, this will be good for only having one copy of the export but the quality will not be as good when watching the movie with your Apple TV.
    With two copies - one that is best/ideal for your Apple TV and one that is best/ideal for your iPhone, or having one copy that works for viewing on your iPhone and your Apple TV but at a reduced quality when viewing the video with your Apple TV. The export for the iPhone will not take up as near as much storage space as the export that is best for the Apple TV.

  • LoaderInfo get values from EMBED and OBject Tag (not FlashVars)

    hi
    i try get values from object and embed tags like bgColor and
    allowFullScreen
    but i cant find how i can it
    loaderInfo.parameters return only flashVars
    if some body know it please help
    thank you
    Sonettic Cinema
    Project

    <forward name="success" path="/jsp/success.jsp" redirect="true" />
    but when success.jsp page gets called its not displaying the username and usertype values on page.The request has been redirected to success.jsp(*redirect="true"*) and hence the attributes stored in request object will not be available in success.jsp. Use Session to store login user information instead.

  • Using LoaderInfo to get params from HTML

    Hi All
    Working my way throught the new things in AS3. One problem is
    getting <params> passed to the .swf from the HTML file. I can
    make it work if the code is embedded via Actions on frame 1, but
    not when the code is in an external .as file! The example I'm
    playing with is the 'Dynamic video playlist'...
    http://www.adobe.com/devnet/flash/articles/video_playlist.html
    and the amendments I've made in the VideoPlaylist.as file are
    as <=====ADDED below...
    ALL HELP/COMMENTS MUCH APPRECIATED, thank you
    ROBERT
    package {
    import flash.display.MovieClip;
    import flash.display.LoaderInfo; <=====ADDED
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import fl.controls.listClasses.CellRenderer;
    import fl.controls.ScrollBarDirection;
    public function VideoPlaylist():void {
    // Load the playlist file, then initialize the media player.
    xmlLoader = new URLLoader();
    xmlLoader.addEventListener(Event.COMPLETE, initMediaPlayer);
    //xmlLoader.load(new URLRequest("playlist.xml"));
    <=====ADDED commented out
    var playlist = this.loaderInfo.parameters.xmlfile;
    <=====ADDED
    xmlLoader.load(new URLRequest(playlist)); <=====ADDED
    argument change
    etc etc...
    The error report is...
    TypeError: Error #2007: Parameter url must be non-null.
    at flash.net::URLStream/load()
    at flash.net::URLLoader/load()
    at VideoPlaylist()
    And the HTML code is this for the xmlfile parameter I'm
    trying to read in...
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
    width="538" height="290" id="VideoPlaylist" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="true" />
    <param name="movie" value="VideoPlaylist.swf" />
    <param name="loop" value="false" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <param name="xmlfile" value="playlist.xml">
    <embed src="VideoPlaylist.swf" width="538" height="290"
    loop="false" align="middle" quality="high" bgcolor="#ffffff"
    name="VideoPlaylist" allowscriptaccess="sameDomain"
    allowfullscreen="true" type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    xmlfile="playlist.xml" />
    </object>

    Many thanks for both your replies. I used Dreamweaver's
    Parameters 'helper' to put the params in, and they were placed in
    AC_FL_RunContent() correctly. I also tried the FlashVars variations
    with the same result. As said I have made it work when the
    retreival code is in the main swf file, but it just won't work for
    me when the coding is in an external .as file.
    Thanks again
    ROBERT

  • Setting flashvars in AS3 when testing movie

    Does anyone know how to set flashvars when running a movie in CS4 using Control->Test Movie?  Under ActionScript 2 I could just set _root.flashVar, what's the equivalent in AS3?

    Hi Dan,
    Thanks, but I'm not quite understanding what this solution is.  Is the AS2 that you're thinking in terms of when you're posting this solution?
    In AS3, the flashvar parameters don't appear as top level properties, they are found under "root.loaderInfo.parameters".  So I can look up a parameter like this:
    trace("myVar=" + root.loaderInfo.parameters.myVar);
    I'd like to be able to do something like setting this parameter in my test code like this:
    root.loaderInfo.parameters.myVar="test value";
    ...but this doesn't seem to work.  No error message when I try this (either running "Test Movie" in CS4 or running in Flash Player in FireFox).  Looking at the doc page for flash.display.LoaderInfo, it says that the "parameters" property is readonly.
    I wish there were some kind of dialog in CS4 to allow me to set up flash vars for testing under Control->Test Movie, but if there is such a thing, I haven't found it yet!
    - Bruce

  • How can i access the LoaderInfo attributes in FlasCC ?

    I try to access the LoaderInfo::parameters to get given FlashVars.
    But i cant even get the simple String variable 'url' from the LoaderInfo object
    This is my sourcecode:
    #include <stdio.h>
    #include <Flash++.h>
    #include <AS3/AS3.h>
    using namespace AS3::ui;
    int main(int argc, char **argv)
        printf("Hello World\n");
        flash::display::Stage stage = internal::get_Stage();
        flash::display::LoaderInfo info = flash::display::LoaderInfo::getLoaderInfoByDefinition(stage);
        AS3::local::var stringValue = info->url;
         // a second try, which doesn't compile too
         //AS3::local::var stringName  = AS3::local::internal::new_String("url");
         //AS3::local::var stringValue = AS3::local::internal::getproperty(info, stringName);
        char* str = AS3::local::internal::utf8_toString(stringValue);
        if (str)
            printf("cVar=%s\n", str);
            free(str);
        else
            printf("str = null\n");
        return 0;
    and here the error:
    $ PATH=/cygdrive/d/Projects/flasCC/flascc/sdk/usr/bin:$PATH make FLASCC=/cygdri
    ve/d/Projects/flasCC/flascc/sdk FLEX=/cygdrive/d/Projects/flasCC/flex46
    -------- Sample 1 --------
    Now lets compile it as a SWF:
    "/cygdrive/d/Projects/flasCC/flascc/sdk/usr/bin/g++" -Werror -Wno-write-strings
    -Wno-trigraphs hello.cpp -jvmopt="-Xmx3000M" -O4 -emit-swf -swf-size=400x400 -o
    hello.swf -lFlash++ -lAS3++ -L/cygdrive/d/Projects/flasCC/flascc/sdk/usr/lib
    hello.cpp: In function 'int main(int, char**)':
    hello.cpp:50: error: conversion from 'AS3::ui::flash::display::LoaderInfo::inter
    nal::iprop_url' to non-scalar type 'AS3::local::var' requested
    make: *** [T01] Error 1
    Anyone knows how it works ?
    Thanks

    I found a way to get the FlashVars/swf parameters by:
    CModule.rootSprite.stage.loaderInfo.parameters

  • DMP 4310 load swf with flashvars

    Hi,
    I am using dmp 4310 and i want to load a swf file using flashvars. This swf is loaded through another swf (a wrapper swf) with the "MovieClip Loader Object" (AS2). When i load the swf using http request i do not have any prblems (eg clipLoader.loadMovie("http://10.0.0.1/swfTest.swf?flashVar1=test1")). The problem is that i cannot get the flashvars by loading the same swf file locally (eg clipLoader.loadMovie("file:///tmp/ftproot/usb_1/files/swfTest.swf?flashVar1=test1")). Is there any way to get the flashvar? Also, is there any way to access the swf file (with the flashvars) using the internal http service (eg http://localhost/...swfTest.swf?flasvar1=test1  -- where localhost is the player itself).
    Thank you in advance for your response!

    Suddenly that code in the following gives me some error
    var langPath = root.LoaderInfo.parameters["xmlFilePath"]+root.LoaderInfo.parameters["lang"];
    my_ssp.xmlFilePath = langPath;
    var fileType = root.LoaderInfo.parameters["xmlFileType"];
    my_ssp.xmlFileType = fileType;
    Access of possibly undefined property LoaderInfo through a reference with static type flash.display:DisplayObject.
    The only code snippet works is
    var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
    for (var param in paramObj) {
       if (param == "xmlFilePath") {
          my_ssp.xmlFilePath = paramObj[param];
       if (param == "xmlFileType") {
          my_ssp.xmlFileType = paramObj[param];

  • Air app install fail in IE with Badge Installer Error # 2032

    Much has been written about this problem, and the most quoted solutions are
    Ensure the appurl FlashVar is not a relative url but fully qualified http://domain.com/app.air
    Uninstall and reinstall Air
    Empty browser's cache
    None of these have solved my issue and I still have a reproducible bug.
    I have set up a badge installer at http://tx.flamjam.com/mms/ which attempts to install appurl=http:/tx.flamjam.com/mms/MMSReview.air
    This works beautifully in OS X but fails in Windows with the error window,
    Sorry, an error has occurred.
    The application could not be installed. Try installing it again. If the problem persists, contact the application author.
    Error# 2032
    I've tested IE and Chrome, both updated to the most recent versions.
    When Air is not installed I get a slightly different error message, with no error number.
    The application could not be installed because the installer file is damaged. Try obtaining a new installer file from the application author.
    With Air installed, if I instead visit the appurl directly in the browser — http:/tx.flamjam.com/mms/MMSReview.air —  the file downloads and installs without problem.
    To the best of my knowledge, the error is a generic stream error which essentially means that the appurl could not be found. To demonstrate this, simply use a fictitous appurl and now the same error can be seen on OS X as well. This implies that something is malforming the appurl withing the badge, but I have modified the status display text of the badge to display the appurl parsed from the LoaderInfo object containing FlashVars payload and can confirm that the appurl appears to be consistent between OS X and Win.
    Log file in next post.
    I'll continue digging for a solution, and post my findings here, but would value other's input on this subject greatly.

    An interesting development.
    When I monitor my network traffic using ServiceCapture I can see that no attempt is made to connect to the appurl, with the install failing instantly without even attempting to connect to the appurl.
    ServiceCapture on OS X confirms the attempt to connect to the appurl even if the url is deliberately fictitous resulting in a 404 response.
    The badge begins the installation process using the installApplication method of the following file
    http://airdownload.adobe.com/air/browserapi/air.swf
    which the badge loads on startup.
    It would appear to me that the installation problem is failing inside that loaded swf's code, but I'm at a loss as to how to debug that.

  • FlashVars not working in AS3

    Hi,
    I've spent hours trying to get communications with my SWF files to work. At least to get data into my Flash movie, I learned that I'm supposed to use FlashVars (even though I don't like this method because it seems unsecure).
    Anyways - all the examles (eg. here and here) work fine when I download them, but if I create my own file, I get the error:
    1120: Access of undefined property ...
    It took me a while, but I found out that all of these examples use either AS1 or AS2 and indeed, when I switch the project to AS3, it stops working.
    So my question is:
    What do I need to do with CS4 to get this to work? Do I have to import something?
    Thank you in advance for your help!

    @Ned: Thank you! While I did extensive Google searches, I omitted to include AS3 as a keyword. Anyway, this is the piece of code I'm using now:
    var keystr:String;
    var valstr:String;
    var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
    for (keystr in paramObj)
         valstr = String(paramObj[keystr]);
         this.text1.text = "Your IP sent in from PHP is: " + valstr; 
    @Dexterous: Thanks, that would have been much easier and better suited in my case, but sadly it does not work for me (same problem as many of the tutorials on the net:
    TypeError: Error #2007: Parameter text must be non-null.
        at flash.text::TextField/set text()
        at flashvars2_fla::MainTimeline/frame1()
    Not sure what the problem is, I sure would be interested in that kind of approach.
    Thanks again, guys!

  • LoaderInfo change from CS4 to CS5

    Hey guys, hoping somebody has an idea on this.  My code for loading in the FlashVars parameters was working in CS4.  I opened the file and published it in CS5.  Now all of my parameters are showing up as undefined.  My code is below let me know if you have any ideas on what changed.
    var gameid:String = new String;
    try {
        var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
        gameid = paramObj["gameID"];
    } catch (error:Error) {
        trace("oops: "+error);
        //gameid = "2430";

    The reason moving CS4 shortcuts forward doesn't work has to do with changed and new behaviors of some modifier keys. I haven't tried it, but I don't think there is any reason that CS5 shortcuts won't work in CS6.
    As far as complete removal of previous versions, all of the experienced users here will tell you that is not required for installation and that your license allows for a transition period where you may keep an old version active. New versions do not disable or conflict with previous versions of ID, and having your old version installed is actually quite important if yiou need to continue to work on legacy documents in the original format or to collaborate with other users who do not have the latest version.

  • Pass flashvars to an AIR app?

    I'm converting a Flex app to an AIR app.
    The current flex app uses the SWFObject inthe html template
    to pass in flashvars...
    var so = new SWFObject("myappp.swf", "myappp", "${width}",
    "${height}", "9.0.115");
    so.addVariable("XMLData",
    getXML(document.getElementById("MyXMLData")));
    so.write();
    ...where MyXmlData is defined in the html template as
    follows....
    <div style="display:none;" id="MyXMLData">
    <video>
    <clip url="rtmp://cpxxx.edgefcs.net/500k/myflv"
    hideSkin="false">
    </clip>
    </video>
    </div>
    In my ActionScript I get the flashvars as follows...
    if (!loaderInfo.parameters.hasOwnProperty("MyXMLData"))
    throw("Error: Missing XML Data");
    How would I do this with AIR? Is there a way to pass the XML
    to the loader when the AIR app is starting up? To put it another
    way... How would I pass flashvars to an AIR app?
    Thanks!
    Chris

    It depends on how your application is being launched. If it's
    being launched from a web page via the browser API, you can pass
    arguments to the launch call. That's not really appropriate for an
    entire XML file, but you could pass e.g. a URL to one.
    However, if your application is being launched directly by a
    user on the desktop, then there's no way to pass arguments to it.
    Stepping back a bit, it might be more useful to think about
    your use case and how to make it work, rather than focusing
    immediately on Flashvars, which is just a feature.
    Oliver Goldman | Adobe AIR Engineering

  • Flashvar Question

    I am using flashvars to pass a URL that Flash uses to load
    XML data.
    In Flash, my Actionscript says:
    var flashVar = root.loaderInfo.parameters.flashVar;
    if (flashVar != undefined) {
    flashVar = flashVar;
    // Loads data into XML object and away we go //
    So far, so good so what's my problem?
    Well, I want to create a method to use in case the URL is
    entered into the flashvar incorrectly. In such a case, the argument
    would still hold true as the value is not undefined...just
    incorrect.
    I am able to add an argument that detects whether the
    flashvar is empty:
    } else if (flashVar == "") {
    // Display an error message or use a default URL //
    So my question is, what argument would I use to detect when
    an INVALID value is passed to the flashVar variable?
    I appreciate any help that I can get. Thanks.
    Text

    Maybe "invalid" is the wrong term to use. Basically, if the
    URL that is entered in the flashvar is either mispelled or if the
    page is missing, I'd like Flash to show a "page not available"
    graphic.
    Maybe this is not done through the flashvar but through a
    subsequent function after the data is received?

  • Error #1009 - think it has to do with a movie file

    This error keeps on coming up when im trying to complete my flash website, the error seams to linked to a movie file that is interrupting something somewhere
    this is the complete error message,
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at wokringonsite_fla::MainTimeline/frame3()[wokringonsite_fla.MainTimeline::frame3:16]
              at flash.display::Sprite/constructChildren()
              at flash.display::Sprite()
              at flash.display::MovieClip()
              at flash.display::MovieClip/nextFrame()
              at wokringonsite_fla::MainTimeline/updatePreloader()[wokringonsite_fla.MainTimeline::frame1: 12]
    this is the code from the begining
    stop();
    //Preloader
    loaderInfo.addEventListener(ProgressEvent.PROGRESS, updatePreloader);
    function updatePreloader(evtObj:ProgressEvent):void
              //container for the progress of the site (download)
              var percent:Number = Math.floor((evtObj.bytesLoaded*100)/evtObj.bytesTotal);
              preloader_txt.text = percent+"%";
              if (percent==100){
                        nextFrame();
    next frame
    stop();
    //Animate in the home_mc from right to left, using the Tween class.
    //Flash - go get code that's going to make the tween work...
    import fl.transitions.Tween;
    import fl.transitions.TweenEvent;
    import fl.transitions.easing.*;
    //content_mc animation - animate in..
    var homeTween:Tween = new Tween(content_mc,"x",Regular.easeOut,content_mc.x,350,1,true);
    //Move the background into place
    new Tween(bkgd_mc,"x",Regular.easeOut,bkgd_mc.x,0,1,true);
    //handle events for buttons...
    home.addEventListener(MouseEvent.CLICK, clickSection);
    about.addEventListener(MouseEvent.CLICK, clickSection);
    portfolio.addEventListener(MouseEvent.CLICK, clickSection);
    contact.addEventListener(MouseEvent.CLICK, clickSection);
    AD5.addEventListener(MouseEvent.CLICK, clickSection);
    AD6.addEventListener(MouseEvent.CLICK, clickSection);
    AD7.addEventListener(MouseEvent.CLICK, clickSection);
    tvc.addEventListener(MouseEvent.CLICK, clickSection);
    function clickSection(evtObj:MouseEvent){
              //trace shows what's happening.. in the output window
              trace ("The "+evtObj.target.name+" button was clicked!")
              //go to the section clicked on...
              gotoAndStop(evtObj.target.name);
    var aboutTween:Tween = new Tween(content_mc,"x",Regular.easeOut,content_mc.x, 0,1,true);
    //Move the background into place
    new Tween(bkgd_mc,"x",Regular.easeOut,bkgd_mc.x,-166,1,true); ------- this basic code is used for all windows from home to tvc ,
    tvc code
    var tvcTween:Tween = new Tween(content_mc,"x",Regular.easeOut,content_mc.x,-2500,1,true);
    //Move the background into place
    new Tween(bkgd_mc,"x",Regular.easeOut,bkgd_mc.x,-1500,1,true);
    tvcTween.addEventListener(TweenEvent.MOTION_FINISH,donePlaying);
    function donePlaying(e:TweenEvent):void{
              trace ("done playing!");
              content_mc.tvc_mc.myvideo.play();
    I have absolutely no idea and right now it seams like a maze trapped in the puzzel trapped in pac man,
    any help would be fantastic
    cheers

    hey man this is a screen shot from frame 3, there is nothing in frame 16 which makes me wonder

  • Chart in Interactive Report always returns IO Error

    Hi everyone,
    Recently our company has a web application project that utilizes APEX and its powerful Interactive Report.
    However, everytime when we try to generate a chart based on the IR (by going to the "cog" and pick "chart"), we will get this "IO Error".
    For the last couple of days I have been researching on the net for solutions but still no luck on how to fix this problem.
    I have used Firefox to check into the source code of the page.
    To my surprise is that calling just the chart component is fine (the swf file does load up and wait for data), and so is calling that lengthy "...apex_util.flash2?..." xml-file under the variable "FlashVar" (an xml file is returned correctly).
    But when the chart is called in the IR it just keeps displaying "IO Error".
    This web app is hosted behind a reverse proxy server. Moreover, upon testing it is confirmed that the chart will be able to generate if the IP of the server is used to access the app... but not with the proxy domain name.
    Using the plain server IP is not an option as this IP cannot be accessed from outside of the company; all traffic is routed via the domain proxy server.
    It seems as is the proxy server is doing something in the middle, but I can't seem to find any information regarding conflicts between proxy server and anychart anywhere on the net.
    I did find some information about Flash and crossdomain data access, and had created the "crossdomain.xml" file under the root directory of the data server as instructed from Anychart documentation and Adobe Flash Support TechNote (http://www.anychart.com/products/anychart/docs/users-guide/security-error.html and http://kb2.adobe.com/cps/142/tn_14213.html).
    However it still does not solve the IO Error problem.
    Please help! My team do have a demo approaching next week.
    Sincerely,
    Nelson

    Hi,
    Try add to dads.conf
    PlsqlCGIEnvironmentList SERVER_PORT=443http://download.oracle.com/docs/cd/E17556_01/doc/install.40/e15513/trouble.htm#BABDFDDF
    Regards,
    Jari

Maybe you are looking for

  • Oracle Linux Exam Help!

    Hello! I will kindly ask for your honest opinions as I want to study for an Oracle Linux exam and I need to get the below indicated topics covered, but unfortunately I could not find a book to cover them all (as I did for Oracle 11g). Please help me

  • Unable to save as BI publisher Report

    I tried to save an Oracle BI Answer Request as a BI publisher report in the MS Word. It shows the following error. Error Occured. Please check the settings & try again. Can anyone help me to solve this Pblm. Thanks

  • I reinstalled my Snow Leopard and now I can't retrieve my saved passwords.

    The save passwords option is no longer present in my toolbar. My old saved passwords are not there in Firefox preferences. Nothing I can find on the help site seems to help, including live chat. I did find the two files Firefox says are connected to

  • ERR  = -50

    I have a ton of .avi movies and recently I cannot access them animore with QT. I have the Divx doctor and I get the error= -50 message everytime I try to open a movie. Does anybody know what this means?

  • Labview program interface

    Dear all,  I have a some problem in running my labview program. I intention is to generate an output voltage by using my machine (by Nanonis), thus I am using their program in Nanoinis program interface. However, I might have make some connection wro