Options

Flash security setting for SmugMug sites?

bryanbrazilbryanbrazil Registered Users Posts: 35 Big grins
edited December 8, 2010 in SmugMug Support
Are there any restrictions placed on embedded flash objects on SmugMug pages that would prevent urls in a flash object from working?

The reason I ask is that I have a flash map embedded on my SmugMug About page at:

http://www.bryanbrazil.com/Other/About/12619380_eBFs2

When the code for the map is run outside of SmugMug, you can click on the markers and they will launch the specified photo galleries.

See http://www.bryanbrazil.net/ammap/test.html

When the map is embedded in SmugMug, however, the links no longer work.

Hopefully someone can help me figure this one out...thanks!

-Bryan Brazil

Comments

  • Options
    AndyAndy Registered Users Posts: 50,016 Major grins
    edited December 4, 2010
    No Special settings at all, that I know of. Hm.
  • Options
    bryanbrazilbryanbrazil Registered Users Posts: 35 Big grins
    edited December 4, 2010
    Found out from the map makers that Flash security prevents links from working outside of the server where the map files reside. Doesn't sound like there's a solution.
    Andy wrote: »
    No Special settings at all, that I know of. Hm.
  • Options
    bryanbrazilbryanbrazil Registered Users Posts: 35 Big grins
    edited December 4, 2010
    Andy, is it possible to have SmugMug install a simple text file in the root of my SmugMug site, bryanbrazil.smugmug.com? Adobe Flash prohibits cross domain access unless a policy file is in place. The policy file, crossdomain.xml, would just have to look like this:
    <?xml version="1.0"?>
    		
    	    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    		
    	    <cross-domain-policy>
    		
    	    <allow-access-from domain="www.bryanbrazil.com" />
    
                <allow-access-from-domain="bryanbrazil.smugmug.com" />
    
    	    </cross-domain-policy>
    

    For more information, see http://kb2.adobe.com/cps/142/tn_14213.html

    Thanks,
    Bryan
  • Options
    jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited December 6, 2010
    Andy, is it possible to have SmugMug install a simple text file in the root of my SmugMug site, bryanbrazil.smugmug.com? Adobe Flash prohibits cross domain access unless a policy file is in place. The policy file, crossdomain.xml, would just have to look like this:
    <?xml version="1.0"?>
            
            <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
            
            <cross-domain-policy>
            
            <allow-access-from domain="www.bryanbrazil.com" />
    
                <allow-access-from-domain="bryanbrazil.smugmug.com" />
    
            </cross-domain-policy>
    
    For more information, see http://kb2.adobe.com/cps/142/tn_14213.html

    Thanks,
    Bryan
    See this thread: http://www.dgrin.com/showthread.php?p=658923#post658923 about using api.smugmug.com instead.
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • Options
    bryanbrazilbryanbrazil Registered Users Posts: 35 Big grins
    edited December 6, 2010
    Hmm, couldn't get api.smugmug.com to work. I'm trying to display a .swf Flash file (located on an external server) on a SmugMug page. The .swf has links in it to several of my SmugMug galleries.

    I just replaced "bryanbrazil.smugmug.com" in the links to my galleries with "api.smugmug.com". Is this how it's supposed to work?

    Thanks for your help! I'm guessing this will probably never work, but I'd like to try.

    -Bryan
  • Options
    jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited December 6, 2010
    Hmm, couldn't get api.smugmug.com to work. I'm trying to display a .swf Flash file (located on an external server) on a SmugMug page. The .swf has links in it to several of my SmugMug galleries.

    I just replaced "bryanbrazil.smugmug.com" in the links to my galleries with "api.smugmug.com". Is this how it's supposed to work?

    Thanks for your help! I'm guessing this will probably never work, but I'd like to try.

    -Bryan
    What are you trying to do with the links to the galleries in the swf? I believe that the api.smugmug.com solution was when a flash file wants to programmatically get images from Smugmug and use those images in the swf. Gallery pages are HTML pages that are displayed in a browser. What exactly are you trying to do with them in the SWF?
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • Options
    bryanbrazilbryanbrazil Registered Users Posts: 35 Big grins
    edited December 6, 2010
    jfriend wrote: »
    What are you trying to do with the links to the galleries in the swf? I believe that the api.smugmug.com solution was when a flash file wants to programmatically get images from Smugmug and use those images in the swf. Gallery pages are HTML pages that are displayed in a browser. What exactly are you trying to do with them in the SWF?

    There's an .swf map on my About page with points-of-interest on it. The POIs have URLs to my corresponding SmugMug galleries. When you click on a POI, it should load that gallery in the browser. You can check out the map, although the links don't work, at:

    http://www.bryanbrazil.com/Other/About/12619380_eBFs2
  • Options
    jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited December 6, 2010
    There's an .swf map on my About page with points-of-interest on it. The POIs have URLs to my corresponding SmugMug galleries. When you click on a POI, it should load that gallery in the browser. You can check out the map, although the links don't work, at:

    http://www.bryanbrazil.com/Other/About/12619380_eBFs2
    You've passed by my knowledge of Flash development. I'd be surprised if you have to have a crossdomain.xml file just to use clickable links to another site in a flash file. That's widely allowed in HTML (you can put an <a> tag to anywhere in an HTML file and it's not a security issue there so I have no idea why it would be restricted in flash. My guess is that there's something wrong with the way you're doing the links, but that's just a guess since I haven't seen your source.
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • Options
    bryanbrazilbryanbrazil Registered Users Posts: 35 Big grins
    edited December 7, 2010
    The flash map is provided by ammap.com. The links are loaded from an xml file and each link is specified in a <movie> tag that looks something like this:
    <movies>
      	<movie color="000000" color_hover="b2b2b2" url="http://www.bryanbrazil.com/National-Parks/Yosemite/12617433_J9ckz" file="target" title="Yosemite National Park" lat="37.45" long="-119.40" width="10" height="10" fixed_size="true"/>
    </movies>
    

    Both the .swf and .xml files are on the same server, I'm just loading the .swf from my SmugMug page. I tried placing a crossdomain.xml file on the server with the map files, but no luck.

    I heard back from amMap and it sounds like there's no way to get links to work when loading the map from an external server using the current map implementation.

    Thanks for all your help on this!
    -Bryan
  • Options
    jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited December 7, 2010
    The flash map is provided by ammap.com. The links are loaded from an xml file and each link is specified in a <movie> tag that looks something like this:
    <movies>
          <movie color="000000" color_hover="b2b2b2" url="http://www.bryanbrazil.com/National-Parks/Yosemite/12617433_J9ckz" file="target" title="Yosemite National Park" lat="37.45" long="-119.40" width="10" height="10" fixed_size="true"/>
    </movies>
    
    Both the .swf and .xml files are on the same server, I'm just loading the .swf from my SmugMug page. I tried placing a crossdomain.xml file on the server with the map files, but no luck.

    I heard back from amMap and it sounds like there's no way to get links to work when loading the map from an external server using the current map implementation.

    Thanks for all your help on this!
    -Bryan
    You're beyond my area of knowledge, but do you realize that the link you have in the movie tag "http://www.bryanbrazil.com/National-Parks/Yosemite/12617433_J9ckz" is a gallery HTML page, not a movie of any kind?
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • Options
    bryanbrazilbryanbrazil Registered Users Posts: 35 Big grins
    edited December 8, 2010
    jfriend wrote: »
    You're beyond my area of knowledge, but do you realize that the link you have in the movie tag "http://www.bryanbrazil.com/National-Parks/Yosemite/12617433_J9ckz" is a gallery HTML page, not a movie of any kind?

    Yeah, that is the way that amMap does any kind of links, even to standard html pages. The "movie", so to speak, is a black circle on the map that points to a SmugMug gallery.
Sign In or Register to comment.