
Welcome Guest
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
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. |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |




