ActionScript 2.0 :: Image Pan That's Working On Both X And Y Axis In The Same Time?

Dec 8, 2006

I wanna have a image pan that's working on both X and Y axis in the same time...

The best example i can give you is: [URL]

I've tried to modify the code:

this.onMouseMove = function() {
constrainedMove(bg_mc, 4, 1);
};

[Code].....

View 3 Replies


Similar Posts:


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

Flex :: Date Time Axis Not Showing Correct Values?

May 28, 2010

<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>

[code].....

View 1 Replies

ActionScript 2.0 :: HitTest Function Only Working On Y Axis

Oct 14, 2003

Go to [URL]. My hitTest function only works on the y-axis. This is the code....
onClipEvent (enterFrame) {
// _root.speed = speed;
if (Key.isDown(Key.UP)) {
speed += 3;
} if (Key.isDown(Key.DOWN)) {

View 1 Replies

ActionScript 2.0 :: Drag Throw Scroller - Ease Into Place Stopping And Showing The Second Image Stopping The Image At X Axis 0

Feb 18, 2009

I want it to while still easing into place like the iphone does. For example my stage is 550px. The drag and throw MC is 1650. That's 550x3. If the first image is showing starting at x axis 0 and you drag to the left it will ease into place stopping and showing the second image stopping the image at x axis 0. And the same thing scrolling to the next one and scrolling back. So the code is below and I've attached the movie that I'm working on.

[Code]....

View 8 Replies

ActionScript 2.0 :: How To Pan Image Both The X And Y Axis'

Nov 17, 2006

I want to make a portfolio for myself but the only problem is that I cant seem to find any tutorials on how to pan an image both the _x and _y axis'. Ive followed a tutorial by URL... but that only does the x axis, and when i tried to make my own AS for the y axis i got it to pan up and down.. but it would just keep going down and the side you went to was inverted so that if you went to the right it would go left. Also I was wondering if there is any tutorial on how to make a 2d/3d bg like the one found here:URL...e.g. how the things in the BG seem to scroll over eachother depending on position of the mouse.

View 9 Replies

ActionScript 3.0 :: Event Listeners / Handlers - Button To Move A Movie Clip Up The Axis By 4 Every Time It Is Clicked?

Apr 12, 2011

Baisically I've created a button using symbol and I want the button to move a movie clip up the y axis by 4 every time it is clicked (move the movie.) I really don't know how to do this. This is what I currently have but its not ActionScript:

[Code]...

View 6 Replies

ActionScript 3.0 :: Use A Matrix To Stretch An Image Along Its X And Y Axis?

Nov 12, 2010

I am trying to use a matrix to stretch an image along its X and Y axis. My code looks like this:

Mat = new Matrix();
Mat.createBox(MyScaleX, MyScaleY);
MyBitmapData.draw(MyDisplayObject, Mat);

When I change MyScaleX, there is no change to the scale. However, the image location gets shifted. When I change MyScaleY, both x and y get scaled. I have also tried to use:

Mat = new Matrix();
Mat.scale(MyScaleX, MyScaleY);
MyBitmapData.draw(MyDisplayObject, Mat);[ code]....

View 0 Replies

Actionscript 3 :: Rotate An Image Along The Y-axis With Flash Builder 4.6?

Jan 5, 2012

I am trying to rotate a image using rotationY but it always rotates based off of the left side of the image is there a way to change the rotation point to be the center of the image? Is seems like you should be able to use the transformAround() method but I am having problems finding a example of the transformAround that has to do with images. Does anyone have any examples of how do this or am a going about this the wrong way? What i am trying to do is build a slide show that rotates around and you tap on the images to enlarge.

View 1 Replies

ActionScript 2.0 :: 2 Buttons, One Large Image, X-axis Movement?

Apr 23, 2003

i have 2 buttons and one large image. this image has about 10 product images inside of the clip.here is the idea...i want to click on the move left or move right button, clicking on the button will move the MC containing the Product Images to the left or right.the thing i am not getting is normally when i move stuff on the X-axis i have more than one button and attach the actions to each button. but i only have two buttons now. one for left and one for right. now i am confused.

View 14 Replies

ActionScript 2.0 :: MovieClip Movement - Image Panning On X And Y Axis

Nov 6, 2006

I've mastered the way of image panning on an x asis for menus and so forth, but I am trying to get it working with an x and y asis. I mean like the main navigation in this example [URL].

View 4 Replies

ActionScript 2.0 :: Loadmovie : First Time Not Working, Second Time Does?

Apr 5, 2004

I want to load a external movie (swf) into my current movie. My syntax:

loadMovie("movies/"+itemName+".swf","_root.popup.popup_bg.movieName" );
loadVariables("content/"+itemName+".txt","_root");[code]....

First line: Loading the movie into the instance

Second line: Loading some vars into my scene

third line: make the popup appear with an alpha tween

fourth line: proving the itemName is correct.

Problem: First time running this script results in not showing my movieclip

Second time running this script everything works perfect.why my movie is not loading?

View 3 Replies

ActionScript 2.0 :: Loadmovie: First Time Not Working, Second Time Does

Apr 5, 2004

I want to load a external movie (swf) into my current movie. My syntax:

loadMovie("movies/"+itemName+".swf","_root.popup.popup_bg.movieName" );
loadVariables("content/"+itemName+".txt","_root");
_root.popup.gotoAndPlay(2);
trace(_root.popup.popup_bg.movieName._y);

First line: Loading the movie into the instance Second line: Loading some vars into my scene third line: make the popup appear with an alpha tween fourth line: proving the itemName is correct.

Problem: First time running this script results in not showing my movieclip Second time running this script everything works perfect.

View 3 Replies

ActionScript 3.0 :: Rotate On Y Axis A Bitmap To Have Mirror Reflection Of The Image ?

Mar 30, 2011

The idea is I have 3x3 containers(Sprites) - each one holds 2 tiles of 2 two images (shown one and unvisible - laying behind) . So there are 9containers and 18 tiles. When I click on the image I get rotation of the containers, and when every container is about 90 degrees, its childs swap each oher. So in result I get second image shown. But unfortunely then, shown image is rotated by 180 degrees, that means its left side is on the right. Pre rotating containers ( of tiles gives total mess, as middle tiles seem to be right, but left side of the image and right doesnt match to rest.So I need to rotate tiles, which are bitmapData - parts of Bitmap. But I can not rotate them - there is no property .rotationY for bitmapData, and I can not use matrix's rotate() method as it traits only angle rotation and not axis rotation.If I rotate by Y axis the bitmap before slicing it to tiles nothing happens, so I guess draw method relies on default Bitmap.

So Q : How can I rotate on Y axis a bitmap to have mirror reflection of the image and then apply it reflected to the as a .bitmapData property and slice it to small pieces.

View 0 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

Actionscript 3 :: Image Is Working After Compilation But Not Working Once The Executive File's Location Is Changed?

May 25, 2011

package
{
import flash.display.DisplayObject;[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 3.0 :: UnloadAndStop() Working Only The Second Time

Jan 23, 2011

I am making a flash website that loads 20 external swf files and I am having problems unloading them. after many tests I noticed something strange : When looking at the memory load of the browser in the task manager, I can see that each swf file will add memory load the first time it's loaded (which will remain even after calling unloadAndStop), that memory load will double the second time the file is loaded but after the second time the memory load does go down when unloadAndStop is called.
 
I tried a bunch of things but I can't seem to find the right thing to do. I tried removechild before calling unloadAndStop and the memoy load was only going up. Since those external files have many HD images, each one adds around 100mb of memory so it's a very big problem.

View 13 Replies

ActionScript 3.0 :: Working With Lots Of Movieclips At The Same Time?

May 14, 2010

I'm a game developer and I have been (trying) to optimize an engine I'm making for my game. So far I have done almost every code trick there is (almost, because I'm not even close to be a professional programmer so I don't know how to do this perfectly )The game is working very smoothly now, I'm impressed, but its still generating some issues with MovieClips. When I load a new map, it loads up a movieclip that contains all the ingame objects (Screen). Inside, I add all the enemies, player and map elements I need. After that, I sort the index of the objects inside it by their position on Y.

While this works fine (using vector), my problem is that each map has like 30-40 movieclips (like doors, walls, etc), plus the player (another movieclip), plus some objects (20-30 movieclips), plus some enemies (10-40) movieclips... and when I move the camera (following the player), all the flash window area needs to refresh, and generates lag. If I only have the doors, walls and player, it runs ok... but when I start adding the enemies and other objects... Is there any efficient way to work with movieclips? Notice 90% of map elements like doors and walls are a movieclip with only one frame.

View 1 Replies

ActionScript 3.0 :: Keyboard Keys Are Not Working First Time?

Jan 3, 2010

1) My game is playing differently when i am debugging it & when am i testing the movie(ctrl+Enter), the difference is that in testing movie the keyboard keys(i hv called the keyboard event key up & key down ) are not working first time, when player loses the game fiirst time,key start to work properly

2) It is working slowly, when i loaded its compiled swf with another swf but working fine when played individually, i hv specified the different stage.framerate for both swf in their corresponding class.

View 1 Replies

ActionScript 2.0 :: Button Not Working When Pressed Second Time

Jan 27, 2005

There is a problem with my button.
Code:
stop();
_root.enter_btn.onRelease = function() {
_root.up_mc.onEnterFrame = function() {
_root.up_mc._alpha += 5;
if (_root.up_mc._alpha>100) {
[Code] .....
This code works only ONE time) the second time i'm pressing the button - no effect.

View 2 Replies

ActionScript 2.0 :: Quiz Score Not Working - Remain Same All The Time

Mar 25, 2007

I'm trying to create a simple quiz with a few questions, the code I have below doesn't seem to work. It comes up with my final score as -15 all the time, its not even checking to see if the answer is correct, as soon as I load the movie the Output comes out as -5 -10 -15.

quizBut.onRelease = function() {
totalOutput_txt.text = "Your final score is: "+score+"/30.";
};
score = 0;
if (_root.answer1 == "flush") {
[Code] .....

View 1 Replies

ActionScript 3.0 :: .as File To Fade In Images Not Working All The Time

Jun 2, 2009

I have 10 images that are set to a loop. I wrote a .as file to control how the fade it. The first one works great, but after that the fades seem to get less and less till the last one seems to just pop up on stage. Here is my code:

package
{
import flash.display.MovieClip;
import flash.events.Event;
import flash.display.Bitmap;

[Code].....

View 3 Replies

Actionscript 3 :: Flex URL History Management - Not Working Properly The First Time

Jan 22, 2011

I'm having a flex "design studio" for T-shirts, and I have made so that when a given itemId is passed in the URL (using #item=3), the corresponding item should be directly loaded.

[Code]...

View 1 Replies

Flex :: Flex - Long Image Links Of Facebook Is Not Working In Mx.image.souce

Aug 11, 2010

I am creating one desktop application of facebook.

So here I am getting streams from facebook post. So when any facebook application's long image link I am getting that I can't display in Image container, this is not displaying image.

One also fact is that, When I am giving this link directly then it is working.....

When I have seen this in Charlse Debugging proxy then it is displaying 403,Forbidden error of image.

View 2 Replies

Flash 9 :: Shared Library Process For The First Time With Audio Files Not Working

Sep 15, 2008

I'm trying to use the Shared Library process for the first time with audio files and I'm not sure why it's not working. I've followed both processes from here:[URL] and have a library file called libTestAudio.swf with all the audio files set up right (see Flash file here [URL] My question is should the testAudio.swf ever grow in file size? When it has no content it is at 4Kb but when it has the shared library file added to the timeline it becomes 8Kb. Now this might sound small but I've tried this with much longer pieces of audio and the file size does get bigger for testAudio.swf . I was thinking that only the libTestAudio.swf file would increase in file size and testAudio.swf would remain at it's 4Kb size. Am i wrong there?

View 0 Replies

Cs4 :: Can't Change 1 Image At A Time

Nov 22, 2009

I am making a website (even tough i don't know much about editing and stuff yet) and i'm trying to use this Template.. there are tabs on the site with option etc, and i am having trouble editing 1 tab at a time .. everytime i change something in 1 tab, it automatically changes all the others as well .. i don't know why .. there is a green 'glowing' light green retangle around all the tabs.[code]...

View 5 Replies

Professional :: Embed An Image In Swf At Run Time?

Jul 29, 2011

I have created an Image component in flash which is having a "imageSource" paramter, where in a user can provide the path of his/her image(both from web or from  harddisk). I want that image to be compiled with the swf. how can i do that?.

View 6 Replies







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