Thank you Derell.

I looked at your MiceMaze example. Your solution worked to me.

Here is your code.
var resourcePath;
if (qx.core.Variant.isSet("qx.debug", "on"))
{
    resourcePath = "../../resource";
    qx.io.Alias.getInstance().add("demobrowser", resourcePath);
}
else
{
    resourcePath = "../../resource/demobrowser";
    qx.io.Alias.getInstance().add("demobrowser", resourcePath);
}

o = new qx.ui.basic.Image("demobrowser/image/FsmMiceMaze.png");

Thank you.
Kanugula.


Derrell Lipman wrote:
> 
> On Mon, May 19, 2008 at 11:14 AM, kanugula <[EMAIL PROTECTED]>
> wrote:
> 
>>
>> Hi,
>>
>> qooxdoo 0.7.3, IE 6 and FF.
>>
>> FYI. For simplicity demo browser terminalogy is used.
>>
>> I want to access custom images defined in
>> demobrowser\source\resource\image
>> in Atom_1.html.
>>
> I encountered this issue recently, while working on the FSM Mice Maze
> example program.  I never found a solution with creating an alias, and in
> fact, found that the path to images differs in demobrowser whether you're
> using a "make source" or "make build".  If you look at my example program
> you can see how I solved the problem.  Definitely not ideal,  It doesn't
> appear that any other examples in the demobrowser use local image
> resources,
> so this was uncharted territory.
> 
> Cheers,
> 
> Derrell
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft 
> Defy all challenges. Microsoft(R) Visual Studio 2008. 
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-access-Demo-Browser-resource-images-in-Atom_1.html--tp17317747p17348449.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to