OZONE Asylum
Forums
DHTML/Javascript
Canvas trouble
This page's ID:
31003
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I'm having trouble. I can make it work if I leave alerts each iteration. I'm not sure why it doesn't work without. I create an array with the new image.srcs then I loop through the array and assign the image.src to the current array position just before I have the canvas draw the image. I'm trying to avoid having 16 images when I can just swap the image src when i need to draw a new image. Is this bad practice? Should I use a timeout to give the image a chance to get the new src? I don't get it. Here's a link to what I want the page to work like, except the alerts, of course. If the alerts are removed, it simply doesn't work. http://h1.ripway.com/stirfry/javascript/tests/canvas/mapdraw/DrawonmapTest.html this is adaptation of this script http://ponderer.org/download/canvas_demo/
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »