[SOLVED] JavaScript w/flash

This is a discussion on "[SOLVED] JavaScript w/flash" within the JavaScript Forum section. This forum, and the thread "[SOLVED] JavaScript w/flash are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 5th, 2007, 18:32
New Member
Join Date: Oct 2007
Location: Queens, NY
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] JavaScript w/flash

Hello

I'm having a problem getting my flash to play and javascript to work together.

I take out: OnLoad="rotateImage('rImage')"

flash works but JS doesn't.

Any ideas would be helpful.

My flash:
Code: Select all
<script type="text/javascript" src="flashobject.js"></script>
<script type="text/javascript">
window.onload = function() {
    var fo = new FlashObject("flash/3.swf", "flashlogoswf", "133", "235", "6", "#ffffff");
    fo.write("flashlogo");
    
    var fo = new FlashObject("flash/3prod_menu_options.swf", "logoswf", "595", "26", "6", "#ffffff");
    fo.write("logo");

}
</script>
Image Rotator is long code, but as I say both work perfectly w/out the other, but when combined, only one wants to work.

Thanks
Jeanne

Last edited by karinne; Oct 5th, 2007 at 18:42. Reason: Please use the vBcode [ code ] when inserting code in your post.
Reply With Quote

  #2 (permalink)  
Old Oct 6th, 2007, 04:36
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: JavaScript w/flash

When you say you have onload="rotateImage", where is that put?

In the code above, you should be able to add the line

rotateImage('rImage');

on the line after fo.write('logo');

Cheers,
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Reply With Quote
  #3 (permalink)  
Old Oct 8th, 2007, 21:35
New Member
Join Date: Oct 2007
Location: Queens, NY
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Re: JavaScript w/flash

Thanks for replying. I'll try that out tomorrow at work.

The onload="rotateImage" was in the Body tag.

Thanks!
Reply With Quote
  #4 (permalink)  
Old Oct 9th, 2007, 13:24
New Member
Join Date: Oct 2007
Location: Queens, NY
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Re: JavaScript w/flash

Yeahhhhhhhhhhhhhhhhhh You are my hero!

Works like a charm!

Thank you!

Jeanne
Reply With Quote
  #5 (permalink)  
Old Oct 9th, 2007, 13:25
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: JavaScript w/flash

No problems
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Reply With Quote
Reply

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
[SOLVED] Javascript tutorial hegerp JavaScript Forum 2 Nov 29th, 2007 13:31
Javascript and flash movie jasonjkd JavaScript Forum 13 Nov 1st, 2007 20:06
[SOLVED] javascript from validation eon201 JavaScript Forum 2 Oct 24th, 2007 17:41
Javascript or Flash Actionscript marSoul Webforumz Cafe 2 Sep 25th, 2007 20:21
javascript popup in flash Ozeona JavaScript Forum 3 Aug 27th, 2005 10:18


All times are GMT. The time now is 04:45.


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