HEy Jason, don't worry, that's not a porno web site. "tit" is for "title" ..:D
if that's not the answer you were expecting, it is not a website, it is a "powerpoint-like-presentation" to be run off-line, with a whole bunch of an endless content (that is, a terrible nightmare), that i have to pick from .doc files. so everything is in an xml file, and this function puts the content of a specific element in the content.xml file and organizes it all on the display list. that was the only way i found to do this kind of job, otherwise (if i put content directly into the .fla file) the flash application gets extremelly lagged and thus impossible to work, which was making me completely insane . so... that's i'mtrying to build this function that tells a certain moviecli'p to go to a specific frame and then update content in that frame, like searching text in an xml file and putting in the textfield on that frame. i'll have to do that because this updateContent function won't fit in some specific frames of the presentation.... thanks! 2009/8/28 Isaac Alves <isaacal...@gmail.com>: > oops the code down there should be: > > function updateContent(e:Event):void { > > container.gotoAndStop(2); > > link = String(e.target.frameLink); > counter = 0; > > if (content[link].tit != undefined) > { > container._tit.text = content[link].tit; > counter ++; > } > else > { > container._tit.text = ""; > } > etc... > > 2009/8/28 Isaac Alves <isaacal...@gmail.com>: >> Hello! >> >> In the following code, i tell the Flash runtime to go to frame2 and >> update the content of this frame. >> >> The problem is that, the first time this function runs it throws the error: >> >> TypeError: Error #1009: >> >> I believe that happens because it tries to update "container._tit" >> before render the screen, so it will be still in frame 1. It goes to >> frame 2 but doesn't update the _tit textfield. >> >> I've tried to solve it this way: instead of using gotoAndStop(2) i've >> called another functiion with that statement and updateAfterEvent(); >> >> but it seems that it is not a method of the Event class. >> >> Any solution ?? >> thanks in advance!! >> >> >> >> function updateContent(e:Event):void { >> >> gotoAndStop(2); >> >> link = String(e.target.frameLink); >> counter = 0; >> >> if (content[link].tit != undefined) >> { >> container._tit.text = content[link].tit; >> counter ++; >> } >> else >> { >> container._tit.text = ""; >> } >> etc... >> > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders