We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10512
    • 28 Posts
    Hello,

    I am adding a Flash flipbook to one of my pages- usually when making static pages, I post one directory where there is a javascript file, an xml file, an swf file, and a folder called pages/ that contains jpgs of the flipbook pages. The swf uses all of these in order to create the flipbook.

    I am a little confused about where files go when using modx....would I embed the swf file in a page (placing it in the Flash folder?), but where would I put the pages folder containing the files that it uses, as well as the xml and javascript files?

    Is it possible to keep all of these files together ( and where would they go?), or do they need to be placed in different assets/ folders and then the paths created in the Flash file....

    This might be a very silly question- but any help appreciated! I don’t understand how Flash works in ModX yet.

    Catherine
      • 10512
      • 28 Posts
      Hello,

      Thanks for the quick reply! I tried this out- uploaded my files into a new directory within assets called flipbooks. I embedded the swf file in my page in modx, and made sure to write the correct path- but the flash file does not show up. There is a rectangle where it should be, and that is all.

      I tested the file itself by navigating directly to it in a browser-- and it works that way. Does anyone know why it would work that way and not through my modx pages?

      Thanks!
      Catherine
        • 7231
        • 4,205 Posts
        Did you try with a full URL http://www.yourdomain.com/the/path/to/the/flash/file.swf

        Sometimes the paths can be different from within the MODx site.
          [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

          Something is happening here, but you don't know what it is.
          Do you, Mr. Jones? - [bob dylan]
          • 10512
          • 28 Posts
          I added the full url to the object and embed tags...still not loading. At the bottom of my browser (Firefox) I get a waiting for ... (site). It seems stuck there.

          Hmm. The xml file only references the jpgs that are in the pages directory...like this: <pages>pages/page01.jpg</page>

          here is the path to the folder that contains all of the files: assets/flipbooks/predators/

          (it is about wildlife smiley )

          Here is how it is referenced in the object and embed tags: src="http://mysite/assets/flipbooks/predators/catalogue.swf"

          base href is "http://www.mysite.com/"/>

          I don’t have friendly URLS activated.

          Right clicking the movie brings up the regular flash menu stuff, nothing about the movie loading.

          It definitely works "outside" of Modx- when directly accessed. Anything else that you can think of that I should check/change?

          Thanks for your help,
          Catherine
            • 22303 MODX Staff
            • 10,725 Posts
            Quote from: gata at Nov 21, 2007, 05:08 PM

            Hmm. The xml file only references the jpgs that are in the pages directory...like this: <pages>pages/page01.jpg</page>

            here is the path to the folder that contains all of the files: assets/flipbooks/predators/
            All pages generated by MODx are running at the root of the site (i.e. that’s the location of the MODx index.php file). And this means when the flash movie executes on the page, it expects internal references to be relative to where it is being executed. So inside the flash movie, wouldn’t the path need to be <pages>assets/flipbooks/predators/pages/page01.jpg</pages>?
              • 10512
              • 28 Posts
              I appreciate the advice-- I went back into the flash file and coded the xml file path to http://mysite/assets/flipbooks/predators/

              and that worked! First I tried just the path assets/flipbooks/etc. but it needs the full address.

              The movie showed up, but not the content- so then I went back to the xml file and coded all of the pages to the same full path, and now it is all there.

              Thanks for your all of your help. So I guess Modx needs to have the full urls in this case. Now the only problem that I get is a pop-up security warning from my Flash Player settings that says "Security warning: mysite.com is attempting to read from www.mysite.com. This a potentially insecure operation, do you want to allow it?"

              I guess I don’t want visitors getting a warning, but any ideas why?

              Catherine
                • 10512
                • 28 Posts
                Quote from: ganeshXL at Nov 21, 2007, 06:21 PM

                Try uploading a crossdomain.xml file to your server:
                http://www.crossdomainxml.org/
                http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14213&sliceId=2

                I took a look at these, and then looked back through my edits and this worked to fix the error message-- I had put the path http://mysite.com/etcetc into my flash configuration, xml file, etc...but I changed the path to http://www.mysite.com/etcetc and the problem is solved. I guess those should match up! smiley