I have a HTML box and load a local html file from the project.
In this HTML file I use jquery and I want to load an image from my user directory.
I see the image from my user directory but jquery doesn’t works.
I get this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at crop/onLoaded()[/Flex Bundle/workspace/crop/src/crop.mxml:119]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.html::HTMLLoader/onCompleteTimer()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
But if I load an image from the app workspace, everything works fine (I see the image and Jquery works).
Is this a policy problem? The error says that is a “null object reference” problem, but this can’t be true…
Any ideas?
Damian
My Solution for copying a file from the application directory to a self defined directory:
Vars:
OR 2. Long and complicated: