LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




ReplyREPLY THREAD
 
Thread Tools Display Modes
  #1  
Old 10-04-2004, 11:34 PM
Pietz Pietz is offline
Registered User
 
Join Date: Oct 2004
Location: mexico city
Posts: 5
Rep Power: 0
Pietz is on a distinguished road
clicking twice displays wrong label/frame

I made a picture gallery
the main scene contains all the large pictures, 1 picture per frame
and below, i have a thumbnail menu to display the large images when the thumbnail is clicked.

sounds simple ha?

well, the button for each thumbnail is contained in a linked movieclip, so I used the following script to link the large picture in the main scene:

on (release) {
_root.gotoAndPlay(7);
}

and it works fine!, it does display the large image when its thumbnail is clicked, BUT IF THE SAME BUTTON IS CLICKED TWICE, IT DISPLAYS THE IMAGE IN THE PREVIOUS FRAME OR LABEL.

how can I get it to link to the same frame or level, even if it is clicked more than once.

thanks a lot
Reply With Quote
  #2  
Old 10-05-2004, 12:44 AM
prisma prisma is offline

Super Moderator
 
Join Date: May 2001
Location: Munich, Germany
Posts: 1,668
Rep Power: 14
prisma is on a distinguished road
Hi and welcome to FlashMove, Pietz.
Does using gotoAndStop() help?
Problem could be frame code executing 1/2 of the times.
__________________
... take me to your coder.
Reply With Quote
  #3  
Old 10-05-2004, 02:35 PM
Pietz Pietz is offline
Registered User
 
Join Date: Oct 2004
Location: mexico city
Posts: 5
Rep Power: 0
Pietz is on a distinguished road
Hi and thanks,

every frame in the scene containing the big pictures has a stop action

because if I use gotoAndStop() in the thumbnail, it doesnt work, it just doesnt do anything.
thats why Im using gotoAndPlay

I just canīt explain why if it is clicked twice, it goes to the previous frame.

thanks again.
Reply With Quote
  #4  
Old 10-07-2004, 11:54 AM
prisma prisma is offline

Super Moderator
 
Join Date: May 2001
Location: Munich, Germany
Posts: 1,668
Rep Power: 14
prisma is on a distinguished road
The problem is that if you use gotoAndPlay to send a movie to the frame it already is in, the code of that frame wont be executed.
If the movie was in another frame the where you sent it with gotoAndPlay the code will execute.
Thus I highly suggest using gotoAndStop() rather than gotoAndPlay() with stop() commands.
__________________
... take me to your coder.
Reply With Quote


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
code for staying in the same window after clicking tseyigai Actionscript 2.0 1 03-24-2009 12:12 PM
Loading More Buttons on clicking a button. Please Help!! misterinley Flash 8 0 01-16-2009 06:57 PM
Wrong number of parameters shadrap Newbies 1 03-09-2007 07:18 AM
Flash XML parser function OnLoad reports wrong document lenght mari XML & Sockets 1 02-06-2007 07:41 AM
wrong dynamic text output hallie64 Actionscript 2.0 6 02-15-2006 11:18 AM




All times are GMT. The time now is 07:42 PM.