Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to print to screen?

Status
Not open for further replies.

lonewolf210

Technical User
Mar 2, 2006
6
US
hi im trying to make a quiz thing for my anatomy class and have gotten the actionscript to store the string and store wether or not an answer was correct but now i need a why to print the results to the screen. also if i can i would also like to make the score red if the reult is not passing and green if it is.
 
also i tried to mawke an intro to the menu and som pictures were supposed to come across the screen and stop and then the title faded in and out but the pictures keep looping until the menu comes up.
 
dont mean to be unkind but good questions get better answers

what is 'print to screen'

if you have problems with code (color, images) then post the code and people will attempt to offer a solution

so far there is no clue as to the problem hence no offers for solution
 
it menas that i have the stored variable but i need a way to display it wiht in the flash movie. sorry for the confusion but when i have read other programming guides it ahs reffered tot his command as printing to the the screen.
 
well you could display it in a dynamic text box. Create a dynamic text box on the main timeline, then give the textbox an instance name... Then assign the string to the textbox when appropriate.. so if your textbox instance name was finalscore_tb - then you would assign the string with:

_root.finalscore_tb.text = stringname

Also, to stop the movieclips from looping.. On the last frame of the movieclip insert this actionscript.

stop();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top