Register :: Profile :: FAQ :: Search :: Memberlist :: Log in to check your private messages :: Links :: Chat Room :: Courthouse :: Log in
 
 
  Happy New Year to all on Disqworld! 2009 and still going strong!  
disQworld Forum Index
The time now is 08-01-2009

disQworld Forum Index -> Webmasters

Dreamweaver Javascript into Flash XML

  Author    Thread Post new topic Reply to topic
Moses
Guru




Joined: 02 Jul 2003
Posts: 558
Location: UK
Dreamweaver Javascript into Flash XML

Im not sure if anyone can help, but i am having no luck trying to get this to work, so i am hoping someone with some web knowledge can help me out.

Can anyone help me out.

I have a video web page on my website, created using Dreamweaver cs3, and my player is by wasp. I have a list/menu below the video player of all the clips, each starts with Click Here To Play Video, when you click the video file plays, heres the code.


code:
<h1>video footage</h1>       
        <p><a href="java script:;" onClick="wasp_loadAndPlay('video.flv')">Click to play:</a> <span class="style4">Display</span> - Part I
        <p><a href="java script:;" onClick="wasp_loadAndPlay('video_1.flv')">Click to play:</a> <span class="style4">Display</span> - Part II</p>
*** not code but this repeats up to video_15.flv ****
</div>
      <h1>&nbsp;</h1>
    </div>





Now i want to change this text list to a flash scrolling menu, which i have. But it calls the links via xml file. A typical line from the xml is below


code:

<item>
      <item_name>Project 1 </item_name>
      <item_link>http://www.google.com</item_link>
   </item>
<item>
      <item_name>Project 2 </item_name>
      <item_link>http://www.goole.com</item_link>
   </item>





My question is, how can i make the flash xml menu call the video files from the <item_link> data entry, the same or similar way to the javascript in the dreamweaver code?, or is it even possible?
If anyone can help with the coding i would be very greatful.

Hope it makes sence

Many thanks

moses
_________________
Any Backups Supplied To You By Us Are Supplied On The Understanding That You Own The Original Copy.

*** Discount on discs? Logon to DiskDepot with - username: disqworld password: diskdepot ***

Post 17-09-2008 
 Moses is offline View user's profile Send private message Visit poster's website MSN Messenger  Reply with quote  
JayBird
Veteran




Joined: 13 Oct 2003
Posts: 2195

Would it not be as simple as this?

code:
<item>
      <item_name>Project 1 </item_name>
      <item_link>javascript:wasp_loadAndPlay('video_1.flv');</item_link>
   </item>
<item>
      <item_name>Project 2 </item_name>
      <item_link>javascript:wasp_loadAndPlay('video_1.flv');</item_link>
   </item>




Give it a try and let me know what happens
_________________
My Refs
I own the original of anything i purchase and all that rubbishHONEST!!

*** Discount on discs? Logon to DiskDepot with - username: disqworld password: diskdepot ***

Post 18-09-2008 
 JayBird is online now View user's profile Send private message  Reply with quote  
Moses
Guru




Joined: 02 Jul 2003
Posts: 558
Location: UK

Thanks for your reply JayBird, unfortunately i wish it was that simple, i have changed the code as per your suggestions, however nothing Sad
I might have to think about a new way to do it.
cheers anyway and appreciate your time
moses


<item>
<item_name>Display Part 1</item_name>
<item_link>javascript:wasp_loadAndPlay('video.flv');</item_link>
</item>
<item>
<item_name>Ferring Display Part 2</item_name>
<item_link>javascript:wasp_loadAndPlay('video_1.flv');</item_link>
</item>
_________________
Any Backups Supplied To You By Us Are Supplied On The Understanding That You Own The Original Copy.

*** Discount on discs? Logon to DiskDepot with - username: disqworld password: diskdepot ***

Post 18-09-2008 
 Moses is offline View user's profile Send private message Visit poster's website MSN Messenger  Reply with quote  
JayBird
Veteran




Joined: 13 Oct 2003
Posts: 2195

I would really need to see the entire thing, to the the dependencies etc to help you further
_________________
My Refs
I own the original of anything i purchase and all that rubbishHONEST!!

*** Discount on discs? Logon to DiskDepot with - username: disqworld password: diskdepot ***

Post 18-09-2008 
 JayBird is online now View user's profile Send private message  Reply with quote  
Moses
Guru




Joined: 02 Jul 2003
Posts: 558
Location: UK

okay thanks mate, i have pmd you with some links so you can see what i am trying to achieve - if you can help then great - however, thanks anyways appreciate you taking the time out to help
_________________
Any Backups Supplied To You By Us Are Supplied On The Understanding That You Own The Original Copy.

*** Discount on discs? Logon to DiskDepot with - username: disqworld password: diskdepot ***

Post 18-09-2008 
 Moses is offline View user's profile Send private message Visit poster's website MSN Messenger  Reply with quote  
  Display posts from previous:      
Post new topic Reply to topic


Jump to:  


Last Thread | Next Thread  >

Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /usr/www/users/disq/forums/includes/page_tail.php on line 39

DVD News, Reviews & Hot Deals Powered by phpBB © 2001 phpBB Group