Attention: The forums will be placed on read only mode this Saturday (Oct. 20, 2018)

During this outage (6:30 AM to 8 PM PDT) the forums will be placed on read only mode. We apologize for this inconvenience. Click here to read details

Audio & Video Software forum

General discussion

Loading textures dynamically using XML

by pdmoor / April 14, 2005 8:56 PM PDT

I'm doing an application based on dynamic loading. In this the textures were present in a folder. when we click a button, the textures should change(it should take from folder only) using xml file. It is working fine till publishing, but it is not working in webserver. Can anyone help to solve this.
I have pasted the code below.

set thePath="@/dswmedia/images/"

tPathname = thePath & theList[tmp] &".jpg"

member(gDynamicMember).filename = tPathname




on startMovie
gNetObject = script("netObject").new() -- create new instance of download manager
gXmlObject = xtra("xmlParser").new() -- create new instance of xml parser
gNetObject.downloadFile("@/dswmedia/userPass.xml") -- initiate download/parse cycle

-- defining the member to change:
gDynamicMember = member("DynamicMember",1)

-- defining path to images:
gImagePath = "@/dswmedia/images/"

-- saving start up image:
gDefaultImagePath = member(gDynamicMember).filename

Thanks in advance.
Dhakshna Moorthy.P

Discussion is locked
You are posting a reply to: Loading textures dynamically using XML
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Loading textures dynamically using XML
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.

Popular Forums

Computer Newbies 10,686 discussions
Computer Help 54,365 discussions
Laptops 21,181 discussions
Networking & Wireless 16,313 discussions
Phones 17,137 discussions
Security 31,287 discussions
TVs & Home Theaters 22,101 discussions
Windows 7 8,164 discussions
Windows 10 2,657 discussions


Your favorite shows are back!

Don’t miss your dramas, sitcoms and reality shows. Find out when and where they’re airing!