A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [RESOLVED] Make onRelease only possible if previous image is displayed?

  1. #1
    Member
    Join Date
    Jul 2008
    Posts
    73

    resolved [RESOLVED] Make onRelease only possible if previous image is displayed?

    I have a gallery where if a thumbnail is selected it preloads, then fades out the current image and fades in the next. (Thanks Dawsonk).

    If the user selects a thumbnail then selects a different thumbnail before the previous image has fully loaded (and faded to alpha=100) it is problematic. How could I code this so that a thumbnail could only be selected if there is an image displayed on screen?

    My files are here http://board.flashkit.com/board/showthread.php?t=808636

    I also need to do exactly the same thing with the main menu buttons. I've attached the .fla + dummy .swfs
    Attached Files Attached Files

  2. #2
    Member
    Join Date
    Jul 2008
    Posts
    73
    Ok, solved it. I needed to say that the target_MC should be alpha=100 to let the button function.

    Code:
     current_btn.onRelease = function() {
    		if (target_MC._alpha == 100) {
    I was trying it before without == just =

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center