javascript_Flash/Windows/"click to activate..control"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ofir
    New Member
    • Dec 2007
    • 5

    javascript_Flash/Windows/"click to activate..control"

    WHEN I'M PUBLISHING A FLASH - .SWF FILE IN HTML,
    I'M GETTING IN WINDOWS THE NOTE:
    "CLICK TO ACTIVATE AND USE THIS CONTROL"

    AND MY QUESTION IS, HOW DO I GET A ROUND THAT ???
    I SEE MANY WEB SITE THAT USE FLASH, AND DOESN'T NEED TO CLICK TO ACTIVATE THE CONTROL, EVEN WHEN I BROWSE WITH WINDOWS

    I'M NOT MUCH OF AN EXPERT SO I HOPE THAT THE PEOPLE HERE THAT ARE KNOWN AND WILLING TO HELP WILL MAKE IT SIMPLE

    BY THE WAY I TRIED THE swfobject_sourc e.js THAT WHERE PUBLISH HERE
    BUT IT DIDN'T HELP ME..


    SOOO PLAESE HELP....

    THANKS
    OFIR
  • vituko
    New Member
    • Dec 2006
    • 48

    #2
    I heard (I've never tried) that you have to create the object by a script (js) loaded in an external file (<script src="..."></script>).
    Let me know if it works, please.

    Comment

    • ofir
      New Member
      • Dec 2007
      • 5

      #3
      That's what i tried to do with the file that i got in this site:
      "swfobject_sour ce.js"
      you can see in the code, but i dont know if this is the answer, and if so what am I doing wrong...

      Thanks for your comment


      Code:
       <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        
            <html xmlns="http://www.w3.org/1999/xhtml">
       
            <head>
        
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
       
            <title>:: PAULINE NG ::</title>
        
            <script type="text/javascript" src="Htm/js/swfobject_source.js"></script>
        
            </head>
        
             
       
            <body >
        
             
      
            <center>
      
        
       
      
             
          <div id="flashcontent" align="center">
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="750" height="128">
              <param name="movie" value="../Flash/dack_lightgray.swf" />
              <param name="quality" value="high" />
              <embed src="../Flash/dack_lightgray.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="750" height="128"></embed>
            </object>
          </div>
      		  
      		  
            <script type="text/javascript">
        
               var so = new SWFObject("dack_lightgray.swf", "mymovie", "#EADBBF");
        
               so.write("flashcontent");
       
            </script>

      Comment

      • vituko
        New Member
        • Dec 2006
        • 48

        #4
        1 - swfobject_sourc e.js, you didn't give me the whole url.
        2 - I understand that you're inserting twice the flash object :
        - line 28 : embeded in the html main page
        - line 38 : I imagine that it uses a class declared in the imported script. But you give no path, only the file name :
        var so = new SWFObject("dack _lightgray.swf" , "mymovie", "#EADBBF");
        so.write("flash content");

        I don't know, maybe it helps you.

        Comment

        • ofir
          New Member
          • Dec 2007
          • 5

          #5
          this the code page...



          there is another link relate..




          i did just what i saw over there,as i understand it,
          if its my answer i dont know...

          i'll say it again, thanks a lot man!

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            There are six required attributes - you've only provided 3.

            Comment

            • ofir
              New Member
              • Dec 2007
              • 5

              #7
              thanks..its not that my friend..
              vituko i see what you mean when you said i load it 2 times,
              and the thing is that this way i don't need the external code cause seeing the swf wasn't the problem at first place so i don't know way they did it in the example in the link that i wrote before, any way without the regaler flash code i cant see the application at all...

              ok still looking for the right answer some where over the rainbow....

              Comment

              • vituko
                New Member
                • Dec 2006
                • 48

                #8
                In the first case you use the full path (../Flash/dack_lightgray. swf), and in the second one (with the script), only the file name (dack_lightgray .swf, I've already said it you).
                The six first arguments of the constructor seem needed...
                Use the js console, firebug...
                I've seen it working by googling... good luck!!

                In Spain it's time to go home, I'll look tomorrow

                Comment

                • peenut~
                  New Member
                  • Jan 2008
                  • 2

                  #9
                  Found your good samaritan ofir. =)

                  Comment

                  Working...