You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by mark goldin <ma...@gmail.com> on 2015/03/31 10:10:02 UTC
Problem with a path to images
On my local system I am using a relative path to get my pictures.
private var filePath:String = "../assets/";
But QA box only works if I provide the full path:
private var filePath:String = "http://qa_box/approot/assets/";
Why is that?
Thanks
Re: Problem with a path to images
Posted by Tom Chiverton <tc...@extravision.com>.
On 01/04/15 01:40, Eric wrote:
> environments, or just QA? The other thing to test before you declare
> it fixed is whether it'll work running from Flash Builder (debug mode
> outside of web server)... assuming you use FB.
Which is why I always suggest running even your local debug builds
through a local web server. This way the local environment is a closer
match to the live / QA one.
Trying to maintain an application that works in multiple environments is
more work, and more fragile.
Tom
Re: Problem with a path to images
Posted by Eric <eh...@gmail.com>.
Ahh yes, I recall the joys of a similar experience a few years ago. Did
the change make things work in both environments, or just QA? The other
thing to test before you declare it fixed is whether it'll work running
from Flash Builder (debug mode outside of web server)... assuming you
use FB.
-Eric
On 3/31/2015 10:36 AM, mark goldin wrote:
> Seems like this works:
> private var filePath:String = "approot/assets/";
>
> On Tue, Mar 31, 2015 at 9:18 AM, mark goldin <ma...@gmail.com> wrote:
>
>> Debugging Console shows 404 - not found.
>>
>> On Tue, Mar 31, 2015 at 8:54 AM, mark goldin <ma...@gmail.com>
>> wrote:
>>
>>> The locations are not exactly the same, but both have same main folder
>>> and assets as a subfolder.
>>>
>>> On Tue, Mar 31, 2015 at 8:52 AM, Tom Chiverton <tc...@extravision.com>
>>> wrote:
>>>
>>>> And the deployment locations are the same ?
>>>> Can you turn on the developer tools in both browsers to see what
>>>> requests are made ?
>>>>
>>>> Tom
>>>>
>>>
>>>
>>
>
Re: Problem with a path to images
Posted by mark goldin <ma...@gmail.com>.
Seems like this works:
private var filePath:String = "approot/assets/";
On Tue, Mar 31, 2015 at 9:18 AM, mark goldin <ma...@gmail.com> wrote:
> Debugging Console shows 404 - not found.
>
> On Tue, Mar 31, 2015 at 8:54 AM, mark goldin <ma...@gmail.com>
> wrote:
>
>> The locations are not exactly the same, but both have same main folder
>> and assets as a subfolder.
>>
>> On Tue, Mar 31, 2015 at 8:52 AM, Tom Chiverton <tc...@extravision.com>
>> wrote:
>>
>>> And the deployment locations are the same ?
>>> Can you turn on the developer tools in both browsers to see what
>>> requests are made ?
>>>
>>> Tom
>>>
>>
>>
>
Re: Problem with a path to images
Posted by mark goldin <ma...@gmail.com>.
Debugging Console shows 404 - not found.
On Tue, Mar 31, 2015 at 8:54 AM, mark goldin <ma...@gmail.com> wrote:
> The locations are not exactly the same, but both have same main folder and
> assets as a subfolder.
>
> On Tue, Mar 31, 2015 at 8:52 AM, Tom Chiverton <tc...@extravision.com> wrote:
>
>> And the deployment locations are the same ?
>> Can you turn on the developer tools in both browsers to see what requests
>> are made ?
>>
>> Tom
>>
>
>
Re: Problem with a path to images
Posted by mark goldin <ma...@gmail.com>.
The locations are not exactly the same, but both have same main folder and
assets as a subfolder.
On Tue, Mar 31, 2015 at 8:52 AM, Tom Chiverton <tc...@extravision.com> wrote:
> And the deployment locations are the same ?
> Can you turn on the developer tools in both browsers to see what requests
> are made ?
>
> Tom
>
Re: Problem with a path to images
Posted by Tom Chiverton <tc...@extravision.com>.
And the deployment locations are the same ?
Can you turn on the developer tools in both browsers to see what
requests are made ?
Tom
Re: Problem with a path to images
Posted by mark goldin <ma...@gmail.com>.
Both IIS7.
On Tue, Mar 31, 2015 at 8:29 AM, Tom Chiverton <tc...@extravision.com> wrote:
> On 31/03/15 09:10, mark goldin wrote:
>
>> private var filePath:String = "../assets/";
>>
>> But QA box only works if I provide the full path:
>> private var filePath:String ="http://qa_box/approot/assets/";
>>
>> Why is that?
>>
>
> Does your local .swf run through a web server the same as the QA machine
> does ?
>
> Tom
>
Re: Problem with a path to images
Posted by Tom Chiverton <tc...@extravision.com>.
On 31/03/15 09:10, mark goldin wrote:
> private var filePath:String = "../assets/";
>
> But QA box only works if I provide the full path:
> private var filePath:String ="http://qa_box/approot/assets/";
>
> Why is that?
Does your local .swf run through a web server the same as the QA machine
does ?
Tom
Re: Problem with a path to images
Posted by mark goldin <ma...@gmail.com>.
Does not look like it helped.
On Tue, Mar 31, 2015 at 6:09 AM, Kessler CTR Mark J <
mark.kessler.ctr@usmc.mil> wrote:
> What happens when you do;
>
> private var filePath:String = "/approot/assets/";
>
>
>
>
> r/s
>
> -Mark Kessler
> Senior Program Analyst
> MCICOM G4
> Phone: (571) 256-7089
> Email: Mark.Kessler.ctr@usmc.mil
>
>
>
>
> -----Original Message-----
> From: mark goldin [mailto:markzolotoy@gmail.com]
> Sent: Tuesday, March 31, 2015 4:10 AM
> To: users
> Subject: Problem with a path to images
>
> On my local system I am using a relative path to get my pictures.
> private var filePath:String = "../assets/";
>
> But QA box only works if I provide the full path:
> private var filePath:String = "http://qa_box/approot/assets/";
>
> Why is that?
>
> Thanks
>
RE: Problem with a path to images
Posted by Kessler CTR Mark J <ma...@usmc.mil>.
What happens when you do;
private var filePath:String = "/approot/assets/";
r/s
-Mark Kessler
Senior Program Analyst
MCICOM G4
Phone: (571) 256-7089
Email: Mark.Kessler.ctr@usmc.mil
-----Original Message-----
From: mark goldin [mailto:markzolotoy@gmail.com]
Sent: Tuesday, March 31, 2015 4:10 AM
To: users
Subject: Problem with a path to images
On my local system I am using a relative path to get my pictures.
private var filePath:String = "../assets/";
But QA box only works if I provide the full path:
private var filePath:String = "http://qa_box/approot/assets/";
Why is that?
Thanks