Start New Discussion within our Software Development Community

Ok how would i be able to set a color palette to some variables....i need it to change the color of all these vars at one time :S

Call ShockwaveFlash1.SetVariable("_level0.holder_mc.GLOBAL_CRUMBS.player_colours.1", "0xD4AF37")
Call ShockwaveFlash1.SetVariable("_level0.holder_mc.GLOBAL_CRUMBS.player_colours.2", "0xD4AF37")
Call ShockwaveFlash1.SetVariable("_level0.holder_mc.GLOBAL_CRUMBS.player_colours.3", "0xD4AF37")
Call ShockwaveFlash1.SetVariable("_level0.holder_mc.GLOBAL_CRUMBS.player_colours.4", "0xD4AF37")
Call ShockwaveFlash1.SetVariable("_level0.holder_mc.GLOBAL_CRUMBS.player_colours.5", "0xD4AF37")
Call ShockwaveFlash1.SetVariable("_level0.holder_mc.GLOBAL_CRUMBS.player_colours.6", "0xD4AF37")
Call ShockwaveFlash1.SetVariable("_level0.holder_mc.GLOBAL_CRUMBS.player_colours.7", "0xD4AF37")
Call ShockwaveFlash1.SetVariable("_level0.holder_mc.GLOBAL_CRUMBS.player_colours.8", "0xD4AF37")
Call ShockwaveFlash1.SetVariable("_level0.holder_mc.GLOBAL_CRUMBS.player_colours.9", "0xD4AF37")
Call ShockwaveFlash1.SetVariable("_level0.holder_mc.GLOBAL_CRUMBS.player_colours.10", "0xD4AF37")
Call ShockwaveFlash1.SetVariable("_level0.holder_mc.GLOBAL_CRUMBS.player_colours.11", "0xD4AF37")
Call ShockwaveFlash1.SetVariable("_level0.holder_mc.GLOBAL_CRUMBS.player_colours.12", "0xD4AF37")
Call ShockwaveFlash1.SetVariable("_level0.holder_mc.GLOBAL_CRUMBS.player_colours.13", "0xD4AF37")

That would depend on the ShockwaveFlash1 object. You could use a loop from 1 to 13 to cut down on the code, but if the object doesn't allow setting multiple variables in one call, you really don't have any choice.

Do you have an object reference? If so, post a link.

This article has been dead for over six months. Start a new discussion instead.