Hi,
I m new to Flash. I need to develop Flash application for mobile devices.
I have created a class and using that class i created a movieclip.
I have created one more class. And whenever the enter key of the mobile device is pressed i need to create a movie clip using the second class.
How to do this?
[COLOR=“Blue”]this.attachMovie(“PieChart_mc”, “pie_chart”+vPieChartDepth_num+"_mc", vPieChartDepth_num, vPieChartProperties_obj);
var vThisPieChart_mc= this[“pie_chart”+vPieChartDepth_num+"_mc"];
keyListener.onKeyDown = function() {
switch (Key.getCode()) {
case Key.UP :
vThisPieChart_mc.highlightPreviousWedge();
break;
case Key.DOWN :
vThisPieChart_mc.highlightNextWedge();
break;
case Key.LEFT :
vThisPieChart_mc.highlightPreviousWedge();
break;
case Key.RIGHT :
vThisPieChart_mc.highlightNextWedge();
break;
case Key.ENTER :
vThisPieChart_mc.removeMovieClip();
var newDepthNumber:Number;
newDepthNumber = vPieChartDepth_num + 1;
trace("New depth Number : " + newDepthNumber);
this.attachMovie(“Displaydetails_mc”, “display_details”+newDepthNumber+"_mc", 1);
var vDisplaydetails_mc= this[“display_details”+newDepthNumber+"_mc"];
trace(vDisplaydetails_mc);
//// [COLOR=“Red”]This trace gives the result as ‘Undefined’[/COLOR]
default :
break;
}
};
[/COLOR]
I dont know what’s the problem? I want to remove or unload the previous movie(Which shows a piechart) and to load another movie(which shows details in a table).
Can anyone please help me?
Thankfully,
jmukunth