This is a discussion on "Code doesent work on a prevscene - please help!!" within the Flash & Multimedia Forum section. This forum, and the thread "Code doesent work on a prevscene - please help!! are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Code doesent work on a prevscene - please help!!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Hello there,
I am really stuck with this one. Its like this: I have some scenes like "scene 1" , "scene 2" and so on. On the first frame of Scene 1 i have a variable defined as delay_product and a function like the following to use as adelay: function proceed() { //clear the interval clearInterval(delay); //go next frame - or whatever you want to happen here nextFrame(); play(); } Delay_Product = 10000; Now in my timelines in after some frames when i need to give a delay i use th efollowing code: stop(); //set a value for the delay time = Delay_Product; //need to give the delay an ID so we can clear it later delay = setInterval(proceed, time); This works fine in normal playing. I have a next and previous button to jump slides. when i use the previous button, it goes back to the earlier slide, but then the timing for the delay goes off. It sometimes becomes half and sometimes the delay doesent happen at all. I am using the following code for the previous button: on (press) { stop(); prevScene(); play(); } I am really stuck as whenever a client uses the previous button, all the delays go beserk and stuff becomes unpredictable. Please help. How can i fix this. Thanks in advance |
|
|
|
#2
|
|||
|
|||
|
Re: Code doesent work on a prevscene - please help!!
Hmm, interesting.
Why do you need to give a delay? I'd need to see a link to the file to see what it is exactly doing. I haven't ever needed to do something like this, so I don't have an aswer off the top of my head...
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
#3
|
|||
|
|||
|
Re: Code doesent work on a prevscene - please help!!
Hi,
Thanks for your reply. Actually this is a presentation we have made which displays our jewelry collections. I need to show one collection at a time and then zoom in on one piece out of the collection, wait for some time at the zoomed image (therefore the delay) and then continue on with the next etc. To put th delay ive used the above mentioned procedure. Now it works fine until i do a prevscene. After that the delays go beserk. I'm uploading the fla so that you could see the code too. This is surely a desperate situation as we need to send out cds with the presentation fast and this thing is messing up everything. I will send in a message once again after uploading the file. Thanks a lot Shamanz |
|
#4
|
|||
|
|||
|
Re: Code doesent work on a prevscene - please help!!
Please download this zip containing the fla from the following link:
www.devvalencia.com/one.zip I really really appreciate ur help. Thanks!!! |
![]() |
| Tags |
| code |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Javascript menu - does not work on title page, but does work on other pages | Crystal Phoenix | Starting Out | 4 | Mar 24th, 2008 19:40 |
| code behind code doesnt work | skat | ASP.NET Forum | 4 | Feb 18th, 2008 10:05 |
| can anyone tell me why this sprtie code doesnt work | lostyboy | Web Page Design | 12 | Oct 15th, 2007 14:25 |
| will this code work on its own, please? | Gerry | Flash & Multimedia Forum | 3 | Oct 9th, 2007 16:03 |
| Can somebody give me the code to hide the source code? | renren | JavaScript Forum | 7 | Mar 7th, 2006 12:27 |