Announcement

Collapse
No announcement yet.

Flash Links

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Flash Links

    I inserted a flash presentation into APMS and I can't get the links to work right within my flash presentation. For example, I want one link within the flash to go to my tours.htm page. It takes me to: http://tours.htm, instead I want it to go to the file tours.htm because I'm making a cd-rom presentation. It works right when I use the flash without APMS. Is there a way to get around this. If not, I will have to remove the links from my flash and put the web object into the APMS and call up the file within the APMS web browser. Thank you in advance for any help you can send my way.

  • #2
    Re: Flash Links

    I don't know about doing that within Flash, but usually with AMS when you want to link to something on the CD you will use the variable %SrcDir%\filename.htm. This will then look for that file on the cd rather than launching to the website itself.

    But like i said, I don't know how you are doing it with the Flash Presentation. If you are using FSCommands, I am sure you can the file on the CD open on a FSCommand.

    Lots of good flash users here. I am sure you will have a better answer soon.
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

    Comment


    • #3
      Re: Flash Links

      That might do it. Maybe I can make my links within my flash application read %SrcDir%\filename.htm instead of filename.htm and then AMS will know where to go, but my flash will be confused, but that isn't a concern.

      Comment


      • #4
        Re: Flash Links

        Or instead of using %SrcDir%\filename.htm, in your flash animation you could have a fscommand.

        Then when the button or what ever trigger that event in the flash then referenced in AMS to open that file from the disk.

        You may want to do a search on Flash to see if the topic has been covered before and expecially look for a tuturial that shows using flash as an intro and then at the end of the flash they do a jump to page 2.
        TJ-Tigger
        "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
        "Draco dormiens nunquam titillandus."
        Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

        Comment


        • #5
          Re: Flash Links

          I tried the %SrcDir%\filename.htm but it didn't work. I do have an option for a FS Command but not real sure what to put in for an open file command. I know how to use the default commands, but not real sure about others including open file command. Any Ideas on what the command and/or argument of it would be?

          Comment


          • #6
            Re: Flash Links

            You're trying to open an HTML page with flash. Are your trying to open it in default browser or within a web object within AMS? Obviously both are simple enough to achieve, just let me know which you are trying to do and I'll setup a sample file for you to download.

            Corey Milner
            Creative Director, Indigo Rose Software

            Comment


            • #7
              Re: Flash Links

              Hi Corey,

              Thank you for responding. I'm trying to open the link up in a default
              browser. I'm using Swish for my Flash. Swish offers an action for a link "
              Go to URL". In the "Go to URL", I put the page "tours.htm". When I put the
              flash into AMS and click on the flash link it takes me to http://tours.htm,
              instead I want it to go to the file within the directory tours.htm because
              I'm making a biz-card. For now I would be happy if the link came up
              correctly in the default browser, but to make it come up correctly in the
              web brower built into AMS would even be better.

              Comment


              • #8
                Re: Flash Links

                Either is easy. The key is using an fscommand. So in Swish you would assign an fscommand to your button, i.e.:

                fscommand ("tour","go");

                This means that when you click your button flash will transmit a variable named 'tour' with the value 'go' via an fscommand.

                Then put that into your AMS project and simply add an "On FSCommand" action to the flash movie which does what you want the button to do, i.e.:

                On FS Command

                WEB BROWSER OBJECT > NAVIGATE TO > %SrcDir%/tour.html

                Just make sure your tour.html document is in your distribution folder...


                Corey Milner
                Creative Director, Indigo Rose Software

                Comment


                • #9
                  Re: Flash Links

                  Thank you Corey for getting me on track. Your good with words. Now I put some FS Commands in my flash links like you said. I placed the flash into my AMS presentation. I added a "On FS Command" stating to "open a file" video.htm. When I clicked the flash link, it worked, it brought up the video.htm file. Now I'm going to have multiple links with multiple FS Commands. I made another link with the FS Command of "slideshow, "go". When I click this link, it brings up the video.htm file as well - which makes sense because I didn't tell it to open a different file. I tried using the "IF command and others, but I can't seem to get it to work. I've attached a screen shot of the code I thought would make it work, but no luck. Any ideas?

                  14310-Image1.jpg

                  Comment


                  • #10
                    Re: Flash Links

                    Yep. If you're going to use multiple links then you need to add an IF statement to your On FS Command action:

                    So in other words your AMS will now not only have to detect the FScommand but also actually check the value of it.

                    So if you have three buttons let's say, give them fscommands in Swish such as:

                    Button 1: fscommand ("go", "welcome");
                    Button 2: fscommand ("go", "tour");
                    Button 3: fscommand ("go", "video");

                    Then in your AMS application set your flash object to "On FSCommand" do the following:

                    FLASH OBJECT > GET PROPERTY

                    In the variable field type %myPage%, In the object field select your flash movie from the pull down, and in the property field set it to "Last FSCommand Args". Now we have our page name in a variable.

                    Then simply do a:

                    IF (%myPage% = "welcome")
                    {PAGE > JUMP > %SrcDir%/welcome.html}
                    IF (%myPage% = "tour")
                    {PAGE > JUMP > %SrcDir%/tour.html}
                    IF (%myPage% = "video")
                    {PAGE > JUMP > %SrcDir%/video.html}

                    The syntax is not right but you get the idea...

                    Corey Milner
                    Creative Director, Indigo Rose Software

                    Comment

                    Working...
                    X