Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 01:56
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  PHP, Perl, ASP, JSP, CFM (Moderators: Flash-db, Musicman, vesa kortelainen, Ronald Wernecke, Jorge Solis, nothingGrinder)
| | |-+  setProperty
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: setProperty  (Read 540 times)
ewen
Server what's that
*
Posts: 7



View Profile Email
« on: 02/17/04, 11:14 »

hello .. can someone help me ?
im trying to create a shop in flash  Huh
the user selects the item they want, then the material, then the color

i want to change the colour of a movie clip when the user selects the colour of there choice . there will be 15 colours to chose from


on(press){

   sel_colors = _root.combocolors.getValue()
   loadMovie(_root.catalog["object"]+sel_colors+".jpg","object_image2")
_root.colors.text = _root.catalog["object"]+sel_colors
}


i will insert something like this would this be correct?

   //if sel_colours = red.  
   //setProperty (_root.catalog["object"+selected][5],rgb,#223344)
   //else

if sel_colour = blue
setProperty(_root.catalog["object"+selected][5],rgb,#443322)
else

Logged
Musicman
Administrator
Systems Administrator
*****
Posts: 2685



View Profile WWW Email
« Reply #1 on: 02/17/04, 12:20 »

Hi,

try
c = new Color(_root.catalog["object"+selected][5])
c.setRGB(0x442233)

Musicman
Logged
ewen
Server what's that
*
Posts: 7



View Profile Email
« Reply #2 on: 02/18/04, 04:16 »

thanks for your help
it didnt work though Huh

the first step in the movie is to select a size of product... the  coresponding .swf is then loaded into the main movie where the material and colour can be changed from a dropdown menu (hopefully)

loading the movie is no problem its just the colour change ... the commented line can load another .swf into another clip but if i use this method ill have to many .swf files!



on (press) {
   sel_colors = _root.combocolors.getValue();
   //loadMovie(_root.catalog["object"]+sel_colors+".swf", "object_image2");
   _root.colors.text = _root.catalog["object"]+sel_colors;
   
   
   if (sel_colors = red) {
      c = new Color(_root.catalog["object_image"+selected]);
c.setRGB(0xffffff);

   }
}
thanks again
ewen
Logged
Musicman
Administrator
Systems Administrator
*****
Posts: 2685



View Profile WWW Email
« Reply #3 on: 02/18/04, 14:10 »

Hi,

this might be just a tyo when posting, but
if(something = something)
usually does not what you would expect it to do

Musicman
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!