Oh! What a nice forum…
I am using Flash MX in a VB application. Can anyone help me the simplest way to change the color of a movieclip at root level from a VB (Call ShockwaveFlash1) call?
Thanks in advance
Oh! What a nice forum…
I am using Flash MX in a VB application. Can anyone help me the simplest way to change the color of a movieclip at root level from a VB (Call ShockwaveFlash1) call?
Thanks in advance
I’ve only loaded in a hex color with a text file. Would that help?
Yes, I just need to change the color to a hex color from a VB call. Thanks
I don’t know what a VB call is, but I’ll tell you how I did it with the txt file. I have a text file called color.txt. In that file, it has only one line that says this:
newColor=336699
Then on the first frame of your movie, put in these actions:
var lv = new LoadVars(), circleColor = new Color(circle);
lv.onLoad = function(success) {
if (success) circleColor.setRGB("0x"+this.newColor);
}
lv.load("color.txt");
Then on your stage, have a movieClip with the instance name of ‘color’. In reality, I’ve actually used this for a nav system for my father who does web design, but doesn’t know flash. He sells this and simply changes the hex color in the text file and then another text file holds the names for the buttons.
Hope that does it for you - sorry I don’t know what VB is.
VB = Visual Basic.
VB is Visual Basic,
OK, FreddyThunder, you have thrown some light. I shall try something along those lines. Thanks
I actually caught on to that. There’s a tut here on using VB and Flash so I downloaded the zip and played it on my computer and it didn’t do anything - just a box and a button with no function - oh well, I must have done something wrong. :*(
:: Copyright KIRUPA 2024 //--