I did look it up in the dictionary:
Code: Select all
import paint from file "flowers.jpeg"
import audioClip from file "/sounds/temp/bugsounds.wav"
Code: Select all
import paint from file "/Macintosh HD/Users/rfcoach/Desktop/coloring pages/frog-LineDrawing.gif"
Code: Select all
button "ChalkDrawing": execution error at line 3 (import: can't open file, mask file or display) near "/Macintosh HD/Users/rfcoach/Desktop/coloring pages/frog-LineDrawing.gif", char 1
I searched the forum as well and found the two following references:
http://forums.runrev.com/phpBB2/viewtop ... ort#p25150
On this page, the poster was able to get the "import paint" thing to work just fine:
And:I'm trying to build a stack that imports a little BW drawing on each page; and I can import it using "import paint from file "ATB2.jpg" in the script of a button.
http://forums.runrev.com/phpBB2/viewtop ... ort#p25040
Then I found this!!!Update:
This works for loading and displaying the image:
import paint from file "P1D16C2.gif"
http://forums.runrev.com/phpBB2/viewtop ... ort#p23276
It works great! But I don't know why or how. Specifically, I don't know:jmburnod wrote:Hi Daniel
You can use this scriptBestCode: Select all
on mouseup ImportPicture end mouseup on ImportPicture answer file "Choose an image" if it = empty then exit ImportPicture end if put it into TheFile import paint from file TheFile end ImportPicture
Jean-Marc
1) how it knew which folder to go to
2) why it imported my image so easily here and I couldn't get it to work the other way.
I can get away with just using this, but I won't really learn anything that way, and so explanations will be accepted with great glee!
Thanks and Cheers,
Bantymom