Yup, I know VB. All you really have to know is where to get each component of the form from, and how to change a property of an object. For example, you have a textbox. When a button is clicked, u want it to hide. Find out the number of the textbox. Assuming it is 1, double click the button on which the event occurs. Type the code:
Textbox1.visible=false
This sets the property, visible, to false, or hidden. You can see a full list of properties on the task bar on the right hand side of the form. That is basically it. If you have any specific questions, feel free to ask!
Offline
Thanks! My class starts next week so I will ask anything then.
Offline
archmage wrote:
_y += Math.cos(_rotation*(Math.PI/180))*-number;
Are you sure it is -number? Is that cause of the way that the screen origin is the top left, and y positions are reversed?
Offline
Although, judging by the way that it worked, i would have to say that it is correct. By the way, it will only render the frame after it has executed the script, correct?
Offline
Ok, how do you reference the location of another object? I have the movieclip and instance named "P1" and am referencing it as P1._x and P1._y. Is this the proper way? It is not working. My object is not showing up anywhere on the screen. I have also tried referencing it as P1.x and P1.y, P1.X and P1.Y, and P1._X and P1._Y. Still, my efforts prove fruitless.......if I can JUST get this part to work, everything will function flawlessly. Wanna know what happens? The first point functions as it should, no glitches or anything. The second point literally falls to the bottom, and offscreen.......so what am I doing wrong?
Last edited by Cyclone103 (2008-08-23 21:53:41)
Offline
Try using _root.P1._y
Offline
OH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Ok. That might work..........thanks!
Offline
Yup, it works. Thanks Archmage, you rock!!!!!!!!!!!!!!!!!!!!!! I got it to work, now all I have to do is add some more points in, and add the proper API..........
Offline
Cyclone103 wrote:
Yup, it works. Thanks Archmage, you rock!!!!!!!!!!!!!!!!!!!!!! I got it to work, now all I have to do is add some more points in, and add the proper API..........
You didn't put _root before it? That is the basics! Everyone knows that!
Last edited by Bluestribute (2008-08-24 12:52:46)
Offline
Cept me lol! I was mostly focusing on the API to begin with.
Offline
Cyclone103 wrote:
Cept me lol! I was mostly focusing on the API to begin with.
Well, now you know mister. DONT FORGET! (woops, my planner said don't write in all caps XD or talk to Leroy the plastic doll)
Offline
K lol blues. And who is leroy the plastic doll?
Offline
Cyclone103 wrote:
K lol blues. And who is leroy the plastic doll?
Someone on my planner. But remember- whenever it is something not related to it (like a different sprite) use _root. (I forget how Archmage put it)
Offline
Bluestribute wrote:
Cyclone103 wrote:
K lol blues. And who is leroy the plastic doll?
Someone on my planner. But remember- whenever it is something not related to it (like a different sprite) use _root. (I forget how Archmage put it)
_root refers to the stage. When you refer to _root.P1 you are referring to MC P1 on the stage. If your code is on the stage already you can refer to P1 using simply P1 because the code is already on the stage. You can refer to MC that are within MCs as well. Lets that that B1 is inside MC P1. Then you may refer to B1 like this: _root.P1.B1. If your MC is inside another MC you can also refer to the MC that the MC is within using _parent.
Offline
Ok, thanks! By the way archmage, is it possible to use API to create a 3d randomly generated runaround? It would be awesome!!!!!!!!!! Backface culling takes forever or so I hear.......
Offline
Cyclone103 wrote:
Ok, thanks! By the way archmage, is it possible to use API to create a 3d randomly generated runaround? It would be awesome!!!!!!!!!! Backface culling takes forever or so I hear.......
Err not really sure. I haven't really tried a lot of 3D stuff.
Offline
That actually surprises me. Ok, thanks anyway.
Offline
Wow archmage, you are pretty cool. You know how to program in scratch and flash actionscript!
Offline
Juzzy wrote:
Wow archmage, you are pretty cool. You know how to program in scratch and flash actionscript!
Thanks man I also do java and pascal.
Offline
Cyclone103 wrote:
Ok, thanks! By the way archmage, is it possible to use API to create a 3d randomly generated runaround? It would be awesome!!!!!!!!!! Backface culling takes forever or so I hear.......
it might be possible, though it would be hard to make random dungeon, since I think u can make 3d blocks and stuff in flash, which are made up of lots of squares a.k.a polygons. if u use polygons u might be able to make the angle of which u view, the hard part would be polygons interacting together, which would be really hard
Offline
This is a message to all actionscript fans. I found something that just blew my mind!
http://nonoba.com/
This site gives you an API to develop your own multiplayer games and will manage the servers and everything. If you want to make a multiplayer game I strongly recommend checking this site out.
Offline
Really???? Awesome!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Omg I Need That So Badly!!!!!!!!!!!!!!!!!!!!!!!! Thanks So Much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Offline
Cyclone103 wrote:
Really???? Awesome!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Omg I Need That So Badly!!!!!!!!!!!!!!!!!!!!!!!! Thanks So Much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
One thing tho. Its AS3 only as I found out.
Offline
Oh. Still, its pretty cool. I will start out with AS2, and move on to 3 as soon as I am proficient enough. Now, with deprecated methods, can you still use them, or will they not work? I know it suggests you not use them.
Offline
Cyclone103 wrote:
Oh. Still, its pretty cool. I will start out with AS2, and move on to 3 as soon as I am proficient enough. Now, with deprecated methods, can you still use them, or will they not work? I know it suggests you not use them.
AS3 is very different. This web page compares the 2 languages and shows you what has changed.
http://livedocs.adobe.com/flex/3/langref/migration.html
Offline