Announcement

Collapse
No announcement yet.

Flash command question

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Flash command question

    doing some flash skinning i found a little issue, not sure if is a bug or is me not using the command correctly, heres whats happening.

    i need to poll a variable data, using this.

    Code:
    Label Polling from Flash: fscommand("GETLABEL","<LABEL CODE>");
    You may receive empty labels if they don't exist or are not used by RR at the current time.
    You may also poll RR VARIABLES using the syntax: fscommand("GETLABEL","=$MYVAR$")
    so if i ask for a label i.e.

    Code:
    fscommand("GETLABEL", "Time")
    i get _root.TIME this works perfectly



    BUT if i ask for a variable like this

    Code:
    fscommand("GETLABEL", "=$RRDroid_PATH$")
    _root.RRDROID_PATH is not created, i tried _root.$RRDROID_PATH$ nothing as well. so im asking for any help or guide on how to achieve what im after. thanks in advance.

    as of now, im using upon loading the screen,
    Code:
    SetFlashVar;RRDroid_PATH;$RRDroid_PATH$
    NOTE: i tried with known variables like "RRPATH" and "SKINPATH" just to make sure my custom var isnt the issue, and is the same.
    Last edited by EL CAMINO; 11-16-2012, 03:43 PM.
    BASSRR ==> [Audio Player/MusicDB/Cd Player/Ripper/Rate/Internet Radio/Audio Capture/Youtube Video]
    RRTube ==> [View/Download Youtube Videos]
    WifiMan ==> [Wifi Manager]
    RRec ==> [Audio Capture]

    If You Want To Be Given Everything, Give Everything Up ...
    Bird York -- In The Deep --

  • #2
    no reply? means no one knows how this works?.

    guino?, mitch? would you guys check please, not trying to say is a bug, but, seeing how is explained on Skin Commands how to use "GETLABEL" i guess the code is something similar to this.

    Code:
        Private Sub flash_FSCommand(sender As Object, e As AxShockwaveFlashObjects._IShockwaveFlashEvents_FSCommandEvent) Handles flash.FSCommand
            Select Case e.command.ToLower
                Case "getlabel"
                     flash.SetVariable(e.args.ToUpper, GetLBLValue(e.args.ToLower))
    
            End Select
        End Sub
    so if i ask for a label. works as it should, naming the new flash variable as the label requested.

    HTML Code:
    fscommand("GETLABEL", "Time")
    BUT if a RR variable is requested, wont work, because a flash variable cant be named _root.=$RRPATH$
    HTML Code:
    fscommand("GETLABEL", "=$RRPATH$")
    please correct me if im wrong. like i said, im using "FlashSetVar" command when loading the screen where the swf is embedded. works but i preffer to request the data from
    flash when the movie needs it.
    BASSRR ==> [Audio Player/MusicDB/Cd Player/Ripper/Rate/Internet Radio/Audio Capture/Youtube Video]
    RRTube ==> [View/Download Youtube Videos]
    WifiMan ==> [Wifi Manager]
    RRec ==> [Audio Capture]

    If You Want To Be Given Everything, Give Everything Up ...
    Bird York -- In The Deep --

    Comment


    • #3
      Sorry for the long delay on answering ...
      I believe you're correct as the getlabel command would 'try' to create the variables _root.=$VARNAME$ and probably fail if it doesn't conform to variable naming rules in flash.

      You can however obtain the same desired effect as fscommand("GETLABEL","=$VARNAME") using fscommand("setflashvar;VARNAME;$VARNAME$") -- it will not be as "immediate" as GETLABEL but it will work (you can even call fscommand("waitexec") to wait for the command to complete). I'm adding a "GETVAR" command directly to avoid the problem and work as immediate as GETLABEL - PM me if you want a test version.
      Ride Runner RR's Myspace

      "Being happy is not about having what you want, it's about wanting what you have."
      "The best things in life are always free - but that doesn't mean money can't buy you good things."

      Comment


      • #4
        i tried to change my script to getvar, but it don't work. could you check my script?

        Code:
        this.onEnterFrame = function () {
        var tmp
        
        if (_root.IBuscommunicatoRR_COOLANTTEMP == undefined) 
        {
        	tmp = 0;
        }
        else 
        {
        tmp = _root.IBuscommunicatoRR_COOLANTTEMP;
        }
        
        fscommand("GETVAR","$IBuscommunicatoRR_COOLANTTEMP$");
        
        if (tmp <= 60) 
                    {    
                    zeiger._rotation = -90+11.25;
        	    }
        
        else if (tmp >= 120) 
                {    
                zeiger._rotation = +90-11.25;
        	}
        else  {
                zeiger._rotation = -90+11.25 + ((tmp-60) * 2.625);
                }
        
        tmp_txt = tmp + "C"     
        
        	}
        RR-Skin: BMW OpenBM Skin for E39 [never ending progress :-(]
        RR-Plugin: IBusCommunicatoRR new Updates

        Comment


        • #5
          GETVAR isnt available yet, unless you have the test exe, im still waiting for guino to send me the exe where he is fixing this issue, another thing is, RR sets flash variables in uppercase, and flash is very picky on that, just some thoughts while looking at youre code.
          BASSRR ==> [Audio Player/MusicDB/Cd Player/Ripper/Rate/Internet Radio/Audio Capture/Youtube Video]
          RRTube ==> [View/Download Youtube Videos]
          WifiMan ==> [Wifi Manager]
          RRec ==> [Audio Capture]

          If You Want To Be Given Everything, Give Everything Up ...
          Bird York -- In The Deep --

          Comment


          • #6
            in last RR Version from 2013-01-01 should GETVAR added.
            Last edited by harryberlin; 01-03-2013, 01:56 PM.
            RR-Skin: BMW OpenBM Skin for E39 [never ending progress :-(]
            RR-Plugin: IBusCommunicatoRR new Updates

            Comment


            • #7
              dont use the $

              "GETVAR", "IBuscommunicatoRR_COOLANTTEMP"
              -Thanks
              Mitch
              www.rush2112.net

              "Did you test it in carwings??"

              Sun, Come shine my way
              May healing waters bury all my pain
              Wind, Carry me home
              The fabric of reality is tearing apart
              The piece of me that died
              Will return To live again

              Comment


              • #8
                lol, i missed that, time for testing then.
                BASSRR ==> [Audio Player/MusicDB/Cd Player/Ripper/Rate/Internet Radio/Audio Capture/Youtube Video]
                RRTube ==> [View/Download Youtube Videos]
                WifiMan ==> [Wifi Manager]
                RRec ==> [Audio Capture]

                If You Want To Be Given Everything, Give Everything Up ...
                Bird York -- In The Deep --

                Comment


                • #9
                  Originally posted by mitchjs View Post
                  dont use the $

                  "GETVAR", "IBuscommunicatoRR_COOLANTTEMP"
                  thx, it works fine.
                  RR-Skin: BMW OpenBM Skin for E39 [never ending progress :-(]
                  RR-Plugin: IBusCommunicatoRR new Updates

                  Comment

                  Working...
                  X