Not signed in (Sign In)

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

    • CommentAuthorpmel
    • CommentTimeSep 13th 2007
     
    I am using htaccess to set up "clean urls" on a site. The url pathname is then passed to an index.php file as variables. For example, if I type in ' www.mysite.com/football/cowboys ' , htaccess will access www.mysite.com/index.php?variable1=football&variable2=cowboys . It seems that flash player and/or swfobject will not allow access to the flash file which is located in the root directory with the index.php file. If I type the above url without the ' /cowboys ' , then everything works fine. So the problem has to do with the browser url being in a different directory than root when trying to access a flash file in the root. I can't even check the flash player version when the browser url isn't in the root directory. Am I explaining myself well enough? Is there a solution?
    • CommentAuthorAran
    • CommentTimeSep 13th 2007
     
    Can you post a link to your page. I can then have a look at the http traffic to see where the server is ACTUALLY trying to access the file from.

    Cheers,
    Aran
    • CommentAuthorGeoff
    • CommentTimeSep 13th 2007
     
    Sounds like it's a path issue with your swf.

    since you are using mod_rewrite, you will want to use absolute paths to your swfs:

    use "/myswf.swf" instead of "myswf.swf" since the browser will think it is in the /cowboys directory even though the swf and the html page are in the same folder on the server.
    • CommentAuthorpmel
    • CommentTimeSep 13th 2007
     
    Thank you for replying so quickly and THANK YOU for swfobject, karma ++++. I have tried both "/myswf.swf" and "myswf.swf" and "http://www.mysite.com/myswf.swf" . They all provide me with the same results. If this shouldn't be happening, then maybe it is a problem with how I have my htaccess mod_rewrite setup, but I can see the swf if I type it's url directly into browser. The actual site I am working on is at http://www.wildjoescoffee.com . When you type in http://www.wildjoescoffee.com/menu/beer , it is broken. If you leave off the "/beer", the site performs correctly.

    The site I am working on is currently password protected:

    username: guest
    password: swfobject
    • CommentAuthorpmel
    • CommentTimeSep 14th 2007
     
    I have even tried changing my htaccess mod_rewrite to look on the root for all swf files. I can now view my swf (which is located in the root) by typing in any number of subdirectories after the domain name followed by the swf name. This didn't change anything.

    Is there a way to check whether flash is available while I am using clean urls that are several "subdirectories" deep? I don't need to rewrite the flashcontent div, I only need to check to see if flash plugin is available. If the plugin is available, I can use javascript to change the window location back to the root and add an anchor hash with the rest of the url pathname. I am successfully able to do this until I add an extra subdirectory to the url.

    My site is listed in the previous comment, along with a password and username to view it.
    • CommentAuthorpmel
    • CommentTimeSep 14th 2007
     
    Success!!! Geoff, you were right all along. I needed to use "/myswf.swf" instead of "myswf.swf" .

    However, I also needed to change src="swfobject.js" to src="/swfobject.js" . I also did this to the other .js file named in my index file.

    Thank you very much for the time both you and Aran spend helping all of us implement your already free contribution to the flash community.
    • CommentAuthorzhangsisi
    • CommentTimeSep 29th 2007
     
    find love sex www.NewMeetings.info/en/lang101752about_sisi11
    • CommentAuthorphilip
    • CommentTimeSep 29th 2007
     
    that zhangsisi post is SPAM! don't use the URL!