Javascript->Flash rewind() not working on local IE drive

This is a discussion on "Javascript->Flash rewind() not working on local IE drive" within the Flash & Multimedia Forum section. This forum, and the thread "Javascript->Flash rewind() not working on local IE drive 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 27th, 2006, 04:23
kyk kyk is offline
New Member
Join Date: Jul 2006
Location: New Zealand
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Javascript->Flash rewind() not working on local IE drive

Hi there

I'm currently having trouble finding the error as to why my code doesn't work. Ok, what I've done is coded in Javascript to call a flash Rewind method (movie.Rewind()). I've got the play and stop methods going very well on the local drive via Internet Explorer but the Rewind method is not doing what it suppose to do, which is, to go back to the first frame. I tried it on Firefox locally and uploaded onto a serve viewed via IE. All buttons (play, stop and rewind) behave as it should. Does anyone know why this is happening? Is it Flash causing the problem or IE. I've read something about security issues whould that be the case?

Cheers
Kyk
Reply With Quote

  #2 (permalink)  
Old Jul 27th, 2006, 20:53
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: Javascript->Flash rewind() not working on local IE drive

Post code.

Why not use flash to do it instead?
Reply With Quote
  #3 (permalink)  
Old Jul 30th, 2006, 17:10
Junior Member
Join Date: Jul 2006
Location: Boca Raton, FL
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to AunStudio Send a message via AIM to AunStudio Send a message via MSN to AunStudio Send a message via Yahoo to AunStudio
Re: Javascript->Flash rewind() not working on local IE drive

Hi there,

I'm with Sypher.
It's so much easier just to insert a back button in your flash persentation with a simple gotoandplay() or gotoandstop() command.

Bruno Aun
Reply With Quote
  #4 (permalink)  
Old Jul 30th, 2006, 22:26
kyk kyk is offline
New Member
Join Date: Jul 2006
Location: New Zealand
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Javascript->Flash rewind() not working on local IE drive

Thanks for the suggestion. If I use Flash for those buttons would I need to write the rest of the page in Flash? What bother me is that it works fine on the web server with IE & Firefox (locally too) but not on local drive with IE.

So if it is working fine on Firefox and on web-server, I assume my code would be all right, right?

The reason why I need IE to work on local drive is because some of our customers perfer to work off-line...ie they'll be using a CD instead.

It'll be great if there is a way round it.

Cheers
Kyk
Reply With Quote
  #5 (permalink)  
Old Jul 31st, 2006, 02:53
Junior Member
Join Date: Jul 2006
Location: Boca Raton, FL
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to AunStudio Send a message via AIM to AunStudio Send a message via MSN to AunStudio Send a message via Yahoo to AunStudio
Re: Javascript->Flash rewind() not working on local IE drive

No, there's no need for the entire page to be in Flash.
The rewind button would reside within the flash movie only.

Just create a simple button and add this action to it :

on release {gotoandplay(1);}

you can change the '1' to the frame number you want to send your users to.

hope this helps

Cheers,
Bruno Aun
Reply With Quote
  #6 (permalink)  
Old Jul 31st, 2006, 04:46
kyk kyk is offline
New Member
Join Date: Jul 2006
Location: New Zealand
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Javascript->Flash rewind() not working on local IE drive

Thanks Bruno Aun,

so the code on release{gotoplay(1);} is this within javascript or where should it go.

my current code for rewind method is:
function rewindMovie(){
var movie=getFlashMovieObject("fileName");
if(movieIsLoaded(movie)){
movie.Rewind();
}
else{
alert("can't rewind");
}
}

I've also tried using TotalFrame()/GotoFrame(), for some reasons IE is not responding locally. Firefox is fine. Would you have any idea why that is?

Cheers
Kyk
Reply With Quote
  #7 (permalink)  
Old Jul 31st, 2006, 14:21
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: Javascript->Flash rewind() not working on local IE drive

No that goes in your actionscript.
Reply With Quote
Reply

Tags
javascriptgtflash, rewind, working, local, drive

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
Some javascript not working in Firefox jonnymorris Web Page Design 4 Sep 18th, 2007 14:02
Some javascript not working in Firefox jonnymorris JavaScript Forum 4 Sep 18th, 2007 10:47
Javascript not working in xhtml adnanoner JavaScript Forum 0 Aug 4th, 2007 23:24
Help: getURL not working on all browsers to access Javascript PDidee Flash & Multimedia Forum 1 Jan 22nd, 2007 21:33
Javascript->Flash Rewind() not working on local drive with IE kyk JavaScript Forum 1 Jul 31st, 2006 03:45


All times are GMT. The time now is 21:49.


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