Hi,
I have a actionscript script that retrieves data from the database and creates a movie clip with a text field to store the data. I have next and previous buttons to navigate to show the next or previous ten database records.
When previous or next are clicked I want to remove the movie clips previously created using
.
. To remove these movie clips do I use unloadMovie or removeMovieClip ? Here's the code I have for that.
I'd really appreciate any help.
Thanks, Sean
I have a actionscript script that retrieves data from the database and creates a movie clip with a text field to store the data. I have next and previous buttons to navigate to show the next or previous ten database records.
When previous or next are clicked I want to remove the movie clips previously created using
Code:
titleMC = _root.sub_nav_mc.createEmptyMovieClip("articleTitleMC" + i,
_root.sub_nav_mc.getNextHighestDepth());
titleMC._x = 0;
titleMC._y = yAxis;
titleTF = titleMC.createTextField("articleTitleTF", 10, 0, 0, 82, 16);
titleMC.articleTitleTF.text = articleTitle[1];
titleMC.articleTitleTF.setTextFormat(titleFormat);
Code:
articleTitle[1] contains data retrieved from the database.
Code:
for( var property in _root.sub_nav_mc )
{
if( typeof( _root.sub_nav_mc[property] == "movieclip" ) )
{
_root.sub_nav_mc[property].unloadMovie();
trace( "Unloaded " + property );
}
}
Thanks, Sean
Comment