Posts Tagged movieclips

Love!

This tutorial on creating a scrolling movieclip saved my sanity today:
http://tutorials.flashmymind.com/2009/02/movieclip-scroller/

I tried to log in to comment and thank the author, but it wouldn’t take my info, so, if you track back to this, THANK YOU!

Comments off

Scrollable movieclip?

As I suspected, once that problem was solved, a new one would of course pop up almost immediately. This time I’m trying to make my newly populated movieclip scrollable. It’s populated with 30 movieclips, not textfields, so I can’t use .scrollV. And I need to put touchevents on the controls, so I can’t use a component.

Any ideas out there?

ETA:
============

Found a tutorial that might help–yay!
http://tutorials.flashmymind.com/2009/02/movieclip-scroller/

Comments off

Movieclip pile-up

ETA: Oops, some of my code got eaten up. Sorry about that! The for statement has been corrected.
================

WHY, in the below function snippet, would adding x,y coordinates to the mcOrg movieclip cause the collection of movieclips to dogpile on top of each other? W.T.F.??

var mcOrg:TouchMovieClip = new TouchMovieClip();
var mcOrgContainer:TouchMovieClip = new TouchMovieClip();

function xmlLoaded(e:Event) {
xmlORG=new XML(ulXML.data);
var numMuseums:Number=xmlORG.museum.length();

for (var i:int=0; i<numMuseums; i++) {
var genText:TextField = new TextField();
var genFormat:TextFormat = new TextFormat();
genFormat.color = 0x000000;
genFormat.size = 12;
genFormat.font = "Arial";
genText.embedFonts = true;
genText.type = "dynamic";
genText.x = 10;
//genText.y = 35*(i+1);
genText.y = 10;
genText.background = false;
genText.backgroundColor = 0xffffff;
genText.width = 280;
genText.height = 20;
genText.multiline = true;
genText.wordWrap = true;
genText.antiAliasType = "advanced";
genText.autoSize = TextFieldAutoSize.NONE;
genText.defaultTextFormat = genFormat;
genText.htmlText=xmlORG.museum[i].iwindow[0].name.children();
//trace(genText.htmlText);
genText.setTextFormat(genFormat);
mcOrg.addChild(genText);
mcOrg.x = -10;
mcOrg.height=30;
mcOrg.y =mcOrg.height * i;
mcOrg.addEventListener(TouchEvent.TOUCH_DOWN, traceContent);
mcOrgContainer.addChild(mcOrg);

}//close for statement
orgContainer.addChild(mcOrgContainer);

Comments (4)