flash gallery
- Started
- Last post
- 45 Responses
- spmitch0
your path needs to relative to the html file not the swf
- PonyBoy0
i'm working on this site right now... check the source for how it's embedded... basically it's using that swfObject thing I keep screaming about - using javascript...
www.jesserieser.com/beta09
... you'll notice if you're using a dev enhanced browser that it passes all the tests for 'standards' etc and degrades w/the grace you would hope for...... good stuff - the guy who put swfObject together is a saint. :)
- mightyj0
ok looks like the css path is jacked.
it needs to be /lines/css/global.css not /lines/Css/Global.css
you have a case issue with you pathing, as a suggestion just use lowercase. Not sure about the xml path but I would check that too
- PonyBoy0
"your flash is working, now it is the path of your xml file to your pics which is screwed"
that could very well be it!... the flash IS loading
- Claymantis0
XML paths are fine... mightyj where are you finding that incorrect path??
- PonyBoy0
are you using full paths to your xml?... you could be running into a security violation...
- spmitch0
"Generally, you must know that the path of the assets the SWF uses (the path of the images specified in the XML file and the path of the XML files themselves) must be relative to the path of the HTML file which embeds the SWF file (and not relative to the SWF file - a common confusion)."
- Claymantis0
use I'm using the full paths.
The issue is, when I put the SWF in a DIV. It doesnt work.
Other then that it always works fine.
- Claymantis0
*Yes not use haha
- Claymantis0
why would putting a SWF inside a DIV cause the images not load anymore?
- spmitch0
maybe a conflict with div id and object id?
- Claymantis0
I dunno, this really stumps me.
I have no idea why putting something in a DIV would break the XML and images.
- joyride0
Ok, you said you're using full paths, what is the full path to the images xml file.
It's trying to connect to /lines/images.xml
but the flash file is located in /lines/work/xml_pg_final.swf...
and I see the path to the xml is:
http://claytoneedham.com/lines/w…Update that path
- Claymantis0
Where are you finding the path "/lines/images.xml".
Is that in the HTML or Actionscript?
- Claymantis0
I'm not understand where those paths are to edit.
- joyride0
i'm seeing the html and looking at firebug (net/all) it's an addon for firefox browser... very usefull, get it
The flash is pathed in the embed script:
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com...
'width', '903',
'height', '405',
'src', 'work/xml_pg_final',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/ge...
'align', 'center',
'play', 'true',
'loop', 'true',
'scale', 'noscale',
'wmode', 'Transparent',
'devicefont', 'false',
'id', 'site/nav',
'bgcolor', '#ffffff',
'name', 'work/xml_pg_final',
'menu', 'true',
'allowScriptAccess','sameDomain...
'movie', 'work/xml_pg_final',
'salign', 'LT'
- spmitch0
in the action script but they are relative to where the html file your embedding the swf
- joyride0
pull the flash outta the /work folder, update the paths in the embed script (above). so the paths would all be, http://claytoneedham.com/lines/
or update the path in the flash movie to go into the /work folder...
either way is ok
- PonyBoy0
... or...
... make the path a complete 'http://www...' path... and check that link posted earlier about cross domain security... couple lines of script and a simple xml file later - you can make all your paths complete and not worry about what you're dealing with.
- Claymantis0
Hmmm.... I change the path in my actionscript.
FROM:
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
TO:xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("work/images.xml");It still wont work!