Flash + Javascript. I need some easy help...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Deej
    I make pixels work
    • Jun 2005
    • 24386

    #1

    Flash + Javascript. I need some easy help...

    I need a quick and easy lesson.

    Anyone fluent in this field, pls hit me up.

    Dont be scurred

    Deej's Designs n' What Not
    Hit me up for Design, CSS & Photo Retouching


    Icq#30096880
  • Arnox
    Confirmed User
    • Sep 2009
    • 2169

    #2
    Youtube man, youtube will always be king.
    Need Text? X Copywriters | Adult Writing Service - [email protected]

    Comment

    • Deej
      I make pixels work
      • Jun 2005
      • 24386

      #3
      Originally posted by Arnox
      Youtube man, youtube will always be king.
      hrmm, I googled a bit and checked some other tutorial sites, but none of them have quite what I need.

      Basically I just want to access some javascript that is already on a page. keeping it within that page. OnClick commands and such. Im just not sure how to do it. Im sure its capable.

      Ill check youtube, never thought of that...

      Deej's Designs n' What Not
      Hit me up for Design, CSS & Photo Retouching


      Icq#30096880

      Comment

      • psili
        Confirmed User
        • Apr 2003
        • 5526

        #4
        It's been a long time, but isn't it just doing this in flash to call a JS method on the same page?

        getURL("javascript:callToFunction();");

        otherwise, here's a bump.
        Your post count means nothing.

        Comment

        • Deej
          I make pixels work
          • Jun 2005
          • 24386

          #5
          Well heres is my dilema

          Im taking a few of these links

          Code:
          <a href="javascript:void(0);" onclick="toggleHomeTabs(2);">Link2</a>
          I am replacing these links with a flash navigation bar.

          How would I translate that to actionscript? would it be...

          Code:
          on (release) {
              getURL("javascript:toggleHomeTabs(2)");
          }
          I figure this is wrong since it didnt work when I tried it, but it can maybe help you assist me.

          Do I also need to alter the javascript file?
          Last edited by Deej; 10-29-2009, 04:27 PM.

          Deej's Designs n' What Not
          Hit me up for Design, CSS & Photo Retouching


          Icq#30096880

          Comment

          • Deej
            I make pixels work
            • Jun 2005
            • 24386

            #6
            Im willing to pay someone to help me complete this. I have everythign done, I just need to know how to connect the existing javascript with the flash I have rdy.

            Deej's Designs n' What Not
            Hit me up for Design, CSS & Photo Retouching


            Icq#30096880

            Comment

            • psili
              Confirmed User
              • Apr 2003
              • 5526

              #7
              Again, haven't worked with flash in a long time, but am willing to bump the thread while trying to figure out what you're trying to do (hopefully helping someone else reading the thread).

              - Are you replacing an HTML navigation bar with a Flash navigation bar?
              - Are the "tabs" in HTML or Flash?

              bump, regardless, for finding your fix.
              Your post count means nothing.

              Comment

              • Deej
                I make pixels work
                • Jun 2005
                • 24386

                #8
                yes IM replacing the current links there that are just html connecting the javascript.

                The links just open dynamic javascript blips of info.

                So, now I need to have the flash unit of 6 links acces the same blips of info, the code i provided is how it looks on JUST the links in the html. I dont think I need to change the actual JS file, but then again maybe. I think my oinly issue is just simply knowing the actionscripting. Making flash recognize the action.

                Deej's Designs n' What Not
                Hit me up for Design, CSS & Photo Retouching


                Icq#30096880

                Comment

                • Deej
                  I make pixels work
                  • Jun 2005
                  • 24386

                  #9
                  I want to clarify that the "links" are only set to open the javascript action, as you can see in the code i posted.

                  Its not navigating away from the page.

                  Deej's Designs n' What Not
                  Hit me up for Design, CSS & Photo Retouching


                  Icq#30096880

                  Comment

                  • psili
                    Confirmed User
                    • Apr 2003
                    • 5526

                    #10
                    Yea, I don't see why it's not working; it doesn't seem like you're trying to get javascript <---> flash interaction going between each other, but just calling a JS method via Flash button.

                    This help?
                    http://scriptplayground.com/tutorial...ript-in-Flash/

                    Any debugging tools you're using? Maybe just put up a simple Javascript function:

                    function blah() { alert('Flash called me'); }

                    and try and call that from your flash navigation. Debug through the simple to what you want.

                    Or, here's another bump and someone will hopefully chime in with the answer.
                    Your post count means nothing.

                    Comment

                    • Killswitch - BANNED FOR LIFE

                      #11
                      http://www.spoono.com/flash/tutorial...rial.php?id=20

                      There ya go Deej.

                      Comment

                      • Deej
                        I make pixels work
                        • Jun 2005
                        • 24386

                        #12
                        Originally posted by Killswitch
                        as I said, I googled a bit. Dont think youre quick to get the answer i looked over

                        I seen that very page, but see im using a single flash element containing multiple buttons so the code I need is within the actionscripting.

                        Deej's Designs n' What Not
                        Hit me up for Design, CSS & Photo Retouching


                        Icq#30096880

                        Comment

                        • Deej
                          I make pixels work
                          • Jun 2005
                          • 24386

                          #13
                          Bump for morning help

                          Deej's Designs n' What Not
                          Hit me up for Design, CSS & Photo Retouching


                          Icq#30096880

                          Comment

                          • Deej
                            I make pixels work
                            • Jun 2005
                            • 24386

                            #14
                            Well fuck, I guess I'll just redo it in css

                            Deej's Designs n' What Not
                            Hit me up for Design, CSS & Photo Retouching


                            Icq#30096880

                            Comment

                            • Deej
                              I make pixels work
                              • Jun 2005
                              • 24386

                              #15
                              Thanks for all the help from everyone here and a lil help from fartfly as well

                              In the end after listening to all your advice ai pecked around and took what you all said and managed to figure it out.

                              In fact my posting above is damn near dead on, I just did the syntax wrong...

                              how many hours have people in the internet world lost to simple missing commas n shit?!?!?

                              Deej's Designs n' What Not
                              Hit me up for Design, CSS & Photo Retouching


                              Icq#30096880

                              Comment

                              • calmlikeabomb
                                Confirmed User
                                • May 2004
                                • 1323

                                #16
                                Nice, now you're the proud owner of a website with a navigation bar that can't get indexed by the search engines nor gracefully degrades.

                                That is of course assuming your not the progressive enhancement type
                                subarus.

                                Comment

                                • Deej
                                  I make pixels work
                                  • Jun 2005
                                  • 24386

                                  #17
                                  Originally posted by calmlikeabomb
                                  Nice, now you're the proud owner of a website with a navigation bar that can't get indexed by the search engines nor gracefully degrades.

                                  That is of course assuming your not the progressive enhancement type
                                  wow what a downer ;)

                                  I doubt the seo will be degraded. There are other equal links to specific pages for each tab anyway. This is why im keeping it with the javascript bit instead of doing the whole thing in flash.

                                  If you read it all they arent links navigating off of the same specific page. Its a placeholder like link to info alrdy on the page...

                                  Thanks though for that jab after the fact
                                  Last edited by Deej; 10-30-2009, 04:08 PM.

                                  Deej's Designs n' What Not
                                  Hit me up for Design, CSS & Photo Retouching


                                  Icq#30096880

                                  Comment

                                  • psili
                                    Confirmed User
                                    • Apr 2003
                                    • 5526

                                    #18
                                    Well FUCK dude! Where was the missing comma? lol

                                    Don't make this one of "those" threads that happen on every support site, where someone posts a problem, and then magically, at the end, they solved it, but never posted how. It's like blue balls for the brain.
                                    Your post count means nothing.

                                    Comment

                                    • Deej
                                      I make pixels work
                                      • Jun 2005
                                      • 24386

                                      #19
                                      Code:
                                      on (release) {
                                          getURL("javascript:toggleHomeTabs(2);")
                                      }
                                      this was the solution....

                                      misplaced semi colon

                                      Deej's Designs n' What Not
                                      Hit me up for Design, CSS & Photo Retouching


                                      Icq#30096880

                                      Comment

                                      Working...