ActionScript 2.0 :: Move MC Without Sliding?
May 23, 2010How can I move MC object without using tween. I don't want that it slides.
View 4 RepliesHow can I move MC object without using tween. I don't want that it slides.
View 4 RepliesI have 6 buttons, and a thin bar.. I am doing an effect whereby when I click on the 6th button the bar will move and stop at the 6 button, and when I click on the 2nd button it will move and stop at the 2nd button.. but I cant stop the bar..
bar = slider
button = btn_1
Each btn script:
on (press) {
slider.yMove = btn_1._y;
}
Bar Script:
onClipEvent (load) {
yMove = _y;
easeSpeed = 5;
} onClipEvent (enterFrame) {
_y += (yMove-_y)/easeSpeed;
}
I am working with a downloaded component that moves separate panels horizontally with an ease. there are 4 panels and they are controlled by 4 buttons to make them move.The code for the panels is:
onClipEvent (load) {
targetx = 46.0;
delay = 8;[code]...
T
he code for each button is:
on (release) {
menu.targetx = 46.0;
}
The value changes with each button to move the panels.My question is the buttons are actually buttons and I want to make them into movie clips but when I do that and apply the same code it does not work. Can this only be done with "buttons"? I am trying to create a portfolio section that slides from panel to panel by thumbnails and left and right arrows.
I have a "slide" function that slides a MC for let's say 150 px. I call that function every 5 sec with the SetInterval function.
[Code]....
the things is, when i run the function without setInterval, it works perfectly. But when i setInterval and even if i added a updateAfterEvent(), it still won't slide but only move to the final position of the sliding.. So why doesn't it refresh the display??
tutorial where when you click on a movie clip it moves to a certain location on the page and then zoom in and makes it a certain size. Also i want it to move back to its original location if you click it again.I want the move and zoom to be smooth so the users can see it move across the screen then gradually get bigger.
View 5 Replieswell i want to make buttons that on rollover move to left, on rollout move back to their initial position, and if clicked, they but stay this time at the final rollover place, and be there until something else is clicked. When something else is clicked, the previous button , returns to its initial place. So i ve got it all figured out except for the freeze and move part when the buttons are clicked. All it does now , is when they are clicked they freeze at the position i want, but i havent got a clue how to update them, after so they start moving back, and reacting on rollover and rollout, when the next button is clicked.
[Code]...
I know this is very noob, but I need a simple AS move and loop. Move an object across the stage and once out of site, loop and start over again? It needs to be a slow and endless loop.
View 3 RepliesUsing Tween class maybe? I tried the easeOut. But if will write 2 Tween, the 2nd one will overwrite the 1st one, so I only see the obj moving in the 2nd Tween direction, not the 1st Tween direction. I know the coordinates for the 2nd Tween below is not correct (cos all coordinates shld follow the defined reference point), so I need to find out the logo's width and height. But is alright now cos it is for testing purpose.
[Code]...
How can I move (on click) the ball up? I'd like to click in ball and move it up, the gravity move it down as well...
View 1 RepliesI'm trying to create an animation with an rectangle. I want the rectangle to move in a loop from x=150 to x=50 and back to 150 and so on.
At the moment I can only move the rectangle forward and it stops after it moved 100px.
how to create the loop ?
This is what I have come up with. not much Iknow.
<s:Move id="moves"
target="{rect2}"
xBy="-150"
duration="1000"
easer="{sineEasing}"/>
I used the tutorial on this site for the horizontal sliding menu and would like to modify it to work like the one found here [url]....
View 1 Repliestool which takes the form of a sliding bar.(top left of page)What I'd like is to have it so that as the bar slides up and down the image to the left of it changes. Then when you release the button the corresponding page loads.hat the code would look like for this sort of effect?I'm not sure where to start, or if maybe I'm over complicating it and I should just go with a row of buttons or something?
View 2 RepliesI want to add a _y value to the sliding menu tutorial, [URL]
View 6 RepliesStuck trying to get a pretty simple thumbnail gallery to work: Basically it's just a movieclip of horizontal thumbnails (50 in total, masked so only 10 are shown at a time) with a left and right arrow on the sides, which when clicked should make the thumbs smoothly shift left or right to display the next or previous 10 thumbs (fixed at 1-10, 11-20, 21-30, 31-40, 41-50). They should smoothly ease into place, and the left and right buttons should disable when you reach the left or right limit Is there a simple way of doing this?
View 6 RepliesI am trying to make something like this : A flash movie with the dimension 400 X 400. I have made two movieclips says "Map" which is 800 X 800 and another "mask" which is 100 X 100. I have placed the "Map" movieclip on the stage on one layer and the "mask" movieclip on the other layer. I gave mask action to the map layer so now i can just view 100 X 100 area of the "Map" on the stage.
I have given the following action on the frame : startDrag("mask", true, 0, 0, 800, 800);
so that the mask will move with the movie on the stage.
Now the problem which i m facing is : I dont want to resize the movie according the window size and also i dont need scroll bars, i want to publish it in the size 400X400, so what happens is that i can just move the "mask" into this much area and as the "Map" movieclip is 800 X 800 hence i cant see the right and bottom part of "Map".
Hence now what i would like to have is that when i move the "mask" from left to right the "Map" movie clip should move below it from right to left upto its width and the right end of the stage and vice versa. In the same manner when i move the "mask" from top to bottom the "Map" movie clip should move from bottom to top upto its height and the bottom end of the stage and vice versa.
The tutorial shows how to make the movie clip slide on the horizontal (x) but how do I configure the code to use both horizontal and vertical (y)?I know this is asking for alot but I really am a novice at this actionscript stuff Do I just add a dest=" _root.ynew ;" and "pos = this.y ;" some how to this code?
stop () ;
MovieClip.prototype.move2 = function () {
dest = _root.xnew ;
pos = this._x ;
[code]....
I'm working on a sliding featured gallery like Kongregate.com or Hulu.com uses on their home pages. What I have so far is here:URL...Where I am running into trouble is in the loop around/wrap around areas. My next and previous buttons tween to the next/previous item just fine. However when I get to the last/first, it gets tricky.What I have done when you get to feature #5 is check for the x position, and if I am going beyond 5, I reset it so that we pull in #1 instead. The problem is that this scrolls in #1 from the wrong direction. (Take a look at the SWF above to see what I mean).If I shoot further back in negative X direction and scroll that way, I'll end up with blank space at the start of the move. I could dupe #5 and put it there, but then I have two versions of feature #5 (and #1 for the wrap the other way) that have to be maintained. (Note these will be more than just a blank square obviously, they will each be movie clips that do things).
Possibly that is the correct way? Or am I going about this the wrong way. Would it make more sense to dynamically create, scroll and remove the clips on each button click? (I'm not sure how I would do that exactlyI suppose I could also add the buttons via actionscript too, instead of placing them in a layer and them zipping them to the top, although I'm not sure it matters much.[code]Also one other thing, I note that if the user clicks one of the buttons before the tween completes, it throws the whole thing off (since it grabs the x value when clicked) - is there a way to disable the buttons until the tween is complete?
I've done the basic sliding thumbnail bar with the rollover and clicking on the thumbnails before, but I'm trying to replicate the one on the [URL] homepage.
I wanna do exactly what they've done. I want to have the scroll bar below the slider that they user can use. And I want the thumbnails to pop forward and have info pop out for the selected person. I didn't know how to make the thumbnails readjust themselves when the popup came out. But I'm not sure how to add this into my basic slider.
Any tutorial or how to make a horizontal sliding menu ,like in the home page of this website [URL].
View 2 RepliesI want to make this sliding box lookin thang follow my mouse whenever it is in the blue box. http:[url]....Example ::..
The box starts on the left side behind the "HOME" text.now say i move my mouse over portfolio, forum, or even back to home.I want the box to follow along make sense?
I'd like to use a gallery similar to the one atfor a gallery I am creating. I have an idea of how the horizontal motion would work using a timeline but does anyone have an idea of how I could use actionscript to move the movieclip horizontally so that each image is centered or using a tween class?
View 40 RepliesI created a slide down menu and for the most part it works when you click on each link, but for some reason, it hangs if you have one link expanded and you click on another link:[URL].. I used an old .fla file and it worked fine but when I added an extra category to it, the menu went all crazy. I'm not sure how to fix it.
[Code]...
so i have some buttons that i want to put on a sliding panel. The panel and the buttons are on the same layer. The buttons are buttons i created. there is a seperate button, instantiated as channels, that i use to slide the panel out. I read an online example that made it seem as though if i just placed the buttons on the panel in the stage, they would just slide out with the panel. This is not the case however. here's my code
[Code]...
i want to make a sliding panel with 2 buttons on it. The panel pops up from the bottom of the screen when the mouse is hovering over the the bottom 25 pixels of the screen. The panel is set to disappear when the user hovers the mouse off of the panel. At first i just tried to put buttons on the panel and covert the whole thing to a symbol, but then i could not access the individual properties of the buttons. What i tried instead is to make invisible buttons over the area where the image of the buttons were on the panel. The problem is that when now when the user hovers over the button, flash reads it as the mouse leaving the panel and the panel disappears.
View 3 RepliesI'm trying to make vertical sliding content on my flash site and I have it working so that when I click on the second button, it slides up to the second content, but when I click back on the 1st, it doesn't slide back down to display the 1st content.
var currentPosition:Number = contentholder.richginfo._y;
var startFlag:Boolean = false;
menuSlide = function (input:MovieClip) {
[code].....
I am looking for a way to create a sliding scale, not unlike a horizontal scrollbar that changes the background colour of a page as it moves left or right. Whats the best graphics software for this?
View 1 RepliesWe are looking for a sliding image tool like the one on the following home pages:
1) [URL]
2) [URL]
Where can we purchase something similar?
SO, it's been a while since I've done actionscript 3 again, been mostly busy with iOS programming..Anyway, what I'm trying to create is a sliding panels.So far they work but I'm having some troubles, And everything I try does not do what I want hehe.
The panels work, I generate 5 of them in a for loop, they slide open and close when clicked using greensock.But, They all have a label, which needs to slide with it instead of staying on the same position.Plus, I have a if/else to check if a panel is open, but I want to check this individually instead of overall.
The full code is:
import com.greensock.TweenLite;
import flash.geom.ColorTransform;
import flash.text.engine.TabStop;
[cod]....
i am using flash cs3 with as3. i want to slide content of uiloader with some percentage whenever i click slide button.i have a UILoader of size 1024*768 with scaleContent=false , and the mask of size 1024*768 set on uiloader. i have an image of size 2048*768 and i load this image to uiloader, now i have a two buttons on the screen one for slide left and other for slide right.i want to slide uiloader content by 256 pixel every time the button was clicked in particular direction(depends upon which button is clicked).
currently i am working on right button only. so ignore left sliding at this point.The problem is when i clicked button first time it works fine but when i clicked the same button second time the slide of image is disturbed and it first goes 256 pixels behind zero and then slides to 512 pixels (at third click again it starts from -256 and then come at the target position) . i want to slide the uiloader contents from 256 to 512 at the second click and so on.
Lostinbeta utilises a sliding menu system with a delay so that the section head follows after the content. I have been looking around for a tutorial but haven't found one to date
View 1 Replies