Can someone tell me who is the author of this? Incredible coding. Just using AS only. I do have the code but I don't know who is the author.
http://dikhach.maihoatrang.com/image...as_drawing.swf
Printable View
Can someone tell me who is the author of this? Incredible coding. Just using AS only. I do have the code but I don't know who is the author.
http://dikhach.maihoatrang.com/image...as_drawing.swf
incredible coding? What coding?
Take a look at the swf file. The whole movie using just Action script to draw that picture.
This is just part of the code. I just wonder how he/she can figure out all the points.
Quote:
.......
obj.x[1] = [5.85, 13.8, 23.9, 36.2, 40.85, 56.65, 52.95, 48.85, 42.8, 37.65, 35.65, 37.2, 41.65, 46.75, 56.75, 57.9, 60.15, 63.6, 68.3, 72.55, 79.25, 87.55, 96.6, 105.8, 114.95, 121.85, 127.8, 132.05, 134, 133.9, 128.35, 123.6, 119.8, 116.95, 112.35, 109.8, 107.2, 105.8, 105.9, 102.6, 98.25, 94.5, 91.65, 95.55, 99.7, 101.85, 97.6, 93.35, 89.35, 86.4, 84.9, 87.3, 90.65, 94.85, 93, 92.5, 94.05, 98.1, 102.25, 101.9, 100.8, 97.8, 93.8, 89.5, 87.85, 91.9, 93.6, 95.3, 98.15, 95.2, 90.95, 86.95, 84.15, 85.85, 89.9, 93.65, 90.55, 86.4, 84.65, 88.95, 93.1, 95.5, 98.95, 101.75, 102.2, 102, 98.4, 95.65, 100, 104.3, 108.4, 112.05, 115.1, 117.9, 121.3, 125.45, 129.85, 128, 127.45, 131.8, 136, 139.6, 143.3, 147.6, 152, 156.4, 160.7, 164.9, 168.95, 173.2, 177.5, 181.75, 185.55, 188.6, 192.05, 196.05, 199.6, 201.95, 205, 209.15, 212, 212, 215.3, 219.7, 222.3, 219.6, 216.15, 217.4, 218.1, 217.9, 215, 212.7, 213.1, 213.45, 214.25, 218.25, 217.5, 216.85, 221.05, 220.65, 223.85, 221.9, 222.2, 221.35, 218, 219, 216.45, 213.8, 212.4, 208.6, 212.05, 212.7, 211.8, 212.2, 209.1, 206.4, 204.25, 202.7, 205.7, 206.75, 207.2, 205.05, 201.55, 201.3, 197.1, 192.9, 191.6, 190.45, 191, 194.3, 199.8, 206.45, 213, 219.6, 226.4, 233.45, 240.6, 247.95, 255.15, 262.15, 268.8, 274.55, 278.85, 281.55, 287.25, 291.35, 293.75, 294.35, 293.5, 291.15, 290.65, 290.25, 288.95, 286.95, 284.25, 281.1, 220.8, 218.65, 0, 5.85];
obj.y[1] = [481.2, 456.25, 432.05, 409, 413.2, 389, 379.7, 370.5, 362.4, 354, 344.25, 334.35, 325.55, 316.95, 267.8, 250.7, 233.75, 216.95, 200.45, 192.45, 186.25, 182.45, 180.55, 180.1, 180.6, 177.15, 172.2, 165.55, 157.85, 149.9, 143.5, 136.55, 129.05, 121.15, 116.6, 110.35, 104.2, 97.65, 90.95, 93.6, 93.8, 91.2, 87.75, 87.7, 86.45, 83.95, 84.45, 84.15, 82.45, 79.2, 75, 77.55, 80.05, 79.6, 76.35, 71.85, 73.95, 75.35, 73.65, 69.5, 65.45, 63.15, 64.95, 64.7, 62.8, 61.9, 59.35, 57.45, 54.6, 51.55, 51.15, 49.7, 46.4, 46.1, 47.35, 45.3, 45.15, 44.15, 41.6, 42.2, 41.35, 37.85, 38.65, 35.3, 30.6, 26.15, 23.65, 21.45, 21.45, 20.7, 19.1, 16.65, 13.5, 10.1, 7.5, 6.05, 6.2, 4, 2.2, 2.85, 4.15, 4, 1.6, 0.35, 0, 0.15, 0.75, 1.8, 3.25, 2.4, 2.25, 3.2, 5.45, 8.6, 11.2, 12.95, 15.45, 19.15, 22.05, 23.15, 23.4, 27.85, 29.85, 28.9, 28.15, 31.55, 33.95, 38.15, 42.35, 46.65, 43.4, 41.5, 45.85, 50.25, 54.4, 52.9, 54.6, 58.6, 59.9, 62, 62.55, 64.75, 67.4, 71.6, 71.85, 76, 79.05, 82.3, 86.3, 88.35, 88.4, 90.25, 92.9, 94.35, 97.45, 101, 104.8, 108.9, 111.6, 113.5, 117.75, 117.6, 118.7, 122.1, 120.7, 119.35, 126.65, 133.9, 141.2, 147.8, 152.85, 156.4, 159.8, 163.3, 166.25, 168.7, 170.6, 171.95, 172.75, 174.55, 177.7, 182.35, 188.45, 195.4, 222.35, 249.5, 276.95, 304.5, 332.15, 359.8, 366.75, 373.8, 380.8, 387.6, 394.1, 400.4, 486.65, 506.75, 506.75, 481.2];
obj.x[2] = [5.85, 13.8, 23.85, 36.1, 40.75, 56.65, 55, 53.55, 52.3, 50.75, 48.75, 46.5, 44, 41.3, 38, 36.05, 35.75, 37.1, 39.7, 80.05, 80.05, 77.5, 82.5, 83.8, 238.55, 233.8, 228.5, 222.6, 216.3, 211.3, 208.4, 208.05, 210.2, 214.55, 245.85, 247.85, 248.95, 248.85, 248.55, 247.25, 293.5, 293.2, 292.2, 290.55, 290.35, 288.6, 285.5, 281.45, 276.55, 266, 255.15, 244.05, 232.7, 221.1, 218.9, 220.5, 220.75, 220.1, 0, 5.85];
obj.y[2] = [481.25, 456.3, 432.15, 408.95, 413.35, 389, 385.3, 381.55, 377.7, 373.95, 370.35, 366.95, 363.75, 360.75, 354.85, 348.35, 341.5, 334.8, 328.45, 328.45, 328.45, 336.25, 336.85, 328.45, 328.45, 340.55, 352.4, 364, 375.3, 387.15, 399.8, 412.8, 425.7, 438, 380.35, 375.8, 370.9, 365.9, 360.85, 328.45, 328.45, 340.2, 351.95, 363.6, 373, 382.3, 391.25, 399.75, 407.75, 423.75, 439.55, 455.2, 470.6, 485.85, 491.65, 496.5, 501.65, 506.75, 506.75, 481.25];
obj.x[3] = [108.7, 153.1, 208.9, 201.55, 202.8, 193.7, 192.9, 191.3, 190.85, 190.5, 190.35, 190.4, 190.8, 191.5, 193.65, 196.8, 200.6, 204.8, 209.2, 215.1, 221.25, 227.6, 234.1, 240.75, 247.5, 253.45, 259.3, 264.95, 270.2, 274.8, 278.35, 280.9, 282.45, 283.75, 286.3, 288.45, 290.35, 291.85, 293.05, 293.85, 294.3, 294.35, 294, 293.5, 247.25, 246.25, 238.55, 83.8, 86.15, 84.25, 80.05, 39.7, 41.3, 42.85, 44.1, 45, 45.7, 46.25, 46.75, 56.75, 56.7, 56.7, 56.7, 56.75, 57.5, 58.9, 61, 63.75, 67.35, 71.95, 80.55, 91.55, 103.25, 114.95, 121.85, 127.8, 132.05, 134, 133.9, 129.4, 125.4, 122, 119.15, 116.95, 115.35, 114.05, 113, 111, 108.9, 107.05, 106.05, 105.65, 105.9, 108.7, 108.7];
obj.y[3] = [57.7, 39.8, 69.45, 110.45, 114.5, 119.6, 119.35, 128.55, 130.9, 133.3, 135.65, 138.05, 140.45, 142.75, 146.95, 150.5, 153.35, 155.65, 157.45, 161, 164.05, 166.7, 168.9, 170.6, 171.95, 172.5, 173.65, 175.65, 178.6, 182.65, 187.6, 193.2, 199.1, 205.05, 217.2, 229.4, 241.65, 253.95, 266.3, 278.7, 291.1, 303.55, 316, 328.45, 328.45, 303.1, 328.45, 328.45, 316.4, 315.6, 328.45, 328.45, 325.65, 324.85, 323.5, 321.9, 320.3, 318.6, 316.95, 267.8, 267.8, 267.8, 267.8, 267.8, 254.8, 241.9, 229.05, 216.3, 203.75, 193.2, 185.45, 181.4, 180.1, 180.6, 177.15, 172.2, 165.55, 157.85, 149.9, 144.8, 139.4, 133.55, 127.55, 121.15, 120.65, 119.5, 118.15, 113.3, 108.5, 103.65, 99.5, 95.25, 90.95, 57.7, 57.7];
obj.x[4] = [155.55, 157.05, 158.85, 160.8, 161.7, 162.6, 163.4, 164, 164.4, 164.7, 164.95, 165.1, 165.15, 165.2, 164.55, 163.65, 162.4, 160.9, 159.25, 158.45, 157.45, 156.4, 155.4, 154.45, 155.55];
obj.y[4] = [131.5, 130.2, 129.4, 129.75, 129.75, 129.6, 129.15, 128.4, 127.6, 127.5, 127.7, 128, 128.35, 128.7, 130.2, 131.55, 132.65, 133.35, 133.65, 133.05, 132.8, 132.75, 132.95, 133.2, 131.5];
obj.x[5] = [198.25, 197.35, 201.65, 200.3, 199.5, 199.95, 198.05, 195.8, 194.05, 191.55, 191, 190, 188.45, 186.4, 171.3, 169.2, 166.5, 163.35, 159.8, 161.55, 165, 167.95, 170.3, 172.15, 173.75, 175.55, 177.5, 179.55, 181.35, 183.35, 184.8, 186.3, 187.9, 189.75, 191.8, 194, 195.85, 197.25, 198.25, 198.25];
obj.y[5] = [100.65, 104.3, 100, 104.75, 109.55, 114.3, 115.65, 115.9, 114.3, 127, 130.3, 133.5, 136.5, 139.15, 157.05, 159.95, 162.4, 164.15, 165.05, 162.4, 160.55, 158, 154.85, 151.4, 148.75, 146.25, 143.85, 141.55, 139.05, 135, 130.7, 126.35, 122.1, 117.9, 113.8, 109.8, 105.65, 101.35, 96.9, 100.65];
obj.x[6] = [142.15, 144.2, 144.85, 146.35, 147.9, 149.4, 150.9, 152.4, 153.95, 155.55, 157.15, 158.6, 160.15, 161.7, 163.3, 164.85, 166.4, 167.8, 169.15, 169.45, 168.7, 167.75, 166.75, 165.8, 165.05, 163, 160.6, 158.05, 155.25, 152.4, 149.8, 147.25, 144.8, 143.15, 143.1, 142.2, 141.95, 141.3, 140.45, 142.15];
obj.y[6] = [141.15, 140.5, 141.85, 142.4, 142.65, 143, 143.45, 144, 144.2, 144.15, 143.85, 143.25, 142.8, 142.5, 142.3, 142.35, 142.3, 141.7, 140.95, 141.85, 142.75, 143.3, 143.85, 144.4, 147.1, 149.2, 150.8, 152.05, 152.65, 152.25, 151.15, 149.8, 148.3, 146.05, 143.2, 143.9, 143.05, 142.5, 142.3, 141.15];
obj.x[7] = [145.85, 145.4, 145, 144.8, 145, 145.75, 146.45, 147.2, 147.9, 149.2, 148.35, 147.5, 146.8, 146.3, 145.85];
obj.y[7] = [131.05, 130.75, 130.4, 129.9, 129.45, 129.35, 129.1, 128.8, 128.5, 130, 129.95, 130.1, 130.55, 131.3, 131.05];
obj.x[8] = [219.6, 220.25, 220.7, 220.95, 220.95, 220.75, 220.35, 219.7, 218.9, 221.1, 236.25, 251, 265.2, 279.05, 283.15, 286.55, 289, 290.4, 290.55, 293.25, 294.05, 294.3, 293.05, 290.35, 287.95, 285, 281.55, 279.35, 275.9, 271.3, 265.75, 259.7, 248.05, 236.55, 225.4, 221.2, 217.1, 213.1, 209.2, 202.6, 196.7, 192.3, 190.4, 191, 190.45, 189.7, 188.8, 187.7, 186.4, 173.6, 170.3, 166.5, 161.6, 156.2, 152.8, 149.45, 146.4, 143.6, 141.05, 141.75, 142.35, 142.9, 143.25, 143.3, 142.6, 140.15, 137.15, 134.55, 132.15, 128.5, 134.1, 140.55, 147.95, 155.85, 163.4, 169.45, 174.5, 178.55, 181.7, 183.55, 186.4, 190.25, 194.35, 198.2, 208.6, 219, 229.4, 231.55, 231.55, 228.5, 225.4, 212.15, 198.85, 185.15, 181.35, 177.6, 177.95, 181.65, 191.05, 200.4, 244.35, 252.65, 260.6, 267.7, 272.8, 276.1, 283.55, 286.75, 286.5, 279.9, 274.3, 270.1, 266.75, 251.75, 236.75, 221.85, 219.2, 216.85, 214.8, 213.5, 211, 208, 204.7, 196.75, 219.6];
obj.y[8] = [506.2, 504.45, 502.6, 500.75, 498.85, 497, 495.15, 493.35, 491.65, 485.85, 465.85, 445.55, 424.85, 403.9, 396.45, 388.65, 380.55, 372.15, 363.6, 339.45, 315.1, 290.6, 266.15, 241.8, 226.25, 210.75, 195.4, 189.45, 184, 179.45, 176.05, 173.75, 171.95, 169.6, 165.9, 164.05, 162.05, 159.85, 157.45, 154.55, 150.4, 144.7, 137.65, 130.35, 132.3, 134.15, 135.95, 137.6, 139.15, 154.3, 158.6, 162.4, 164.7, 165.2, 165.05, 164.1, 162.45, 160.45, 158.15, 160.8, 163.45, 166.15, 168.85, 171.55, 174.2, 175.65, 174.85, 173.4, 171.7, 176.35, 181.7, 186, 188.6, 188.85, 186.5, 181.35, 175.15, 168.25, 160.95, 157.5, 154.75, 153.45, 153.8, 155.15, 160, 164.9, 169.75, 172, 174.9, 176.1, 177.15, 180.85, 183.6, 184.6, 183.8, 184.2, 188.05, 189.65, 190.3, 188.55, 175.25, 175.75, 178.6, 183.15, 189.9, 197.75, 242.85, 287.8, 332.85, 377.75, 385.7, 394.6, 403.65, 427.3, 451, 474.7, 479.85, 485.15, 490.55, 494.3, 497.45, 500.1, 502.35, 506.2, 506.2];
...........
what is a point on the screen but a two dimensional x/y coordinate? how hard is it to run an app that shows the point where the mouse pointer is? I swear I saw this utility somewhere... not sure if it was a linux app or some kind of windows tool.
I have a question-- why would someone draw a static picture completely using actionscript code? I thought drawing in actionscript allows an image to change dynamically, yet all that changes is the background color-- a simple two layer design.
its not incredible, its pretty lame. Basically its putting to numbers what the flash interface does for you as a gui. Its a degeneration of technological advancement. Time consuming and overall pointless aside from whatever impression is gotten just from the fact that it was done this way... why? because you CAN.
I know for sure I can't figure out these points. And I think it's incredible to figure this out without using any kind of app.
Be honest, I post this one just becuz I am looking for that kind of app :D
how to find what the coordinates are in flash is easy... draw any object on the screen, go to Panel--> Info and move your mouse around to see the x & y values
the reason for doing it that way is to make file size extramly small
+ he/she most likely used a program to map out all pix.
you're not going to make it that much smaller... everything youd be writing down in code like that is pretty much the same thing flash stores when you draw a vector graphic on the stage. This just makes it take longer to display on the screen and harder to edit.
Anyone know of this program????Quote:
Originally posted by evilsperm
+ he/she most likely used a program to map out all pix.
I think you just wanted to make us all look at a picture of a nekkid lady! ha ha.
The point of finding this software which would convert layers of vector shapes to drawingAPI friendly coordinates is the opportunity to then animate these shapes with code, rather than animating it by hand.
Of course the uses are limited.
I can't think of any practical uses of it over just using movieclips and chaining them to form coherent objects that look like the Halle Berry drawing.
There's other methods that would yield the same results with far less overhead than manipulating those drawings the way they have been scripted.
Hi,
I got an old-fashioned graphics tablet. Whenever you hit it with the pen, it sends a string of numbers to the serial port. I would not call it an author, though :)
If you come across some data files (like geographical maps) in a format that flash does not accept as an importable graphics, but than can be converted into point lists, you have two options: use code like that to display the data at runtime, or use some software like ming to convert the data to a movie. Either way has its pros and cons ....
Musicman