Convert all imgs in a gallery to a symbol > distribute on different layers
Action script stop(); on first
Duplicate thumbnails, replace the imgs later.
Creating movie clip fading over time and then copy (shift + apple(ctrl) + c) it as a new button
var_thumbDictionary:Dictionary = new Dictionary();
//
this.thumb1_btn.addEventListener(MouseEventCLICK, doClick);
this.thumb2_btn.addEventListener(MouseEventCLICK, doClick);
this.thumb3_btn.addEventListener(MouseEventCLICK, doClick);
//
_thumbDictionary[thumb1_btn] = 2;
_thumbDictionary[thumb2_btn] = 3;
_thumbDictionary[thumb3_btn] = 4;
//
function doClick(e:MouseEvent):void
{
this.galery_mc.gotoAndStop(_thumbDictionary[e.currentTarget]);
}
Tuesday, March 30, 2010
Tuesday, March 9, 2010
Week 6 [3/9/10]
Tuesday, March 2, 2010
Week 5 [3/2/10]
Coding
Trace Output (Alt+Enter) in action scripts
See files
HW: Use action scripts > Event listener. Click > something moves (listening for a mouse event).
Trace Output (Alt+Enter) in action scripts
See files
HW: Use action scripts > Event listener. Click > something moves (listening for a mouse event).
Subscribe to:
Posts (Atom)

