Tuesday, December 6, 2011

init mc Loader works but not onPress...

I have a array of all the images that need to loaded.
Initially I want the first two images in the array to load but
after that when the user clicks a button I want the corresponding
image from the array to load. when the image loads it calls a
preload function and once loaded it need to call a doEase function.
this currently works for the first 2 images but when I click the
buttons it loads the image calles the preload function but the
preload function never completes and keeps looping. Where am i
going wrong here is my code.init mc Loader works but not onPress...
please someoneinit mc Loader works but not onPress...
what are you trying to achieve with doEase?
the doEase function moves the loaded image from position
specified in the locationsArray to the position specified in the
targetArray. On initial load this works great but when I try to
load onPress it just load with out completing the preload function
that then calls the doEase function
this code is a little more clear.



I load 2 images from the namesArray



then onPress i am trying to load additional images from the
nameArray but I am getting no luck
  • neutrogena
  • No comments:

    Post a Comment