HELP!
Anyone knows how to do this?
hey !! this is a very old stuff dude…
and its done using actionscripting… not very tough If u know how to control x and y axis movements…
Yeah. I know it’s kinda old. Heh.
I suck at AS that’s why I’m asking for help here. :ne:
Any tutorials or something??
I donno where u can get the tutorial for this… But I have tried to make a sample for U…
May be If u can continue to develop this U’ll surely achieve that effect.
Hey cant I attach a flash or zip file on to this???
:diss:
I have tried to make a sample fla for U… and this does not allow me to upload it… what to do?
Warm regards
Sam
Hey I have attached a file…
Chk if this can help U
Warm Regards
Sunitha
welcom to flash 8
here it goes a different way to do it… and it will change x and y position
[AS]stop ();
import mx.transitions.Tween;
import mx.transitions.easing.*;
// function that will move your content, that must have the instance name "content_mc"
function movon (_tox, _toy) {
var move1:Tween = new Tween (content_mc, “_x”, Strong.easeInOut, content_mc._x, _tox, 2, true);
var move2:Tween = new Tween (content_mc, “_y”, Strong.easeInOut, content_mc._y, _toy, 2, true);
}
// code for the menu items
//this will call the movon function
//passing 2 parammeters, x and y
// change the (100, 100) for the x and y position
menuItem1.onRelease = function () {
movon (100, 100);
};
menuItem2.onRelease = function () {
movon (300, 300);
};
//you van add more items just give the proper instance names
//hope this helps[/AS]
I got the transition happening… but can u help me undersatnd the script please…
:puzzle: Sam
first stop in first frame
then import the transitions Tween to tween with AS
then the easing transitions (* this stands for all king of transitions)
[AS]stop ();
import mx.transitions.Tween;
import mx.transitions.easing.*;[/AS]
to apply a simple tween to a movieclip called content_mc, from point A (x=100; y=100) to point B(x=200; y=200) you shoud do this
[AS]//move _x
var move1:Tween = new Tween (content_mc, “_x”, Strong.easeInOut, 100, 200, 2, true);
//move _y
var move2:Tween = new Tween (content_mc, “_y”, Strong.easeInOut, 100, 200, 2, true);[/AS]
the number 2 means 2 seconds
cause u will need this everytime you click in a menu item u can put it inside a function, where you just need to tell where your clip should go to.
(remenber that you can know where the clip is using this “content_mc._x” and “content_mc._y”)
so it goes like:
[AS]function movon (_tox, _toy) {
var move1:Tween = new Tween (content_mc, “_x”, Strong.easeInOut, content_mc._x, _tox, 2, true);
var move2:Tween = new Tween (content_mc, “_y”, Strong.easeInOut, content_mc._y, _toy, 2, true);
}[/AS]
then you need the buttons on release to call this function and pass the parammeters (_x and _y)
[AS]menuItem1.onRelease = function () {
movon (100, 100);
};[/AS]
i’m a bit in a hurry i could explain this better
hope u get it… if not tell me and i’ll explain u latter on
.am
wow. I don’t understand. :*(
Attached a FLA if possible?
Btw Sam, the one you provided is not what I want to achieve. Instead of sliding side to side. I want the site to be able to navigate up down left right, just like the example I provided. Thanks for your help for that anyway.
Help! :*(
that tween stuff is cool.
Cool,
I got it to work ok, but I tried adding a button to my main movie clip so that it could be pressed and the movie would again move, but it doesn’t work???
(Corrected: works when ya reference the content_mc!)
How would one make it appear to Zoom in or Out to the final x/y coordinates?
*Sorry for jumping in on your post mystee, but I have been wondering how this was done for a few weeks now!
Rustyd
i fixed it up with a dead button “section6” (you will understand when you see the file)
check it out and repost if you have questions
flash mx2004, no classes to import
enjoy
pensamente, possible to provide your FLA file? Thanks!
I sorta managed to get it work. But I’m stuck with a problem. When I click on either one of the button, the sliding animation will show but the movie clip is not playing. All I see is the bg image. =(
What could be the problem here? Anyone knows?
i don’t really understand what you mean? any fla?
WOW!!!..:stare:
For a long time that i’ve been searching for this!.. it’s gonna be very usefull to me, thanks a lot guys!!!:geek:
I just love this forum!!! :thumb2: