Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Flash And Javascript Interaction, swfobject js questions
sad1sm0
post Mar 20 2008, 06:53 PM
Post #1


Newbie
*

Group: Members
Posts: 8
Joined: 18-March 08
Member No.: 59,510



I don't know if anyone on here is familiar with this script. You can check it out here. Basically it's a script that is supposed to give you javascript control over a flash object. I am using it for a flv player. My question is this. I would like to display the current file's title in a span element on the page, but the function described to gather the information for the current file doesn't seem to work for me. The function, as outlined on on this page looks like this:

CODE
function getUpdate(typ,pr1,pr2,swf) {
  if(typ == 'state') {
    alert('the current state is: '+pr1');
  }
}


I'm not even remotely sure how this is supposed to work, and I just keep getting an error that says that it isn't a function. I am using FireFox. Any help would be appreciated. Thanks
Go to the top of the page
 
+Quote Post
galexcd
post Mar 24 2008, 05:00 PM
Post #2


Define:EVIL PROGRAMMER (ē'vəl prō'grăm'ər)- n. An organism that converts caffeine into evil software.
*********

Group: [HOSTED]
Posts: 975
Joined: 25-September 05
From: The dungeon deep below the foundation of trap17
Member No.: 12,251



So you are trying to run javascript actions from flash? Whenever I've done that I never did something as complicated as that. There may be an advantage to doing it another way but i'm not sure, but this is how I would always do it:

CODE
geturl("java script:functionname();");

where functionname is the name of the javascript function you are trying to call from flash.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Best Free Flash Editor(8)
  2. Difference Between C, C++ And C#?(13)
  3. Flash Movie As Background?(19)
  4. Rpg Maker 2003 Questions(27)
  5. Javascript Close Window(12)
  6. Dell D600 Questions(2)
  7. Adding Rows & Columns In Html Table Using Javascript(1)
  8. Allie's Advice(5)
  9. Flash Games(4)
  10. Flash Flash Revolution(12)
  11. Learn Html Quick And Easy(14)
  12. Can I Make Dynamic Menu In Php(7)
  13. How To: Flash Streaming(4)
  14. Do You Close The Javascript?(3)
  15. Java Vs Javascript(11)
  1. Flash Streaming(4)
  2. Flash Media Into Html/css Website(1)
  3. Some Questions About Qupis Hosting !(2)
  4. A Couple Of Questions About Delphi(3)
  5. Tax Deduction Questions...(0)
  6. Cms For Video, Embedding Flash(1)
  7. External History And Favorites(0)
  8. Adjusting Rows/cols Of Frames In Frameset Using Javascript Is Not Working In Firefox 3 Is Not Working(4)
  9. Lesser Known Useful Javascript Features(2)
  10. Flash Wmode(transparent) Pramater In Firefox3(on Linux) - Not Working(1)
  11. Amazing Software(0)
  12. Some Of The Biggest Questions In Life.(3)
  13. Adding Flash Music Player To Home/any Page(4)


 



- Lo-Fi Version Time is now: 25th July 2008 - 09:18 PM