5 Replies Latest reply on Aug 29, 2011 12:25 PM by joeskull

    Flash in Richfaces??

    joeskull Newbie

      I am trying to show a flash game in Richfaces but have no clue what code to use since the code I used for HTML isnt working and a google search didnt yield any results.

       

      Any help??

        • 1. Re: Flash in Richfaces??
          inv3r53 d Novice

          did u check out a4j:mediaoutput?

          1 of 1 people found this helpful
          • 2. Re: Flash in Richfaces??
            joeskull Newbie

            no, but I will thx

            • 3. Re: Flash in Richfaces??
              joeskull Newbie

              Hmm, its not working, this is what i have:

               

              <a4j:outputPanel id="flashPanelDynamic">

                     

                      <a4j:mediaOutput element="a" id="swfLink" style="display: none;" cacheable="false" session="true"

                          createContent="#{mediaBean.paintFlash}" value="#{mediaData}" mimeType="application/x-shockwave-flash"/>

               

               

                      <a4j:outputPanel layout="block" id="myFlashContent" style="width: 100px; height: 500px">

                         

                              <img src="../img/ship.swf" alt="Get Adobe Flash player" />

                         

                      </a4j:outputPanel>

               

               

                      <script type="text/javascript">

                      var flashvars = {};

                      var params = {};

                      var attributes = {};

                      swfobject.embedSWF(#{rich:element('swfLink')}.href, "#{rich:clientId('myFlashContent')}", "200", "200", "9.0.0", false, flashvars, params, attributes);

                      </script>

               

               

                  </a4j:outputPanel>

               

               

              I made sure that the f:view thing had all the proper links but all i get is one of those img boxes with the little x in it.

              • 4. Re: Flash in Richfaces??
                joeskull Newbie

                bump

                • 5. Re: Flash in Richfaces??
                  joeskull Newbie

                  anyone??