ActionScript 2.0 :: Sliding On The Y Axis?

Dec 8, 2003

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]....

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Movie Clips Not Sliding Far Enough On X Axis?

Dec 10, 2009

I created a site by following a tutorial, and it has a small bug I dont know how to fix. The site consists of a menu of buttons, and when the buttoms are clicked, a movie clip slides into the screen from the left side. The problem is that occasionally the movie clip doesnt slide f

PHP Code:
import fl.transitions.Tween;import fl.transitions.easing.*;import fl.transitions.TweenEvent;var exitTween:Tween;var currentPage:MovieClip = new home();var

[code].....

View 6 Replies

ActionScript 3.0 :: Construct Coordinates With Distance In Meters On The X-axis And Time In Seconds On The Y-axis

Nov 27, 2011

I am trying to construct coordinates with distance in meters on the x-axis and time in seconds on the y-axis, without using the timeline. How can I draw the divisions on the x-axis and y-axis ? Or I better draw the whole thing.

var my_shape:Shape = new Shape();addChild(my_shape);
my_shape.graphics.lineStyle(3, 0xFF0000, 1);my_shape.graphics.moveTo(50,50);my_shape.graphics.lineTo(50, 300);my_shape.graphics.lineTo(500, 300);

View 9 Replies

ActionScript 2.0 :: Make An Object Move Along Y Axis Once It Has Reached Its X Axis Target?

Mar 2, 2005

I'm trying to grasp how functions and motion tweening works.

Heres my question. How do i make an object move along the y axis once it has reached its x axis target?

HEre is the code, that i got from here.

and what in this code is making the MC ease out?[code]...

View 14 Replies

ActionScript 3.0 :: Tweens Objects Return To Their Original Position - Start Jumping Between Y Axis 200 And Y Axis 83?

Aug 7, 2009

I've put together this simple code for an SWF with three roll over images (called: Training, Resources and Contact).When I roll over Training I would like the symbol Training_txt to tween its alpha to 1 (from 0) and tween its y axis to 220 (from 83).When I roll out of Training I would like to run the two tweens in reverse.
 
This works fine for each of the three roll over images, so long as each tween is allowed to fully execute before a new tween is started. The problem arises if i quickly move the mouse curser between the three roll over images before the previous tweens have finished executing.In this instance, the tweened objects start to behave erratically. They usually return to their original position as per the roll_out tween but then start jumping between y axis 200 and y axis 83 (without tweening - they just appear).

Code below -
 
stop();
import fl.transitions.Tween;
import fl.transitions.easing.*;[code]..........

View 1 Replies

Flex :: Stacked Bar Chart With Date As X-axis And Names As Y-axis?

Apr 13, 2012

I'm making a chart where the x-axis needs to have dates and y-axis names. The lenght of the bar is longer when the date is later. But I want to stack multiple bars on eachother. for example This is the code I have so far

<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;

[code].....

View 1 Replies

Flex :: Align Vertical Axis Zero For Multiple Vertical Axis Chart?

Mar 22, 2011

Based on this Adobe multiple axis chart example: [URL]

Then I changed some data values to negative and my axis became not aligned anymore.

how to align vertical axis? Is this another Adobe bug or there is some property that aligns axis?

<?xml version="1.0" encoding="utf-8"?>
<s:Application
minHeight="600"

[Code]...

View 1 Replies

ActionScript 2.0 :: Move MC Without Sliding?

May 23, 2010

How can I move MC object without using tween. I don't want that it slides.

View 4 Replies

IDE :: Horizontal Sliding Menu?

Sep 11, 2009

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 Replies

ActionScript 2.0 :: Sliding Navigation Bar?

Oct 18, 2005

tool 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 Replies

ActionScript 2.0 :: Add A _y Value To The Sliding Menu?

Jul 29, 2006

I want to add a _y value to the sliding menu tutorial, [URL]

View 6 Replies

AS2 :: IDE - Left / Right Sliding Thumbnails (CS3)

Feb 3, 2009

Stuck 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 Replies

ActionScript 2.0 :: Sliding Mask On The Map

Nov 11, 2004

I 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.

View 1 Replies

ActionScript 3.0 :: Sliding Gallery / How To Loop Around

Apr 29, 2009

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?

View 6 Replies

ActionScript 2.0 :: CS3 Sliding Thumbnails Plus Scroll Bar And Pop Up?

Jun 11, 2009

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.

View 1 Replies

How To Make Horizontal Sliding Menu

Aug 24, 2009

Any tutorial or how to make a horizontal sliding menu ,like in the home page of this website [URL].

View 2 Replies

ActionScript 2.0 :: Sliding Menu Thang?

Oct 7, 2009

I 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?

View 2 Replies

ActionScript 3.0 :: Horizontal Sliding Gallery?

Apr 13, 2009

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 Replies

ActionScript 1/2 :: Slide Down Menu Not Sliding Up?

May 4, 2009

I 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]...

View 1 Replies

ActionScript 3.0 :: Put Sliding Panel With Buttons

Sep 22, 2009

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]...

View 7 Replies

Add Functional Buttons To A Sliding Panel?

Nov 6, 2009

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 Replies

ActionScript 1/2 :: Vertical Sliding Content?

Mar 13, 2011

I'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].....

View 5 Replies

Changing Color With Sliding Scale?

Mar 2, 2010

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 Replies

Silverlight :: Sliding Images Web Tool

Oct 28, 2010

We 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?

View 2 Replies

Flash - Dynamic Sliding Panels?

May 23, 2011

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]....

View 1 Replies

ActionScript 3.0 :: Sliding The UILoader Content?

Aug 31, 2009

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.

View 1 Replies

ActionScript 2.0 :: Dynamic Sliding Menu In MX?

Jan 21, 2003

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

ActionScript 2.0 :: Replicate The Sliding Action?

Jun 30, 2005

[URL]

When you open the site, there's a really sweet slideshow. I've been able to replicate the sliding action and I can click on each image to take me to a new URL, but I can't get it to automatically rotate on it's own. The numbers are fine, but I'd also like to add next/prev buttons.

Like I said, I got it scrolling, I just don't know how they're controlling theirs. I think I'm just doing it all wrong.

View 1 Replies

ActionScript 2.0 :: FMX Sliding Windows Tutorial?

Apr 13, 2003

I must stress before I start that I am very new to flash and actionscripts. I have just completed the sliding window tutorial on this site. [URL]..I am wanting to use it for my own site. My problem is that when I scale everything by 500% and make my movie bigger, the windows don't scroll the same. I understand that I have to change the values in the script on the invisible buttons but I don't know what to use. I tried putting in numbers in by trial and error but I can't get them all working.

View 2 Replies

ActionScript 2.0 :: Sliding And Zoom Content?

Feb 9, 2006

I'd like to get the content sliding and then zooming in effect achieved here:I know that the the basic content slide works using the AS below.Any ideas on adapting this to get the effect achieved at Zebra? Or is a different approah needed?

onClipEvent (load) {
_root.targetx = 116;
_root.targety = 34;

[code]....

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved