OZONE Asylum
Forums
Multimedia/Animation
Flash MX scenario
This page's ID:
11443
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Ah - That's cool. And also pretty complex to program. You can get a random sentence without too much problem from an array of sentences. You're nearly there now. You can split each sentence into individual words using string.split() with the space character as the delimiter. You can count how many words there are in the array with array.length, and then attach as many boxes with dynamic text fields as there are words in the array, filling those boxes with the words chosen randomly. You can make each of those boxes draggable. I believe there's even a way to get the individual boxes to have adjustable widths based on the word length. That's all (relatively) easy. (I say that, because even I could figure this much out - probably.) BUT - getting the boxes to "snap' next to each other in the "tray", and most of all writing the logic to recognize the correct order of words will most certainly not be easy. (I say that because I don't have a clue how to begin this!) But it WILL be fun! Good luck. Ask when you get stuck and we'll make a stab at helping.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »