Well, relative paths depend on the relationship between your host page and your swf.
If the html page and swf are in the same folder, then of course you just need the file name. "data/videochat.swf" will only work if your host html page is in the directory/folder 1 level above "data" if your html is in a sibling folder to "data", then you would need to target the swf as "../data/videochat.swf" (up one directory, then into the "data" folder" Aran On Sat, Aug 7, 2010 at 4:37 AM, Roman <[email protected]> wrote: > I've tried > > > swfobject.embedSWF("data/videochat.swf", "flash", 322, 516, "10.0.0", > null, null, null, null, function (a) { > if (!a.success) { > //........ > } > }); > > and > > > swfobject.embedSWF("/data/videochat.swf", "flash", 322, 516, "10.0.0", > null, null, null, null, function (a) { > if (!a.success) { > //........ > } > }); > > > and I know for 100% that > mydomain.com/data/videochat.swf loads up if i visit it directly so > whats up? > > Also note the below works > > swfobject.embedSWF("videochat.swf", "flash", 322, 516, "10.0.0", null, > null, null, null, function (a) { > if (!a.success) { > //........ > } > }); > > that above works but the file has to be in the same directory as > index.php etc.. > > I wan't to move swf file to data folder which i did but the javascript > doesn't pick it up? > > yes going to mydomain.com/data gives 404 error but going to mydomain/ > data/videochat.swf loads it up (not cached versions). > > Can someone tell me whats wrong? i've tried nearly everything very > odd.. after all it's all clientsided! > > -- > You received this message because you are subscribed to the Google Groups > "SWFObject" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<swfobject%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/swfobject?hl=en. > > -- You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.
