This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-07-25 09:40:53

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

How to Create a News Dialog

1. Upload a text file here and copy the link.
2. Open scratch, hack it, and open broswer.
3. Go to IU Panes > ScratchFrameMorph > startup > startup.
4. Under the line self newScratchProject, insert the following code:

Code:

self newsDialog.

5. Right click > accept.
6. Now go back to ScratchFrameMorph > menus/buttons actions.
7. Replace the text shown on screen with the following code:

Code:

newsDialog
     | t1 t2 |
     t1 _ (HTTPSocket httpGet: 'TXT') contents.
     t2 _ DialogBoxMorph inform: t1 title: 'News'

(Replace TXT with the text file url)
8. Right click > accept.
9. Close broswer and save image for end user.
10. Open scratch and it should be working!


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#2 2011-07-25 16:59:24

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: How to Create a News Dialog

Cool! also you can use dropbox!


◕‿◕

Offline

 

#3 2011-07-25 17:17:00

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: How to Create a News Dialog

I worked on a similar thing some time ago which attempted to display the top loved projects when Scratch opened. I realized it was too complicated for the time though and gave up. Maybe I'll attempt it once more in the future...

Offline

 

#4 2011-07-28 22:34:17

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: How to Create a News Dialog

Yay!! I was looking for where the startup thingy was!!


I am currently http://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=imagehttp://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=text and I finally got over 1000 posts.

Offline

 

#5 2011-07-28 22:35:01

poemon1
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: How to Create a News Dialog

it dosnt work for me...


http://i47.tinypic.com/rrqe13.gif

Offline

 

#6 2011-07-28 22:44:11

poemon1
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: How to Create a News Dialog

poemon1 wrote:

it dosnt work for me...

never mind... i got it


http://i47.tinypic.com/rrqe13.gif

Offline

 

Board footer