|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
objects/flash use/movies talk to each other
I have 3 questions for you guys, well truthfully i have a ton more questions, but i'm tryint to tackle those myself
![]() 1. I want to implement Objects into my action script, and i want those objects to affect other object so here's my psudo code, I was hoping you could help me out with converting it to action script: as a note I have a movie clip instance on my layer named group and another named formula, this is not necessarily the case i just want to figure out syntax: new myobject(){ var x:whole; var y:whole; var z ointer;} new grpobj=myobject(){ z=_root.group; x=z._x; y=z._y; } new forobj=myobject(){ z=_root.formula; x=z._x; y=z._y; } so if i do the following: forobj.x=25 forobj.y=25 grpobj.x=50 grpobj.y=50 the movieclip "formula" will get placed at x:25 y:25 and movieclip forobj will get placed at x:25 y:25, for some reason i don't think this psudo code will work, but i'm not sure, it makes sence to me, if it will work, then can you please help me out with syntax, and if it won't please give me some pointers. question 2: is there a way within flash to make it tell you how to reference an object? like let's say i have movie clip inside of a movie clip inside a movieclip, the way i could reference that is: _root.movieclip1.movieclip2.movieclip3 right? well let's say i didn't know how to reference that, can i ask flash to tell me how to reference it? question 3: is it possible to have 2 or more flash movies talking to each other? like let's say i set up 3 flash movies, and i code my html so they appear right next to each other, and when you click something in one movie, the other movie will respond. how would i code that? here's my guess: in the first movie have the following code: on(press){ gotoandplay(_moviename2(1)); gotoandplay(_moviename3(1)); } Thank you so much for those that can answer. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > objects/flash use/movies talk to each other |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|