ActionScript 2.0 :: MC Advances Past Its Max Y Position?

Aug 24, 2009

I have a scroller mc that I want to control by clicking underneath its y position to advance it down its y axis by a predetermined amount.The below code works to move it, but it advances past its max value of 496.5 (off the screen).Have I made a mistake in the code below? The scroller mc and associated text block is in their own mc on the root timeline. This code is on a frame on the root timeline.Has it got to do with the relative y positions of the stage compared with the y positions in the actual MC that I am trying to control?

Code:
principals_mc.johnTxt_mc.scrollerZone_mc.onRelease = function () {
var scrollerAmount:Number = 80;
if (this.hitTest(principals_mc.johnTxt_mc.jfscroller_mc)) {[code]......

View 6 Replies


Similar Posts:


ActionScript 2.0 :: Past A Certain Point It Is Scaled Down In Size And It Locks In To A Specified X And Y Position?

Sep 16, 2009

I have a MC that can be dragged. when it goes past a certain point it is scaled down in size and it locks in to a specified x and y position. The problem is this is causing the onPress function and onRelease function to not work properly. once the mc goes in i cant get it out. this is on the first frame of the timeline

Code:
flatline.onPress = function() {
if (_currentframe == 1) {

[code]....

View 3 Replies

ActionScript 2.0 :: Incremental Line That Advances And Retreats?

Jun 5, 2007

Making a line chart with 20 increments that draws itself across the screen as the user drags an icon.Works great using lineTo as the user moves the icon to the right.But I do not see a method to get the line to disappear step by step as the user drags the icon the opposite way, to the left.I could always animate with a non-actionscript line, using a mask that moves left and right, but I was hoping there was some actionscript command that could clear the previous segment of the line drawn, without having to redraw the entire line. clear(); gets rid of the entire line, not individual segments.

View 4 Replies

Make A Simple Swf Made Up Of A Series Of Pictures The User Advances By Clicking?

Nov 12, 2009

I'm shwoing a step by step process on how I did a photoshop piece, and I want to have a simple flash swf that goes through each of the screenshots at the viewer's pace, by them clicking. I wasn't even thinking so complicated as to include forward/back buttons, even just somethign so simple as having the entire image clickable to move 'forward' and when it gets to the end it just loops or something. super simple, i would do an animaged gif but i want it to be at the user's own pace. but if you think of how an animated gif cycles that's how simple i want it to be. also a few of fading/dissolivng between the images would be cool.

View 1 Replies

ActionScript 2.0 :: [MX/2004 / 8 / CS3] SetInterval Immediately Advances The Timeline And Doesn't Wait Any Time At All

May 18, 2007

I'm stopping on a keyframe, then using setInterval to advance after a specific timeout. The first time through everything works fine, but when the movie loops (user-initiated) and it gets to that keyframe with setInterval again, setInterval immediately advances the timeline and doesn't wait any time at all. The keyframe in question is coded like the following:

[CODE]...

View 2 Replies

ActionScript 1/2 :: Cannot Get Scroll To Go Past

Jul 22, 2010

I have an fla that has a scroll which is large, 4591.60 is there a limit where flash will scroll and then stop? I did not create the file but I cannot get the scroll to go past where it is now as there is more to the scroll.

View 1 Replies

ActionScript 2.0 :: Health Bar Keeps Going Past 100 When Healed?

Jul 25, 2009

i have an apple and the character the character can walk over and touch the apple when he touches it he gets 30 random health but then if he health is already 100 the apple will give him 130. ??? is their any way to make it so his health doesnt go past 100

heres the code on the apple

PHP Code:

onClipEvent (enterFrame) {
}
if (this.hitTest(_root.char)) {

[code].......

View 2 Replies

Flex :: End Up Getting A Http 500 Error And Have Not Been Able To Get Past That?

May 24, 2011

I have used wsdl2js to generate the javascript needed to communicate with the service.However I end up getting a http 500 error and have not been able to get past that. I have looked through the provided examples from the Apache CXF download and I have done some searching and cannot find a solid example of creating the javascript client. A lot of examples seem to somehow access the wsdl file at runtime from a server but my javascript is already generated from the CXF tool and I just include the scripts.

Adobe Flex and AS3Another option I have considered is using Adobe Flex. I create a new Mobile Flex project in Flash Builder using the BlackBerry PlayBook SDK and Flex 4.5. However when I use the menu options to connect to a web service I get prompted with "This option is only available for flex projects."Are there any other options out there that provide a solution to this problem? If you need more information just let me know

View 1 Replies

ActionScript 3.0 :: Cs4 Will Not Let Rezise An Image Past 28.8

Sep 23, 2009

i have a movie clip symbol (its just a red square 1x1).

at frame 1 it is just in the centre at 1px x 1 px.

i go to frame 60 ( the end of the movie clip ) and i want 2 resize it quite a bit.

but it WILL NOT let me resize past 28.8 for widht and height.

p.s. if i remove the tween then i can resize it to my hearts content.

View 0 Replies

ActionScript 3.0 :: Movie Not Getting Past The Preloader

Feb 8, 2010

I've got a couple of questions regarding the same project.

1- When you view URL... in IE, you'll notice that it sometimes doesn't go past the preloader. I asked why this happened in an IRC channel, and was told to use swfobject. However, with swfobject, I have the same problem. Is something else the problem?

2- I have the code [code]

View 2 Replies

ActionScript 2.0 :: Getting The Date With Past Days?

May 9, 2010

I've got a number of days from the date to today. Like 1689 days. How can I get from this the date subtraction past days with date?

View 1 Replies

ActionScript 2.0 :: FMX: Cannot -= _x Value Past Zero With Small Numbers?

Jul 7, 2004

I am having a little trouble understanding why my code is not functioning. It works if I subtract and combine numbers above .1 but if I use a number below .1 the _x and _y values stop at 0. I would like the _x and _y values to go into the negative. I am using Flash MX.

function movePastCorner(mc){
mc._x = 2;
mc._y = 2;

[code]......

View 2 Replies

ActionScript 3.0 :: Buttons Don't Work Past First Scene

Aug 17, 2009

in the first frame, first scene. Shouldn't that be where I but the include? (the buttons do work in scene) The buttons that are defined in external.as work in the first scene, but not in the other scenes. When I do an "include" in every scene, I get errors, no buttons work (makes sense....that should throw errors).

[Code]..

View 4 Replies

ActionScript 3.0 :: GotoAndPlay() Doesn't Go Past A Certain Frame?

Apr 27, 2010

gotoAndPlay() is the only actionscript I have in my flash and all I want it to do is go to a frame. If I tell it to go to a frame past a certain one it will not. It always (unless I pick a frame previous to the messed up one) goes to that frame. I have only one scene.

View 10 Replies

ActionScript 3.0 :: Lock The Stage So Cannot See Past Edge?

Feb 7, 2010

my stage is set at 500x400 in flash cs4. I created a rectangle for the background and set the same size as my stage that covers the whole stage but I noticed when I hit ctrl+enter to test the movie clip, it initially looks fine but when I expand the window large, you can see white area all around.

View 3 Replies

ActionScript 2.0 :: Past An URL To A GetURL Without Actually Opening A Window?

Oct 3, 2007

i want to past an URL to a getURL without actually opening a window, this url is a like a tracking tag...

View 1 Replies

IDE :: Press As Past On The Mouse Before Time Runsout?

Apr 3, 2010

i made a small game. the player needs to press as past as he can on the mouse before time runsout.

well, i want to send the score of the player by post (php)

i have read alot of guids but i didn't mannaged to do thise, so i came here.

[Code]...

View 1 Replies

ActionScript 2.0 :: [fmx] Keep Variables Past The Onload Call?

Jan 20, 2004

I've created a multi-framed flash file that's calling multiple variables from an external php (text) file. I'm using an onload command to do this and for some reason the variables seem to "disappear" once I leave the first frame (where the onload and load commands are)I'm figuring that my problem has to do with 'variables scope'. I've read the article on this site but I don't know actionscript well enough to proceed.I ultimately want to do away with using multiple frames by using multidemsional arrays and for...next loops, but this is what I have to work with (for now). I'm going crazy trying to get THIS to work.

[AS]
// ##################################
// FRAME 1

[code]......

View 4 Replies

ActionScript 2.0 :: CS3 Mouse Trailers Extend Past SWF File?

Mar 4, 2009

I'm currently working on a project where I have a mouse trailer in my flash header. It drives me crazy when the effect cuts off when your mouse goes out side of the flash area.

Does anyone know any tricks that I can use so that the effect doesn't cut off? I need to keep it in ActionScript 2.

View 3 Replies

Stop A Rectangle From Going Past An Object After Collision Is Detected?

Oct 11, 2009

Assuming, for a rectangle that is controlled by the user using the arrow keys, that I do the following[code]...

Assuming that works in detecting the collision, what would I use to actually stop the rectangle from progressing through the wall?

View 1 Replies

Quiz Doesn't Go Past The Welcome Page When Test Movie

Oct 21, 2009

I am using a quiz template and have placed video in the first frame. Now the quiz doesn't go past the welcome page when I test movie... I'm sure what I am missing is simple!

View 1 Replies

ActionScript 3.0 :: Clear Browser Cache For Past Hour?

Apr 24, 2010

Been trying to clear browser cache for the past hour, tried almost everything on google and also went Tools>Net options and cleared it. Yet everytime I load the website it shows the old version.

View 1 Replies

ActionScript 2.0 :: Automatic Scrolling If Textbox Past Height

Jan 31, 2007

I am looking for a way to have my content scroll vertically automatically if it is past a certain height.

Code:

var my_format1:TextFormat = new TextFormat();
my_format1.font = "EventFont";
my_format1.size = 50;
my_format1.color = 0xFFFFFF;

[Code]....

View 7 Replies

ActionScript 2.0 :: Add A Little Bounce Effect That When Scrolled It Went A Hair Past The Destination

Jan 24, 2006

[Code]...

if i wanted to add a little bounce effect that when scrolled it went a hair past the destination but came back how would that look?

View 5 Replies

ActionScript 2.0 :: SWF Menu Of Past Projects: Change Current Directory?

Sep 10, 2008

I am trying to create a menu in Flash to access different Flash interactives I have created.When a button is clicked it brings up a different Flash project, but I am having problems with it now bring up it's own assets because they are all referenced as if we were in the sub-folder of the current swf.

View 2 Replies

ActionScript 1/2 :: Zoom - Stop The Page Being Dragged Past A Certain Point So The Static Page Is Not Seen?

Sep 22, 2009

When i zoom into the page then move around the edge of the page can be moved past the edge of the browser window showing the static page which appears at the start of the document. Is it possible to use actionscript to stop the page being dragged past a certain point so the static page is not seen? On the example below the static page is white so it does not pose too much of a problem however im using the static page as a sort of instruction page and it looks a bit rubbish if the user drags a page past the edge of the view window and see's the original page. Example below. [URL]

View 1 Replies

ActionScript 3.0 :: Remove Values Past An Array Length And Clear Entire Array?

Oct 8, 2009

I'm using the .unshift method therefore the newest values go into [0] and the rest are pushed down.

What is a good method to remove a value from an array once it has passed a certain length? For example i only want my array to hold 5 values.

Also, is there a method for clearing the entire array, ie removing all values? Or will i have to manually change all the values with a loop?

View 2 Replies

ActionScript 2.0 :: Multiple Centered Popup Window - Buttons Don't Open / Replace Past That One Popup

Jul 6, 2004

i'm using the centered pop up window script from: [URL]. i have multiple buttons in my flash movie which open screenshot html pages in external browser windows. the script works fine except when a popup window stays open. the rest of the buttons don't open/replace past that one popup. i tried changing the window name in the onRelease script to screen1, screen2, etc for each button, but that didn't work.

View 1 Replies

ActionScript 2.0 :: A Line From One Point Past Another Point And Whether It Hits An Object?

Aug 19, 2009

I am using AS2 with Flash 8 Professional So, my problem is that I currently have a man in the middle of the screen, who shoots a line towards the mouse when I click. However, when I use hitTest to see if the line collides with another object, Flash recognizes the line as a large box if it is diagonal, so the hitTest isn't very accurate. The line only satys there for one frame, so I can't have the usual moving-bullet-style. I am either looking for a way to create an imaginary line with AS from the starting point to the mouse and beyond, and tell whether or not this line intersects with an object... or some other way that I haven't thought of to fix my problem. Keep in mind that the line rotates from a center point towards anywhere around it for 360 degrees.

View 1 Replies

ActionScript 2.0 :: Scale Proportion Past Stage But Not Below Stage

Aug 22, 2006

This goes out to Scotty or any other guru floating around out here. I need the image_mc movieclip in this .fla to scale to fit browser, however i need the image to scale in proportion. I would also need a listener of sorts that will NOT allow the image_mc movieclip to scale below the stage size of 1024 x 768.

[URL]

View 4 Replies







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