Announcement

Collapse
No announcement yet.

External images in Flash Object

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

  • External images in Flash Object

    Hi there,

    I tried to find a post with a similar problem but with no luck so I'll start one.

    I have made a Flash menu which loads external pics with a script that uses transitions. Well it works fine in a flash player, but when I insert that swf in the AM4 and use it as a external reference the images will not show up. The Flash animation is fine but no images - no error message.

    I would appriciate any comment or possible solution.
    Thanks in advance

    Trilok

  • #2
    Re: External images in Flash Object

    Since the Flash file is accessing the images externally, it has to be looking for them somewhere...what is the path where it is expecting to find the images?

    After you build/burn your AutoPlay application, what is the path to those images then?

    One guess is that those two paths are different...which means you'll have to change the paths in the Flash file so it finds the image files where they actually are.
    --[[ Indigo Rose Software Developer ]]

    Comment


    • #3
      Re: External images in Flash Object

      the path in the flash file is relative. A line from the script:
      loadMovie("/fotky/priprava/image"+whichPic+".jpg", "square");
      So I had the FOTKY folder in the DATA folder-no good. I had it in the DISTRIBUTION folder -noluck...

      I understand the problem with paths, I am only having problem to find the spot.

      When I Build the AutoPlay app the FOTKY folder is in DATA folder but it still cannot find them.

      I have also tried having the Flash file external as internal with no change.

      Thanks for the feedback [img]/ubbthreads/images/icons/smile.gif[/img]

      Comment


      • #4
        Re: External images in Flash Object

        You sure that's a relative path? I don't know Flash so well, but doesn't a starting slash designate the root of the volume?

        foo/tree.txt <--- starts from current directory
        /foo/tree.txt <--- starts from root

        Not being fully versed in Flash, I could be totally wrong, though.
        --[[ Indigo Rose Software Developer ]]

        Comment


        • #5
          Re: External images in Flash Object

          The other thing you could try is add some kind of action script to your Flash file to make it report the path it is running from...its current directory may not be the location of the .swf file.

          BTW - thanks for actually doing a search first before posting. We really appreciate that. [img]/ubbthreads/images/icons/smile.gif[/img]
          --[[ Indigo Rose Software Developer ]]

          Comment


          • #6
            Re: External images in Flash Object

            Well, I find it easier to load the pic from the same directory as the .swf that is loading them. I see you are loading to a movieclip target rather than a level. If it were me I would try this. Put your Flash .swf in the Resources/Flash folder with the pics you are wanting to load. Then in Flash have your actionscript something like this:


            <font color=blue>loadMovie("myPic1.jpg", "square");</font color=blue>


            I just opened AMS and made a quick demo and it worked fine.

            Comment


            • #7
              Re: External images in Flash Object

              Hey AGRO, was I right about the initial slash? I'm curious as to how Flash handles that. (Or is the "root" something that you can set within the actionscript, with a root() function or something.)
              --[[ Indigo Rose Software Developer ]]

              Comment


              • #8
                Re: External images in Flash Object

                There's also loadjpg Agro but I'm sure you knew that, i.e.

                myPicture.loadjpg("myjpg.jpg");

                Corey Milner
                Creative Director, Indigo Rose Software

                Comment


                • #9
                  Re: External images in Flash Object

                  Lorne, the slash was replaced by the "." in version 5 of Flash. But you are right

                  Corey, yeah I don't load much pics in flash because of resizing in flash and the raster problems. But the myPicture and loadMovie work just the same as you know.

                  Comment


                  • #10
                    Re: External images in Flash Object

                    Hmmm, that's odd. As you well know about 90% of high end flash uses photos, I do it all the time without any hassle whatsoever. Just for the record, I believe that loadMovie and loadJpg aren't the exact same thing but it doesn't really matter, as long as you have a good way to get the results you need it's all good.

                    Yes slash notation was deprecated in vers. 4 for current dot syntax.

                    Corey Milner
                    Creative Director, Indigo Rose Software

                    Comment


                    • #11
                      Re: External images in Flash Object

                      Thanks Lorne [img]/ubbthreads/images/icons/smile.gif[/img]

                      You were right. (It was not relative.)

                      | foo/tree.txt <--- starts from current directory
                      | /foo/tree.txt <--- starts from root

                      Removing the slash made all the difference and it's only a small change in the script. U got a beer from me! [img]/ubbthreads/images/icons/smile.gif[/img]

                      Thanks to all the other possible solutions guys [img]/ubbthreads/images/icons/smile.gif[/img]
                      Cheerz

                      Comment


                      • #12
                        Re: External images in Flash Object


                        U got a beer from me!
                        Cool! I'll make it a Kokanee. [img]/ubbthreads/images/icons/wink.gif[/img]

                        Glad to hear it worked out well.
                        --[[ Indigo Rose Software Developer ]]

                        Comment

                        Working...
                        X