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!

Similar Messages

  • Preloader not working in AS3 when viewing in a browser

    Hi there, It's me again Ysong.
    I have a problem regarding PRELOADING.
    MY TIMELINE:
    • First frame -- dynamic text which is my preloader with AS3 in it. NO MORE OBJECT in the frame only text which is dynamic.
         stop();
         loaderInfo.addEventListener(ProgressEvent.PROGRESS, updatePreloader);
         function updatePreloader(evtObj:ProgressEvent):void
              var percent:Number = Math.floor((evtObj.bytesLoaded*100)/evtObj.bytesTotal);
              myLoadText.text = "Loading..." + percent+"%";
              if (percent==100){
                        nextFrame();
    • Second frame -- the whole site in MOVIE CLIP which will be loaded after the preloading ends.
    ***The whole SWF file is only 600KB when publishing.
    ***When simulating download the preloader is working.
    MY PROBLEM:
    Whenever I uploaded these two files: (1) index.swf and (2) index.html, the preloader doesn't work. When viewed in browser it apprears to be white screen. After a couple of minutes, the index.swf appears and the preloader is not appearing as it should be. With (2), I didn't change anything on Dreamweaver just upload the file published by Flash Professional CS4.
    WHAT IS THE PROBLEM? Can anyone help me with this. I've uploaded (PUT) the files through Dreamweaver with a testing server configured.
    Thank you & Regards,
    YSONG

    hi Ned,
    I currently downloading the tutorial link you posted.
    Do you have any idea what is really happening? Because I really wanted to have a loading text only before the whole site is loaded. The SIMULATED DOWNLOAD in Flash CS4 is working great but whenever copy it in my hosting server and view it in my browser the preloader is not working.
    Thank you for your immediate response.
    Regards,
    YSONG

  • FlashVars not working in CS3 anymore?

    Ok, I'm at the end of my patience and is considering to bring
    ducktape, some napalm and a lot of matches to this party.
    I'm using Flash CS3 on a Vista Ultimate box that has Appserv
    installed (PHP4, MySQL and Apache).
    I am trying to send some data from a HTML file into Flash
    movie clip. Found the FlashVars tutorial in the Flash help file and
    followed it step-by-step. But it keeps on showing me undefined.
    Unfortunately it has to be done to be able to run in Flash 6 and
    higher so AS3 is out of the question.
    I have made sure that I set my Publish setting to be
    Actionscript 2, and the Flash player to version 8. I have also done
    these tests using Firefox 2, IE 7, Opera 9 and Safari Beta 3. No
    joy. Any other ideas that works?
    Here is the code I use:

    Ok, I'm at the end of my patience and is considering to bring
    ducktape, some napalm and a lot of matches to this party.
    I'm using Flash CS3 on a Vista Ultimate box that has Appserv
    installed (PHP4, MySQL and Apache).
    I am trying to send some data from a HTML file into Flash
    movie clip. Found the FlashVars tutorial in the Flash help file and
    followed it step-by-step. But it keeps on showing me undefined.
    Unfortunately it has to be done to be able to run in Flash 6 and
    higher so AS3 is out of the question.
    I have made sure that I set my Publish setting to be
    Actionscript 2, and the Flash player to version 8. I have also done
    these tests using Firefox 2, IE 7, Opera 9 and Safari Beta 3. No
    joy. Any other ideas that works?
    Here is the code I use:

  • AS2 fading button not working in AS3

    Hello, Experts.
    I hope my question is simple enough for a simple answer.
    I have a button that I made a couple of years ago (in AS 2.0) that has a rollover fade in/out effect. Some of the AS is written in the object itself. The button works fine when it's loaded as an external movie to a blank mc when the host is also published in AS2. But if I attempt to use the swf in a main movie that is AS3, none of the fading action works.
    My question: Is this normal and to be expected? I know that AS3 will not allow AS to be placed in the object. But will AS3 also go as far to disable an otherwise functioning object that has code in itself?
    Thank you in advance for the education.

    there is no problem with as2 functioning in a swf that's loaded by an as3 file.  ie, you must use the loader class.

  • Seek to a particular location for MONO sounds not working in AS3

    Hi Guys,
    I am facing an issue seeking to a particular location for
    MONO sounds with sample rate 22KHz. Another thing I observed was
    that there is a problem seeking to positions greater than half the
    total length of the actual sound, otherwise it is working fine. I
    have been trying to test this in a browser.
    Any ideas or thoughts will really help me.
    Cheers,
    TarXXXXX

    I am not streaming the sound from FMS, it is normal
    progressive download with audios placed local alongside my swf
    file. It works fine for 44 KHz sounds.

  • Publishing a flash with AS3.0 on website does not work

    Okay, I'm finally at the end of my flash card. Here's the whole code.
    //import classes
    import com.greensock.TweenLite;
    import com.greensock.easing.*;
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    //end of importing
    //start of sound section is for sound
    var cssLoader:URLLoader;
    var css:StyleSheet;
    var soundReq:URLRequest=new URLRequest("audioFiles/PaukenBrumfiel_AngelsOnHigh.mp3");
    var sound:Sound = new Sound();
    sound.load(soundReq);
    sound.addEventListener(Event.COMPLETE, onComplete);
    //end of sound section
    //Loading external texts
    var weiss:Font = new Weiss();
    var weissBold:Font = new WeissBolder18();
    var weissBolder:Font = new WeissBolder();
    var slideXTween:Tween;
    var txtAlphaTween:Tween;
    var txtNextText:Tween;
    var txtContainer:Sprite;
    var txtField:TextField = new TextField();
    var myTxtField:TextField = new TextField();
    var txtFldwebImages:TextField = new TextField();
    var textRequest:URLRequest=new URLRequest("happyHoliday.txt");
    var textLoad:URLLoader = new URLLoader();
    var txtFormat:TextFormat = new TextFormat();
    var myLinkFormat:TextFormat = new TextFormat();
    var strLink:String;
    var numXPos:Number;
    var numYPos:Number;
    //end of loading external texts
    function onComplete(event:Event):void {
        sound.play();
    function textReady(event:Event):void {
        //txtFormat.font= weiss.fontName;
        txtFormat.color=0x000066;
        txtFormat.size=24;
        //txtField.x = stage.stageWidth;
        //txtField.width = 800;
        txtField.autoSize=TextFieldAutoSize.LEFT;
        //txtField.height = txtField.autoSize
        txtField.wordWrap=false;
        txtField.text=event.target.data;
        txtField.setTextFormat(txtFormat);
        //txtField.y = 350;
        txtField.embedFonts=true;
    textLoad.load(textRequest);
    txtFormat.font= weiss.fontName;
    textLoad.addEventListener(Event.COMPLETE, textReady);
    txtField.x=stage.stageWidth;
    addChild(txtField);
    txtField.y=350;
    TweenLite.to(txtField, 40, {x:-stage.stageWidth*2.25, ease:Linear.easeNone, delay:0.5, onComplete:Inspiration});
    function Inspiration():void {
        txtFormat.font= weissBolder.fontName;
        textLoad.load(new URLRequest("inspiration.txt"));
        txtField.x=130;
        txtField.y=330;
        txtField.alpha=0;
        TweenLite.to(txtField, 5, {alpha:1, onComplete:GoogleFunc});
    function GoogleFunc():void {
        //create and initialize css
        addChild(myTxtField);
        strLink = "<a href='http://www.google.com/' target='_blank'>Google</a>";
        numXPos = 180;
        numYPos = 370;
        var myCSS:StyleSheet = new StyleSheet();
        myCSS.setStyle("a:link", {color:'#000066',textDecoration:'none'});
        myCSS.setStyle("a:hover", {color:'#FF6600',textDecoration:'underline'});
        txtFormat.font = weissBold.fontName;
        //txtFormat.color=0x000066;
        txtFormat.size=20;
        //txtFormat.bold = true;
        myTxtField.setTextFormat(txtFormat);
        myTxtField.defaultTextFormat=txtFormat;
        myTxtField.styleSheet = myCSS; // Linking CSS to TextField
        myTxtField.htmlText="";
        myTxtField.htmlText=strLink;
        myTxtField.wordWrap=false;
        //myTxtField.embedFonts = true;
        myTxtField.width = strLink.length*2;
        myTxtField.x=numXPos;
        myTxtField.y=numYPos;
        //trace("Third txtField.y: " + txtField.y);
        myTxtField.alpha=0;
        TweenLite.to(myTxtField, 1, {alpha:1, onComplete:webImages});
        //trace("tween done");
    function webImages():void {
        addChild(txtFldwebImages);
        var myCSS:StyleSheet = new StyleSheet();
        myCSS.setStyle("a:link", {fontsize:'20',color:'#000066',textDecoration:'none'});
        myCSS.setStyle("a:hover", {fontsize:'20',color:'#FF6600',textDecoration:'underline'});
        txtFormat.font = weissBold.fontName;
        //txtFormat.color=0x000066;
        txtFormat.size=20;
        //txtFormat.bold = true;
        txtFldwebImages.setTextFormat(txtFormat);
        txtFldwebImages.defaultTextFormat=txtFormat;
        txtFldwebImages.styleSheet = myCSS; // Linking CSS to TextField
        txtFldwebImages.htmlText = "";
        txtFldwebImages.htmlText="<a href='http://www.google.com/webImages/' target='_blank'>Google Images</a>";
        txtFldwebImages.wordWrap=false;
        //myTxtField.embedFonts = true;
        txtFldwebImages.width = 300;
        txtFldwebImages.x=300;
        txtFldwebImages.y=370;
        txtFldwebImages.alpha=0;
        TweenLite.to(txtFldwebImages, 1, {alpha:1});
    //end of loading external texts
    Okay, the problem is when I publish the .swf files and put it in an html or .aspx page, it does not work. The audio is not there and a few others things ar enot working. However, it does work if I click on the.html file that Flash created during the publication.
    Here are the folder structions:
    www.mysite.com/myFlashPage.aspx
    www.mysite.com/flashFileFolder/
    www.mysite.com/flashFileFolder/audioFiles/
    So, the myFlashPage.aspx containsthe myFlash.swf file that is inside the flashFileFolder. For some reason, it does not work. Any suggestion is much appreciated.

    The .html file does work if I publish it into the same folder as I created the Flash project. However, when I publish the
    flash .swf to my web site folder (mapped), it's no longer working. The mapped web site drive structher are as follows:
    D:\Mysite\ contains the .html file
    D:\Mysite\flashFileFolder\ contains the .swf file
    D:\Mysite\flashFileFolder\audioFiles contains the PaukenBrumfiel_AngelsOnHigh.mp3 file
    D:\Mysite\flashFileFolder\greensock-tweening-platform-as3 contains all the tweenlite files
    The .html file does not work either. What else do I need to change?

  • AS3 stop(); not working w/ Multi URLRequest

    When I place one link in AS3 with a stop everything works great!
         stop();
         import flash.events.MouseEvent;
         //---link1
         var getLink1:URLRequest = new URLRequest("http://www.google.com");
         link1btn.addEventListener(MouseEvent.CLICK, onClick);
         function onClick(event:MouseEvent):void{
             navigateToURL(getLink1, "_self");
    but when I add more links my stop(); fails to work - like the example below.
              stop();
              import flash.events.MouseEvent;         
              //---link1
              var getLink1:URLRequest = new URLRequest("http://www.google.com");
              link1btn.addEventListener(MouseEvent.CLICK, onClick);
              function onClick(event:MouseEvent):void{
                  navigateToURL(getLink1, "_self");
              //---link2
              var getLink2:URLRequest = new URLRequest("http://www.yahoo.com");
              link2btn.addEventListener(MouseEvent.CLICK, onClick);
              function onClick(event:MouseEvent):void{
             navigateToURL(getLink2, "_self");
    link1btn and link2btn are instance names.
    Any ideas?

      stop();
      import flash.events.MouseEvent;        
    var getLink1:URLRequest = new URLRequest("http://www.google.com");
    var getLink2:URLRequest = new URLRequest("http://www.yahoo.com");
       link1btn.addEventListener(MouseEvent.CLICK, onClick);
    link2btn.addEventListener(MouseEvent.CLICK, onClick);
    function onClick(event:MouseEvent):void{
    if (event.target.name=="link1btn")
             navigateToURL(getLink1, "_self");
    else (event.target.name=="link2btn")
             navigateToURL(getLink2, "_self");
    IF NOT WORKS, change event.target.name to event.currentTarget.name

  • AS3 not working when uploaded to linux server

    Works like a charm when I preview it but when I upload to the
    server (tried 3 different ones) it just ignore the actionscripts
    all together no matter what I use.
    What I have is a rotating banner system. I set it up to
    randomly start at a specific one. If I preview it locally or run in
    in my .html file locally (just using preview in dreamweaver) it
    works like a charm and starts at a random one. When I upload it it
    just starts at the first one like the actionscripts do not exist.
    Using Flash CS3 and AS3.
    Thanks

    Pretty sure it is not a problem with the upload as I have
    been doing this for years the same way with Dreamweaver. In
    diagnosing the issue I rebuilt it and in place of the movie clips I
    just put text and uploaded it. Worked like a charm. Added the movie
    clips and again does not work when I upload it. Ignores the
    actionscript and just plays them in order. Did a build from top to
    bottom and from bottom to top also. Something in the movie clips is
    causing it but darned if I can find the answer. I have done this
    same thing before and it worked just fine. Just at a loss. I am
    attaching the code inside the movie scripts which work just fine.
    It is just ignoring scripts on the Scene 1 level.

  • New to AS3 - URL Function not working...please help!

    Hi i'm very new to Flash and AS3. I've created a clip and need to link some buttons to some pages on my site but they don't seem to work. Please let me know if nyone can help me...below is my code:
    b_1.addEventListener(MouseEvent.CLICK,b_1ClickHandler);
    function b_1ClickHandler(e:MouseEvent)
                navigateToURL(newURLRequest("http://www.MYURL.com/.html"),"_self");
    Please let me know what i'm doing wrong.
    Thanks in advance!

    If you are editing/testing in the Flash editor, the html end of things is nothing to be concerned about at this stage, and will likely take care of itself when it comes time.
    So you run the file in Flash and do not get any error messages?  Then place a trace command inside the button's event handler function to see if the button is communicating with it....
    function b_1ClickHandler(e:MouseEvent)
        trace("button works");           
         navigateToURL(new URLRequest("http://www.MYURL.com/.html"),"_self");
    Also, I'm just noticing you don't have an actual file named in the url, so in case the "not working" is that you can't get the desired page to show, that may be the cause.  Normally I would suggest testing url links online rather than in Flash because it's iffy to try to get the web involved with the editor at times.

  • Cp6 + AS3 swf : "target == stage" not working

    Hello,
    I've done a SWF where I want to reset stage when clicking outside objects.
    The SWF alone works perfectly but does not inside Captivate.
    I did a simplified version :
    mc.visible = false;
    stage.addEventListener(MouseEvent.CLICK, clickOutside, false, 0, true);
    function clickOutside(e:MouseEvent):void
              if (e.target == stage)
                        mc.visible = true;
    The line :   if (e.target == stage)
    does not work anymore.
    Does importing SWF in Cp adds another level (stage is Cp scene, the SWF parent) ?
    Thanks.

    The captivate slide is the object capturing the event. Why don't you use an invisible button or transparent movieclip to capture the event? Then check if e.target.name == instance name.

  • Flash Game Score not working AS3, please help?

    So Im creating a game and all I wanted to add was a counter that increments constantly until a player loses the game.
    I created my score class and it looks like this:
    package
        import flash.display.MovieClip;
        import flash.display.Stage;
        import flash.text.TextField;
        import flash.events.Event;
        import flash.utils.Timer;
        import flash.events.TimerEvent;
        public class Score extends MovieClip
            public var second:Number = 0;
            public var timer:Timer = new Timer(10);
            private var stageRef:Stage;
            public function Score(stageRef:Stage)
                x = 537.95;
                y = 31.35;
                this.stageRef = stageRef;
                timer.addEventListener(TimerEvent.TIMER, clock);
                timer.start();
            function clock(evt:TimerEvent):void
                second += 1;
                scoreDisplay.text = String("Score: " +second);
    and this is my engine class that adds it to the stage:
    package  {
    //list of our imports these are classes we need in order to
    //run our application.
    import flash.display.MovieClip;
    import flash.display.Stage;
    import flash.events.Event;
    public class Engine extends MovieClip{
        private var enemyList:Array = new Array();
        private var ourBoat:Boat;
        private var score:Score;
        public function Engine() : void{
            //create an object of our ship from the Ship class
            ourBoat = new Boat(stage);
            score = new Score(stage);
            //add it to the display list
            stage.addChild(ourBoat);
            stage.addChild(score);
    So that creates a timer on the stage and continuously increments, but when I compile, I get no errors and my timmer for some reason doesn't work, it just displays random numbers, please help! If there is a better way of doing this please enlighten me.

    When I said it continuosly increments, I meant thats the function I was looking to do. The file compiles fine with no errors, but when you look at the textbox where im displaying the timer it flickers strangely and shows random numbers as if its crashed or that its not working properly just a load of 1's and 0's. I even tried changing the miliseconds to 1000ms it still does the same thing.

  • Some Videos and Games Do Not Work, Mac Snow Leopard

    This is a problem I have actually had for a while, but it never really affected much that I considered important. Now it is just getting annoying.
    Basically, certain video players and online games do not work. Most video players outside of YouTube will not work. The player will load, but the video never does. For example, the most recent video I have had trouble with is the Nickelodeon video player for The Legend of Korra. When I try to watch that, I get a black box, and a “Loading” type image pops up, swirls around once, and then disappears. After that, the whole thing becomes unresponsive. This is typical of many, but not all, video players I have encountered on the web.
    I am not sure if it is related, but I have also had trouble with various games. Often time, they will work fine until reaching some transition point, such as the end of a level, and then they will become unresponsive. A good example here is the game Bloons Tower Defense 4. This is a game I know was responsive on my older system. But now, when it loads the level, it freezes up before loading the available towers to place and becomes otherwise unresponsive.An example is shown below. The top-left question mark box in the right-hand sidebar should reveal a dart monkey, and my starting money should be filled, but instead the game hangs up. I have had similar hang-ups on a number of games, so I am certain the problem is not just with this game.
    As I said, I have had this problem for a while now. I have upgraded both Flash and my browsers a number of times since they started. I have these problems in all my browsers (Safari, Opera, Camino, Firefox), so it seems to be a problem with Flash. I have also tried uninstalling and re-installing flash and disabling all other browser plug-ins.
    I am using a MacBook Pro with Macintosh OS X 10.6.8 Snow Leopard, 2.53 GHz Intel Core i5, with Flash 11.2.202.233. Current Browsers: Firefox 11.0, Opera 11.61, Camino 2.1.2, Safari 5.1.5
    Any ideas what I could be overlooking?

    Hey, it is getting them to work. Although I still have the “URL Not Found” error on BTD, and I get a whole different debugger error on Korra. But none of the errors prevent the associated items from working. Hopefully this will work in the other places I have had trouble with.
    Anyway, the new error for Korra was:
    Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://pixel.quantserve.com/api/segments.xml?a=p-94wNw88f65Rhk
        at com.mtvnet.reporting.agents::QuantcastReporter/sendDemoData()
        at com.mtvnet.reporting.agents::QuantcastReporter/onCustomData()
        at org.osflash.signals::Signal/dispatch()
        at com.mtvnet.reporting::ReportingManager/dispatch()
        at com.mtvnet.reporting::ReportingManager/onCustomData()
        at com.mtvnet.mediaplayer.view::ReportingMediator/onRegister()
        at org.puremvc.as3.multicore.core::View/registerMediator()
        at org.puremvc.as3.multicore.patterns.facade::Facade/registerMediator()
        at com.mtvnet.mediaplayer::ApplicationFacade/registerMediator()
        at com.mtvnet.mediaplayer.command::ModelPrepCommand/execute()
        at org.puremvc.as3.multicore.core::Controller/executeCommand()
        at Function/http://adobe.com/AS3/2006/builtin::apply()
        at org.puremvc.as3.multicore.patterns.observer::Observer/notifyObserver()
        at org.puremvc.as3.multicore.core::View/notifyObservers()
        at org.puremvc.as3.multicore.patterns.facade::Facade/notifyObservers()
        at org.puremvc.as3.multicore.patterns.facade::Facade/sendNotification()
        at org.puremvc.as3.multicore.patterns.observer::Notifier/sendNotification()
        at com.mtvnet.mediaplayer.command::InitializeCommand/execute()
        at org.puremvc.as3.multicore.core::Controller/executeCommand()
        at Function/http://adobe.com/AS3/2006/builtin::apply()
        at org.puremvc.as3.multicore.patterns.observer::Observer/notifyObserver()
        at org.puremvc.as3.multicore.core::View/notifyObservers()
        at org.puremvc.as3.multicore.patterns.facade::Facade/notifyObservers()
        at org.puremvc.as3.multicore.patterns.facade::Facade/sendNotification()
        at org.puremvc.as3.multicore.patterns.observer::Notifier/sendNotification()
        at com.mtvnet.mediaplayer.model::ConfigLoader/onReady()
        at com.mtvnet.mediaplayer.model::ConfigLoader/set xml()
        at com.mtvnet.mediaplayer.command::LoadConfigCommand/execute()
        at org.puremvc.as3.multicore.core::Controller/executeCommand()
        at Function/http://adobe.com/AS3/2006/builtin::apply()
        at org.puremvc.as3.multicore.patterns.observer::Observer/notifyObserver()
        at org.puremvc.as3.multicore.core::View/notifyObservers()
        at org.puremvc.as3.multicore.patterns.facade::Facade/notifyObservers()
        at org.puremvc.as3.multicore.patterns.facade::Facade/sendNotification()
        at com.mtvnet.mediaplayer::ApplicationFacade/startup()
        at com.mtvnet.mediaplayer::MediaPlayerController/onAddedToStage()
        at com.mtvnet.mediaplayer::MediaPlayerController/initialize()
        at com.mtvnservices.media.as3player.view.mediator::MediaPlayerMediator/initPlayer()
        at com.mtvnservices.media.as3player.controller::InitPlayerCommand/execute()
        at org.puremvc.as3.multicore.core::Controller/executeCommand()
        at Function/http://adobe.com/AS3/2006/builtin::apply()
        at org.puremvc.as3.multicore.patterns.observer::Observer/notifyObserver()
        at org.puremvc.as3.multicore.core::View/notifyObservers()
        at org.puremvc.as3.multicore.patterns.facade::Facade/notifyObservers()
        at org.puremvc.as3.multicore.patterns.facade::Facade/sendNotification()
        at org.puremvc.as3.multicore.patterns.observer::Notifier/sendNotification()
        at com.mtvnservices.media.as3player.controller::ViewPrepCommand/execute()
        at org.puremvc.as3.multicore.core::Controller/executeCommand()
        at Function/http://adobe.com/AS3/2006/builtin::apply()
        at org.puremvc.as3.multicore.patterns.observer::Observer/notifyObserver()
        at org.puremvc.as3.multicore.core::View/notifyObservers()
        at org.puremvc.as3.multicore.patterns.facade::Facade/notifyObservers()
        at org.puremvc.as3.multicore.patterns.facade::Facade/sendNotification()
        at com.mtvnservices.media.as3player.controller::ModelPrepCommand/execute()
        at org.puremvc.as3.multicore.core::Controller/executeCommand()
        at Function/http://adobe.com/AS3/2006/builtin::apply()
        at org.puremvc.as3.multicore.patterns.observer::Observer/notifyObserver()
        at org.puremvc.as3.multicore.core::View/notifyObservers()
        at org.puremvc.as3.multicore.patterns.facade::Facade/notifyObservers()
        at org.puremvc.as3.multicore.patterns.facade::Facade/sendNotification()
        at org.puremvc.as3.multicore.patterns.observer::Notifier/sendNotification()
        at ConfigLoaderProxy/onConfigLoad()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()

  • FABridge is not working in IE 7.0

    I am using dijit.dialog(From Dojo toolkit) for generating
    popup/dialog. Flex/swf is loaded in the Dialog and when i try to
    access the swf file in IE 7.0 using FABridge its not working, but
    its working in Mozilla.
    Following JavaScript function will be called when I click on
    button in Dialog popup
    function AddItem(){
    try{
    var flexApp = FABridge.AddSpecCategoryApp.root();
    catch (e) {
    alert("flash Bridge error: " + e.name + " " + e.message );
    Flex embeded in dijit.dialog:
    <object id="ASApp"
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,5,0,0"
    height="100%" width="100%">
    <param name="flashvars"
    value="bridgeName=AddSpecCategoryApp"/>
    <param name="src" value="Test.swf"/>
    <param name="wmode" value="opaque" />
    <embed name="ASApp" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    src="Test.swf" height="100%" width="100%" wmode="opaque"
    flashvars="bridgeName=AddSpecCategoryApp"/>
    </object>
    I have added debug statements in FABridge__bridgeInitialized
    in FABridge.js, while dialog is loading its invoked and registered.
    But when I try to access .root , I am getting "Object doesn't
    support this property or method". Help me to resolve this issue
    ASAP.
    This help us to decide on FLEX for our project. Its bit
    critical.

    If you're using a newer compiler, you can use the "-target 1.1" option to specify that the class files generated should work with a 1.1 version JVM. However, it is better to compile your code with JDK 1.1 if you will run it with a version 1.1 JRE -- that way, you don't use newer library features. You can get a version 1.1 compiler from the Products & APIs link on Sun's Java website.

  • Aggregator V.5 self paced learning not working

    . I have 11 individual projects that I have combined into one aggregated file. When I run the aggregated file, the self-paced learning is not working correctly. Here is what I know:
    Captivate 5, WIN 7, Chrome browser. Clients choice of Captivate version.
    Client is not using a LMS
    All 11 projects have the “self-paced learning” checked in the TOC.
    I have published all 11 projects and they run fine. I can exit the browser while they are running and restart each project. The box displays, “Continue from where you stopped last time?” and I can either resume or start over.
    For each of the 11 projects, here are some settings:
    In >File>Publish settings>Project>Start end> Autoloader is checked
    In >File>Publish settings>Project>Start end> Autoplay is checked
    In >File>Publish> eLearning output=disabled
    In >File>Publish>ActionScript Version=AS3
    I have republished all individual projects, and also checking the “Force republish all the slides”.
    Cleared the browser cache
    All 11 individual projects (.swf and .html), the .js file as well as the aggregated file(s) (.swf and .html) are all located in the same folder on my hard drive. They are close to the top of the naming hierarchy.
    Client wants to be able to use self-paced learning  in the Aggregated files to allow the learner to resume where they left off as well as starting over. I start the aggregated file, let the slides run for a bit and then stop, exiting the browser. I return to the location on my hard drive and click the .html file name. I am returned to the aggregated file at the very beginning and not given the option to start where I left off. I have checked each of the projects persistanceInfo.sol. Among the oddball characters, the wording "don'task" appears, but I am not sure if some of the characters are indicative of the "Don't ask" box being checked or not. I have reviewed each of the projects in the aggregated file. On each and every occasion, when I close and reclick the link, I am presented with the dialog box asking if I want to continue where I left off. Clicking ok allows the project to resume where I left off. Clicking cancel restarts the project at the beginning.
    Additionally, I have made sure that the target file location is listed on the Global Flash Security settings as a trusted location.I have uploaded the files to a web server on our company site. Running the file from there provides no additional benefit-I get the same results.
    Thoughts?
    Thanks
    Jim

    All slides in the presentation are marked as continue.  I have gone
    through the first 5 slides and when I refresh the browser or exit out of
    Internet Explorer and open the project again it just starts at the
    beginning.
    Brenda
    From:   Lilybiri <[email protected]>
    To:     Brenda Dersham <[email protected]>
    Date:   01/25/2011 08:33 AM
    Subject:        Self-Paced Learning - Bookmark not
    working in Captivate 5
    Hello Brenda,
    How did you check: after uploading to a LMS?
    You have to be aware of the fact that a slide will be marked as 'viewed'
    only when the playbar has played the whole slide till the end. If you do
    pause slides with a click box, button, TEB and attach the action 'Go to
    Next slide' or something similar instead of the default action 'Continue'
    this will not happen and the slide will not be marked as completed.
    Lilybiri

  • PrevFrame() buttons in a swf file inserted in html not working in Firefox

    Hi!
    I have a very weird problem.
    I have created a photo gallery using AS3 in Flash CS5. I have used prevFrame() and nextFrame() actions for "previous photo" and "next photo" buttons as well as for "previous thumbnails" and "next thumbnails" buttons.
    All the buttons work fine when i run the swf files as well as when i run the swf files in Firefox 8.0 and IE9. However, once I insert this swf file into my html file using Dreamweaver CS5->Insert->Media->swf, the "previous" buttons dont work in Firefox 8.0! the previous image button works sometimes whereas the previous thumbnails button does not work at all!  They work fine in IE9. The next buttons also work fine in every browser. Heres my code:
    stop();
    thumbprev_btn.visible=false;
    next_btn.addEventListener(MouseEvent.CLICK, nextimage);
    prev_btn.addEventListener(MouseEvent.CLICK, previmage);
    thumbprev_btn.addEventListener(MouseEvent.CLICK, prevthumbs);
    thumbnext_btn.addEventListener(MouseEvent.CLICK, nextthumbs);
    function nextimage(event:MouseEvent):void
    if(mc_content.currentFrame==mc_content.totalFrames)
    mc_content.gotoAndStop(1);
    else
    mc_content.nextFrame();
    function previmage(event:MouseEvent):void
    if(mc_content.currentFrame==1)
    mc_content.gotoAndStop(mc_content.totalFrames);
    else
    mc_content.prevFrame();
    function nextthumbs(event:MouseEvent):void
    thumbprev_btn.visible=true;
    nextFrame();
    if(currentFrame==3)
    thumbnext_btn.visible=false;
    function prevthumbs(event:MouseEvent):void
    thumbnext_btn.visible=true;
    prevFrame();
    if(currentFrame==1)
    thumbprev_btn.visible=false;
    Please help.

    Thankyou Ned. The html file published by flash worked perfectly however the problem persisted even if i used this html file's code. But strangely, the problem disappeared after a few days! Now the original dreamweaver code is also working fine.

Maybe you are looking for

  • Constructor works in one place but not another

    This is a program related to the game medal of honor. The constructor: Rcon status = new Rcon("say test", "superman3","213.221.175.132", "29961"); Works from the main class, but where it's positioned in the class below, it doesn't - I'd love to know

  • Off cycle after termination

    Hi Experts, In this scenario, off-cycle payroll run deals with time related earning like OT etc.  When an employee terminated, action completed, regular payroll run completed and there is no master data change, the off-cycle run should pick up these

  • Out parameter problem with mssqlserver4v70rel510

     

  • Can I use Ipad in other mobile phone operator's network in the world

    I am living in bangladesh and would like use a iPAD 2, i would like to use the iPAD in mobile opeator's network, which is a CDMA EVDO network. It would be very helpful for me if anyone can tell, is it possible to use iPAD 2 in any other CDMA network

  • Dreaded "Error compiling movie - unkown error" message.

    Hi, I'm getting the above message on a project I worked on a week ago, with no problems, and went back to today. It's on render, I don't know yet about export. On the timeline I've got clips, photos, titles, effects and an adjustment layer. I removed