Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorSpookyET
    • CommentTimeJan 25th 2006
     permalink
    I embedded yahoo maps at http://www.ksuicehockey.com/directions.shtml . The map div, should be 700x700px. 698x698 flash + 1px border on all sides. However, it's 700x715px and the flash is pushed to the right over the border. The canvas and the yahoo maps component have a size of 698x698 too.
    •  
      CommentAuthorSpookyET
    • CommentTimeJan 25th 2006
     permalink
    More problems. In IE, the flash is not displayed. In IE, some elements, like h4, and h3 are somehow horizontally fixed, and if you resize the browser, they stay in place.
    •  
      CommentAuthornifkin
    • CommentTimeJan 25th 2006
     permalink
    first: white space inside your div it's trying to render stuff into?

    second: a suggestion that may save you the effort of trying to figure out flashobject to do that anyway: try using the Yahoo JS-Flash API instead of the straight flash one. It'll save you a step in the middle of what you're doing. There's some example code over here if you want to take a look.
    •  
      CommentAuthorSpookyET
    • CommentTimeJan 26th 2006
     permalink
    It already does what it is supposed to. It already works properly. The only problem is the border, which I realized that I can do in Flash.
    •  
      CommentAuthorSpookyET
    • CommentTimeJan 26th 2006 edited
     permalink
    How to add a one px border to the map:
    Set the map to 698x698px, canvas to 700x700px. Make sure wmode is not transparent when you export.

    var map = new FlashObject('./swf/map.swf', 'map', '700', '700', '8', '#ffffff');
    map.addParam('bgcolor', '#555555');
    map.write('map');

    It has to be done that way. If you set it via CSS, it does not work.

    I still haven't figured out what was the probem with setting the border on the div. FlashObject could be inserting whitespace like nifkin suggested.


    I still don't understand why it does not show up in Explorer, at least on my system.
    •  
      CommentAuthornifkin
    • CommentTimeJan 26th 2006
     permalink
    It already does what it is supposed to. It already works properly.

    I don't think I ever said otherwise. What I made was a suggestion that would save you the step of ever having to do your own flash or use flashobject at all to do something when you can make the Yahoo API do that work for you. Probably in fewer lines of code and with less effort and that you'll be able to update from any text editor and won't have to open flash to mess with again.

    I may be missing the part where you're doing custom flash stuff on the backside or something, but there's easier ways to put a basic yahoo map with basic yahoo markers on a page.
    •  
      CommentAuthorSpookyET
    • CommentTimeJan 26th 2006
     permalink
    You have a lot more control with flash. It's a lot better and you can do cool stuff like http://justin.everett-church.com/index.php/2005/11/08/maps-that-are-consistent-with-your-design/. I'm aware of the javascript api.

    Thanks, please delete that page.
Add your comments
    Username Password
  • Format comments as (Help)