Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how did they do this?

Status
Not open for further replies.

disfasia

Programmer
Apr 20, 2001
378
CA
I found this rather interesting site where the mc actually pans left and right depending on the button one clicks. Can someone briefly tell me how this effect may have been undertaken?

Thanks in advance!

disfasia
 
I believe it's created by putting the mc on the page, and say w/ an instance of it named "movie"
you do something like

movie._left + 1

and it should go in the actionscript for the buttons...

Also of course using - 1 or whatever...also there is a _top property. ----------------------------------------
Insert attention grabbing signature, which would otherwise provoke a positive emotion here.
 
so i do not need to use a load movie command? and what is a _top property?

and the movie._left + or - will actually negotiate within the mc?

thanks again,
disfasia
 
IMHO, that effect wasn't done as Luke WhiteTiger says. It's more like a scrolling galery with taper effect type of thing.

As for using loadMovieNum (into a level other than the main level or level0), unless your loaded movie is exactly of the same size as your main movie - it will align with the top-left corner and cover the main movie - Luke is right in saying, it is better to load your movie in a empty mc, which you can position and alter in many other ways. Contrary to what Luke says again though, you would use the _x(Position) & _y(Position) properties to position it.

;-)ldnewbie
 
when I position x and y, this would be for the button action script? that is, i would measure where the entire frame falls when i have a particular image in view? and what do i write after mouse_down? a get action?

thanks
disfasia
 
Disfasia,
Hard to help you out without a context!
The setProperty action can be used almost anywhere!

For instance, even before you load your movie, you could set it's _visibility to false. It will load but will not be seen until you set the _visibility to true.
That can be done in a button's actionscript, but could be done most anywhere. Same goes for all the other properties of an mc.
Remember, you're not working on a .swf... You're working on a mc that holds the .swf, so you don't even have to load another movie. If you already have that movie as a mc, you can simply apply all properties to it.
In order to help you out further, you should be a little more specific and give us more of an idea of what you're trying to achieve!

;-)ldnewbie
 
I was referring to the site above where the scrolling goes left and write and the movie clip stops at a certain point. Basically, I wanted to know how to negotiate the x and y position in terms of the action script language. For instance, would I write, after on mouse event, simply 'x(position)'? I am not familiar with the wording of this... Or do I use a get action??? I simply do not know the language for going left and right on an mc..

thanks
disfasia
 
I am trying to do this action. I have made a clip with three frames from left to right. I have tried to program button 1 to go to where the x and y fall..but i am not able to do it. First, I have the mc in a frame by itself...i do not know how to call up the mc in the action sript. In set property i can only choose x or y, i chose x and then it asks for a target and value?? I do not know where to go or what to put in these fields...
any help is greatly appreciated!

regards,
disfasia
 
I have now sort of figured out the target and value, but instead of scrolling slowly where i see all the images between the first the present frame, the scene jumps to the next scene. Is there a way to get this scrolling effect? Or is this like a scroll up down button, but instead left and right?

thanks
disfasia
 
What I have been able to figure out thus far is how to jump from one fram to the next, but to scoll slowly is still an enigma to me. Can somebody please help me with this issue?

thanks so much!

disfasia
 
dave design has a fla in the faq section under his 50 fla's post..think it's called scape..take that fla and pick it apart and i think you will be able to get the effect of what your looking for..couple others in there that you might find helpfull as well..
e.gif


carlsatterwhite@endangeredgraphics.com
 
Thanks virt2001. I found the fla and have studied it, but it seems much more complex than what i wanted to emulate. In dave's fla the mouse movement on the stage moves the screen left or right at varying velocities whereas i just want to move to a certain _y place but scrolling steadily. I noticed on one of the mc's that he writes:
while (Number(v)<5) {
v = Number(v)+1;
w = &quot;x&quot; add v;
duplicateMovieClip (&quot;x&quot;, w, v);
setProperty (w, _x, Number(getProperty(w, _x))+Number(v*getProperty(w, _width)));
}


what is the number v? and how might i make a frame scroll from say _y 10 to _y 45 stopping at y_45? would i use number(v)+1...or this entire action script? Sorry for the questions but it seems rather complex to me.

thanks for any and all help!

regards,

disfasia
 
I have figured out much of this site making a keyfame with /xpos and making my mc adhere to each x position. my problem now is that i am in the process of making a second mc load when each button is pressed showing a layed over screen moving. i have written:

on (release) {
/:xpos = 916.9;
}
on (release) {
tellTarget (&quot;/white&quot;) {
nextFrame ();
}
}
 
I have figured out this site...i set up a xposition frame to a desire number (i put 0) and then the image in an mc and then an mc with the following code in the first frame that i set on the main stage:

play ();
current_x = getProperty(&quot;../image&quot;, _x);
dif_x = current_x-/:xpos;
setProperty (&quot;../image&quot;, _x, current_x-(dif_x/18));
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top