
Welcome Guest
|
#1
|
||||
|
||||
|
Hi. again.
Well this time, it's not a problem but just a question. I've recently come across a website - [http://www.orisinal.com][http://www.ferryhalim.com/orisinal/flowers/index.htm] It provices a e-card service which allows the user to arrange flowers according to the way they want it. And then store in a db and sends out the corresponding e-card number to the recipient. Finally the recipient comes back, type the number and views the card. The part which I can't really understand is how to store the arrangment of the flowers in a db. Hmm... Anyway, it's a nice webby which lotsa games and a cool guestbook. Enjoy~ Cheers!
__________________
No Signature Available. |
|
#2
|
|||
|
|||
|
great games... I love them!
They certainly brightened up my Sunday! |
|
#3
|
|||
|
|||
|
Hey ahRandy,
Although I have never done something like this before, my guess is that you need to store the coordinates of each flower along with their dimensions in the database. That way when then recipient recieves the card, all of the flowers are at the correct position in the flash movie and are the correct dimensions. |
|
#4
|
||||
|
||||
|
hmm..i see.
Now it's all starting to make sense to me. (slightly) But since the user decides how many flowers to put in, would it be a dynamic array of coordinates? Or..? Hehe, I mailed the webmaster about my query before. But I guess I got ignored. Nobody would want his idea to be ripped. Cheers!
__________________
No Signature Available. |
|
#5
|
|||
|
|||
|
You could use a dynamic array, but since there is a set number of possible flowers (I believe there are a total of 20), you could just pass variables for the coordinates and size for each flower into flash. I would label each flower something like fl1 to fl20. If you dont get any variables for a certain flower then you know not to move it from its original position and size. But, for the vars you do get, set each variable x_coor, y_coor, width, & height for each flower.
If this doesn't make any sense to you let me know and I'll try to clear things up. |
|
#6
|
||||
|
||||
|
The part i found interesting is that the user can resize the flower on the stage with those handle.. How is it done??
chup
__________________
http://www.dreamance.com |
|
#7
|
||||
|
||||
|
Hi again agt.
Well, yep now I'm clear about the dynamic array part. Thanks. But same as chup, blur about the resizing thing. Basically, I have no idea how the scaling is done. But now in theory (plain talking no action), I know we need to play around with the _height, _width, _xscale, _yscale, _x, _y of the borders, and the scaling object. But practically, I have only but a faint idea as to how to start. ![]() Oh well, enough crapping. I'm gonna try it out. At least I'm gonna die trying And if anybody has got it worked out, please do enlighten me. Thx Cheers!
__________________
No Signature Available. |
|
#8
|
||||
|
||||
|
No doubt it is the scale thingy..but problem is how..
![]() I try b4 on creating such effect but fial. There is also an fla in ultrashock but it use prototype, which is what i hate most. Anyone had a solution? chup
__________________
http://www.dreamance.com |
|
#9
|
||||
|
||||
|
Hi chup.
Regarding the resizing thing, I have a prototype worked out. I used 4 borders, that changes with the scaled item's height and width. And a handle to scale the item. Oh well, a picture means a thousand words. Heres the link but there's one bug about it.. the top and bottom boundary can't seem to follow the exact given width values.. small bug small bug. ![]() Too lazy to solve it ![]() Cheers!
__________________
No Signature Available. |
|
#10
|
||||
|
||||
I dunno how to use prototype :~~~~~~~~~~~ happy chinese newyear ![]() chup
__________________
http://www.dreamance.com |
|
#11
|
||||
|
||||
|
But but..it's just a .swf at the other end of the link.
![]() Temasek island is...Singapore? Pardon me for my ignorance. ![]() ChEErs!
__________________
No Signature Available. |
|
#12
|
||||
|
||||
|
Yeah Singapore
![]() Well...i mean i was actually look for an non-proto solution.. coz...future verison of flash doesn;t support proto, play safe run long ![]() chup
__________________
http://www.dreamance.com |
|
#13
|
||||
|
||||
|
Hmm. they don't? icic.
ar. u got me there. Temasek..Singapura.. ![]() So how was your dinner? Hehe. Anyway, I'm 20 and from Singapore Poly. And, how does one become a senior member? Issit the number of posts? Hehehe, guess that's why I'm typing such non-related stuff in this post.
__________________
No Signature Available. |
|
#14
|
||||
|
||||
|
hey, chup, where did you hear that future versions of flash wont support prototype
![]() Prototype just means that when you create one of those objects, the variable or function is already defined in it... IE- PHP Code:
PHP Code:
A typical example is PHP Code:
PHP Code:
|
|
#15
|
||||
|
||||
|
senior member? dunno.. i think over 100 post. Me from Tp heehee.
![]() Mixmatch, i was trying to say "maybe" they don't support...dun get me wrong . But anyway, they are not documentated right (key reason i "block" myself from studying them). Real reason is i'm lazy ![]() ~~~ chup
__________________
http://www.dreamance.com |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Get back to last visited frame | eureka5720 | Actionscript 2.0 |
5 | 12-01-2007 03:23 PM |
| Dragging multiple mc's and playing back their motion | spinz2112 | Actionscript 2.0 |
0 | 07-12-2006 07:07 PM |
| Navigating from within a movie clip BACK to the main Scene | colossal | Flash MX 2004 |
5 | 01-24-2006 12:20 PM |
| Back button | nickholmes | Flash MX ActionScript |
1 | 12-10-2004 07:53 PM |
| Back button help! Going back to scene1 from a MC | shush1 | Flash MX 2004 |
6 | 10-07-2004 03:35 PM |

Other Programming




. But anyway, they are not documentated right (key reason i "block" myself from studying them). Real reason is i'm lazy 

