This is a discussion on "Javascript and flash movie" within the JavaScript Forum section. This forum, and the thread "Javascript and flash movie are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Javascript and flash movie
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Javascript and flash movie
Hi
I have a HTML form and a swf file what I need to be able to do is when the user clicks submit the flash movie starts to play. but the submit button already starts a CGI Script so the only way I can think of is to add some Javascript to the button. dose anyone know how to do this. Thanks |
|
|
|
#2
|
||||
|
||||
|
Re: Javascript and flash movie
You could try this
That should work..
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#3
|
|||
|
|||
|
Re: Javascript and flash movie
Sorry to be a pain where in the HTML code should I put this.
|
|
#4
|
|||
|
|||
|
Re: Javascript and flash movie
Also what should I change in the code
|
|
#5
|
||||
|
||||
|
Re: Javascript and flash movie
You can put that script in the head of your html and just need to change this line
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#6
|
|||
|
|||
|
Re: Javascript and flash movie
Hi agian
That did not seem to work. Here is the page http://sographics.co.uk/cb4utrade/Re...r_company.html as you can see the bit with PLEASE WAIT is a movie and what I want is when the user clicks submit the movie will start to show that some thing is happing. Thanks |
|
#7
|
||||
|
||||
|
Re: Javascript and flash movie
Sorry Jason, I missed your reply
Okay, two things You need to change this
Cheers
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#8
|
|||
|
|||
|
Re: Javascript and flash movie
Thanks
Sorry I cant seem to see the last bit. |
|
#9
|
|||
|
|||
|
Re: Javascript and flash movie
I cant get this to work I have copyed the last bit I think. But it is still not working.
Can you think of any other way of showing a user that the file is being uploaded or that the browers is doing something. Thanks very much for your time. |
|
#10
|
||||
|
||||
|
Re: Javascript and flash movie
So what's happening with the flash movie? Is it not playing or are there some javascript errors coming up?
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#11
|
|||
|
|||
|
Re: Javascript and flash movie
Hi
It is always playing. I need something to show the users that the file is bening uploaded because it can take about 45mins to upload so I want them to see that it is working. |
|
#12
|
||||
|
||||
|
Re: Javascript and flash movie
Okay, instead of having the call to stop the movie onload, try putting this after the embedded object in your html.
<script type="text/javascript"> thisMovie('myMovie').stop(); </script> Because I think it is no loaded fully when the first call happens. You can also try editing the actual swf so its default state is stopped.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#13
|
|||
|
|||
|
Re: Javascript and flash movie
Thank you I will try it.
|
|
#14
|
|||
|
|||
|
Re: Javascript and flash movie
Hi I am sorry but it will still not work. I dont know what to do. aargh it is really doing my head in. I have tryed all the things you have said.
This is the page, http://www.cb4utrade.co.uk/Register_your_company.html Thanks |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help! Flash movie not loading in IE | jogajog | Flash & Multimedia Forum | 5 | Aug 11th, 2008 12:17 |
| Flash Movie | enemeth | Flash & Multimedia Forum | 3 | Feb 21st, 2007 17:19 |
| Help! Can't run flash movie | alecseiffel | Flash & Multimedia Forum | 3 | Jan 31st, 2007 17:53 |
| Problem with iframe & Javascript - Trying to communicate with a flash movie | victorpantet | JavaScript Forum | 1 | Feb 5th, 2006 03:06 |
| Flash Movie Doesn't load in IE | jogajog | Web Page Design | 1 | Jan 4th, 2006 00:21 |