Hi again, and thank you everyone.
And yes, they are using PHP to drive content all together, and since it
is an intranet blog... who knows where all the assets are being placed...
Curious about this solution below, when you say "specify a fully
qualified url in the flash vars" do you mean that the URL should specify
the CURRENT FULL URL* of the page loaded?
Which I would in-turn use as the prefix for all my assets that are being
loaded?
This is my assumption, but just want to make sure I get it right before
I go down this path which I can't test as I develop...
Thanks!
Sebastian.
*ex: http://blabla.com/foldername/subfolder/actual_file.php
p.s. As for the carpenter analogy... I know, we keep asking them for
access... I think if I can't solve it today, they may permit me to come
to their office and login from there to access the files [but they wont
give me remote xs... pfff]
Nathan Mynarcik wrote:
"I would recommend that you rewrite your Flash app so that you can
specify a fully-qualified URL as an argument in flashvars, then have
them specify the fully-qualified URL to the XML file."
Now that is a really good idea...
------Original Message------
From: Dave Watts
Sender: [email protected]
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: Re: [Flashcoders] problem with paths
Sent: Jan 22, 2010 3:27 PM
The leading slash was just a typo in my email, but the code doesn't start
with a leading slash, so that can't be the problem.
Well, in that case, it's doing something completely different. It's
expecting to find the XML file in a subdirectory within the directory
containing the current page URL.
It's on an intranet, so an internal website that people like me, who are
external, can't see or access [and they won't grant me access either]. We
can't just tell them "sorry" because they are some huge multinational
company, and we are a small local agency...
They sent me the path names of where they put the file, and where it is
being loaded from, so I tried hardcoding the exact path into my AS file for
the XML file, but it still wont load it.
I know that if I make them test my HTML file that I used, which sits in the
same folder as the resources, it works for them JUST FINE...
So it is when they try and load it from a different directory on the same
server that it doesn't.
Something like:
http://theirsite.com/flash
Is being read from:
http://theirsite.com/someotherplace/somesubfolder
Is there something else I need to set, it loads the SWF from:
http://theirsite.com/flash
just fine, but it won't load the XML from:
http://theirsite.com/flash/xml/data.xml
Any other ideas?
I would recommend that you rewrite your Flash app so that you can
specify a fully-qualified URL as an argument in flashvars, then have
them specify the fully-qualified URL to the XML file.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Nathan Mynarcik
Interactive Web Developer
[email protected]
254.749.2525
www.mynarcik.com
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders