Here's a quick q/a:
Q: How do you add flash to a skin?
A: Just as you can add a button (B) or label (L) to a skin using RRskineditor, you can also add a "Flash Movie" (F) by defining it's size and path. Flash movies have the extension (.swf) and should be placed in the skin folder. You can refer to the skinning tutorials by Meelobee or J187 for more information about the skin editor.
Q: How do I make the flash movie?
A: Typically, Macromedia Flash MX, or SwishMax are used. (SwishMax offers a free 30-day trial with full functionality) Small flash movies such as clocks, calculators and logos can also be downloaded from various sites on the net.
Q: How do you get a RR label to show in the flash movie?
A: First you want to define the desired RR label in your skin by manually editing the .skin file or by using RRSkinEditor. (For this example I will use the "CPU" label, although any RR label can be used) When you add the label to your skin file, you may set the length and width of the label to 0 and the x/y position to 0 as well. Below is what it should look like in your skin file:
L,0,0,0,0,,,,,,"CPU",
Next you will want to create the flash movie. All you will need to do is add a "dynamic" textbox and name it "CPU" (without quotes). That textbox will now automatically update itself with the CPU reading from RoadRunner. You may use any font, color or effect you desire for the textbox. Now, you just need to export the movie to .swf and define it in the skin file.
To define it, select ADD > FLASH MOVIE in RRskinEditor and type out the path/filename of the swf in quotes: "cpu.swf"
Also, remember to enter the correct width and height of the flash movie.
TIPS: If the label doesn't display in your flash movie, make sure the dynamic textbox is large enough to show the entire contents of the RR label. If your textbox is cutting off even the last digit/letter of the label, it may not show. If it still doesn't show, you may have the label in a sub movie "sprite" in which case, you need to name your dynamic textbox "_root.CPU" (without quotes)
Q: How does flash communicate with RR and viceversa?
A: Flash uses "fscommands" to send commands to RR. Alternately, every label defined in the current skin is automatically sent to your flash movie as a string variable. You can access the contents of the variable simply by using the name of the label. For example: If you have a "VOLUME" label defined in the skin, RR will automatically send the current volume % to flash and you can utalize it in flash like so:
Q: What skin commands can I send to RR?Code:if (VOLUME == "100%"){ myVar = "Turn that **** down!!!"; fscommand("SETVOL;Wave;50"); }
A: You can send any and every skin command using "fscommand("SKINCOMMAND");" However, there are some special characters that need to be sent differently.
- @@ is used in place of ! (i.e. "@@SELECT+")
- \\ is used instead of single \ (i.e "RUN;C:\\myapp.exe")
Also, button up/down states can be recreated in flash. For example, a fscommand("NEXT","BUTTONDOWN") would start fast forwarding the song until a fscommand("NEXT","BUTTONUP") is executed.
That's the basics i guess. I have more info if anyone is interested. Is this even understandable? (I've never made a FAQ before)



LinkBack URL
About LinkBacks
Reply With Quote
)



Bookmarks