Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1627 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     Flash and Actionscript :

Flash Problems With ActionScript

Thread title: Flash Problems With ActionScript
     
    Thread tools Search this thread Display Modes  
Prev Previous Post   Next Post Next
02-24-2008, 05:57 PM
#1
mason.sklut is offline mason.sklut
mason.sklut's Avatar
Status: Junior Member
Join date: Mar 2007
Location: North Carolina
Expertise: Photography
Software:
 
Posts: 73
iTrader: 0 / 0%
 

mason.sklut is on a distinguished road

  Old  Flash Problems With ActionScript

I'm currently building a game with pictures. The idea is to choose the right picture when the corresponding word appears. Here's a .swf version of the game:

http://masonsklut.com/olpc/

The problem I'm having is getting the "check-marks" to appear on the image when the image is selected. Instead Flash puts the check-mark in the next frame.

This is the ActionScript used to make the check-marks appear:
Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;


wrong1_btn.onRelease = function () {
	new Tween(wrong3_mc,"_alpha",Regular.easeOut,0,100,12,false);
	new Tween(wrong3_mc,"_alpha",Regular.easeOut,100,0,12,false);
}

wrong2_btn.onRelease = function () {
	new Tween(wrong4_mc,"_alpha",Regular.easeOut,0,100,12,false);
	new Tween(wrong4_mc,"_alpha",Regular.easeOut,100,0,12,false);
}

wrong3_btn.onRelease = function () {
	new Tween(wrong5_mc,"_alpha",Regular.easeOut,0,100,12,false);
	new Tween(wrong5_mc,"_alpha",Regular.easeOut,100,0,12,false);
}

right_btn.onRelease = function () {
	new Tween(right3_mc,"_alpha",Regular.easeOut,0,100,12,false);
	new Tween(right3_mc,"_alpha",Regular.easeOut,100,0,12,false);	
	
	nextFrame();

	
	
}
Also, you must click "Select Level" then choose a level, then hit play for the game to start.


Any suggestions?

Thanks,
Mason

     


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed