this is to import from a file...I don't think it will work for URL though, but it might be useful:
It won't copy for some reason, but it's at UI-Panes, FrameMorph, ImportSpriteOrProject.

Offline
danwoodski wrote:
this is to import from a file...I don't think it will work for URL though, but it might be useful:
It won't copy for some reason, but it's at UI-Panes, FrameMorph, ImportSpriteOrProject.
aww.
well, a block?
Offline
You can just write a block spec for it, can't you?

Offline
Servine wrote:
danwoodski wrote:
this is to import from a file...I don't think it will work for URL though, but it might be useful:
It won't copy for some reason, but it's at UI-Panes, FrameMorph, ImportSpriteOrProject.aww.
well, a block?
Offline
Servine wrote:
Servine wrote:
danwoodski wrote:
this is to import from a file...I don't think it will work for URL though, but it might be useful:
It won't copy for some reason, but it's at UI-Panes, FrameMorph, ImportSpriteOrProject.aww.
well, a block?
i thought there was already a block for this?
Offline
Hmmmmm, I bet there is a way. If you take the code that imports a sprite, then open a http socket to the url, get the info, thn put it through the import script, it might work.
Offline
Servine wrote:
Servine wrote:
danwoodski wrote:
this is to import from a file...I don't think it will work for URL though, but it might be useful:
It won't copy for some reason, but it's at UI-Panes, FrameMorph, ImportSpriteOrProject.aww.
well, a block?
Offline
Servine wrote:
ssss wrote:
Servine wrote:
ok. thx.Sorry.
Too confusing for me
![]()
![]()
![]()
Thx anyway.
It seems that trying to use [ScratchPlugin primOpenURL: '' , t1 asString] was pointless
Offline
here's the code to import from a file:
blockspec:
('import sprite %s' - doimport:)method:
doimport: name
| t1 |
(t1 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t1 _ (self ownerThatIsA: OffscreenWorldMorph) frame].
t1 importSpriteOrProject:name.Offline
TRocket wrote:
here's the code to import from a file:
blockspec:Code:
('import sprite %s' - doimport:)method:
Code:
doimport: name | t1 | (t1 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t1 _ (self ownerThatIsA: OffscreenWorldMorph) frame]. t1 importSpriteOrProject:name.
does it work in panther?
Offline
Servine wrote:
TRocket wrote:
here's the code to import from a file:
blockspec:Code:
('import sprite %s' - doimport:)method:
Code:
doimport: name | t1 | (t1 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t1 _ (self ownerThatIsA: OffscreenWorldMorph) frame]. t1 importSpriteOrProject:name.does it work in panther?
Offline
Servine wrote:
TRocket wrote:
here's the code to import from a file:
blockspec:Code:
('import sprite %s' - doimport:)method:
Code:
doimport: name | t1 | (t1 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t1 _ (self ownerThatIsA: OffscreenWorldMorph) frame]. t1 importSpriteOrProject:name.does it work in panther?
It should; you'll just have to tweak the blockspec.
Offline
nXIII wrote:
Servine wrote:
TRocket wrote:
here's the code to import from a file:
blockspec:Code:
('import sprite %s' - doimport:)method:
Code:
doimport: name | t1 | (t1 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [t1 _ (self ownerThatIsA: OffscreenWorldMorph) frame]. t1 importSpriteOrProject:name.does it work in panther?
It should; you'll just have to tweak the blockspec.
I dont know how to, I've tried.
Offline