Code doesent work on a prevscene - please help!!

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 12th, 2007, 18:42
New Member
Join Date: Jun 2007
Location: India
Age: 31
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Post Code doesent work on a prevscene - please help!!

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
Reply With Quote

  #2 (permalink)  
Old Jul 13th, 2007, 14:21
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
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)
Reply With Quote
  #3 (permalink)  
Old Jul 14th, 2007, 17:05
New Member
Join Date: Jun 2007
Location: India
Age: 31
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #4 (permalink)  
Old Jul 14th, 2007, 17:27
New Member
Join Date: Jun 2007
Location: India
Age: 31
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
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!!!
Reply With Quote
  #5 (permalink)  
Old Jul 16th, 2007, 15:46
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: Code doesent work on a prevscene - please help!!

I was out this weekend, I'll take a look at it this week.
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
Reply

Tags
code

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 20:05.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43