Jump to content
Sign in to follow this  
mrpixel05

User Selection....

Recommended Posts

elo...nk tanye soklan lg...

camni sy dh wat satu ni..user boleh pilih baju, seluar and accesories...bile dh choose ,user submit then akan ade animation org yg pakai mende2 yg user choose...stakat ni dh wat button n muvi clip utk choose2 tu, but then stuck, cane nk wat submit button yg tao ape user pilih seblom ni..kne gune variable ke?

ni script kt 1st frame (ni br letak 2 baju je):

baju1._visible = false;

baju2._visible = false;

prevcloth = "";

pastu kt button2 tu lak:

on (release) {

baju1._visible = true;

prevcloth._visible = false;

prevcloth = baju1;

trace(prevcloth);

}

ley tak trangkn ketidak tahuan saya utk wat submit button yg ley trace baju ape yg dipilih user..tq sgt

Salam...

ok since ade org tanya aku ttg utk ingat apa yg user select utk wat customize application..aku ingat nak share kat cnih...tp cth yg aku tunjuk nanti just guna simple variable selain itu kite juga boleh guna sharedobject dan back-end(php,etc...with dtbase)...ok miss dida hope u don't mind..

stop();

//herein are quick mockup for trace user selection using var instead of using 
//shareobject or back-end

//Mrpixel05

var selShirt:MovieClip;//set up ur own variable...just add for another selection assuming selJeans,selAccesories...


//browse through ur shirt 1st..and same process for the rest also...
for(var i=0;i<3;i++){
    this["baju"+i].ivar = i;
    this["baju"+i].onPress = listSelection;
}

function listSelection():Void{
    selShirt = this._name;
    //trace(selShirt+" "+"select T-Shirt variable");//just for test the variable only
}


//finally trace ur user selection....
submit.onPress = function(){
    trace(selShirt);
}

Oklah miss dida hope it will give u some shed on light how it goes...my recommendatins is to using dtbase ...and of course u must store the x,y coordinate as well....for retrieval user selection later on...

Wassalam....

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...