i've made a button that zooms into a movie clip on a rollover, but it on moves it a certain amount each time you rollover the button. code below:
on (rollOver){ _root.Mypic._width += 5; _root.Mypic._height += 5;
} wot i want it to do is to continue zooming in for as long as the mouse is over the button, is there anyway i can change the code to zoom in at the same amount but do it continuously until the mouse is moved off the button. Also is there anyway that i can set it so that the zoom stops at a certain percentage, i.e. it only zooms in so much and then stops. What i mean is that the user can zoom in but the picture will only zoom in to say 200% of the original size.
I'm writing a ticket-shop-system atm for reserving tickets for various concerts.What I have is a php-backend and a webpage that shows a .swf with some actionsscript-3 code in it, to draw in flash some sort of map and make available seats clickable for the end-user.The problem with this solution is, that there are quite large halls and just making the seats smaller isn't the right solution.
I'm just trying to implement a simple zoom system, incrementing and decremeting the _xscale and _yscale of a mc. Since the mc is draggable, I was wondering how I could've managed to zoom the mc right in the spot where the mask was, so, what _x and _y I had to assign to the mc after the scaling.
I was just about to implement a standard code on nonstandard way and puff, a whole morning problem. I was trying to create onLoad Stage.displayState = "fullScreen";. but stage dose not reacts until it is called over the Button.onPress=function(){}
so:
ActionScript Code: someloadvars = new LoadVars() someloadvars.load("somevariaple.php")[code]....
I am starting up a business and I'm creating a website using Flash Professional CS5. This is my first time using the program so I know pretty much nothing about AS3 or any kind of coding for that matter. I'm quick at picking up things that have to do with computers. So, getting to the point, here's my problem. I have absolutely no idea how to implement the HTML code that Google Checkout has given me into my flash website.If not Google Checkout, then I want to use PayPal .
I had to use a setter...how would I implement that into my code, On my external AS file for the coin I have the following:
package { import flash.display.MovieClip import flash.events.*;[code].... And in the main movie I made a dynamic text box gave it an instance name of "score" and in my action script I wrote:
Code: onClipEvent(load){ scrollMin = _root.range._x+_root.range._width // minimum _x value possiible for scrollbar scrollMax = _root.range._x // maximum _x value possiible for scrollbar
[code]....
Do I have to copy and paste all of the slider code into the frame where my btns are? _root.srchMC.dataMC.site1_btn.onPress...
Actually, I already know the answer. The main reason I'm posting it here is for Google searchers, and if I copy and paste the post into my blog, my ActionScript code gets formatted all pretty, when all I have to do is add "as" tags here.
Error: Error #2069: The Loader class does not implement this method. at Error$/throwError() at flash.display::Loader/addChild()
I'm having some trouble implementing a "virtual" camera for use in game development with Flash CS4 ActionScript 3.0.Basically, what I'm trying to accomplish is to have a camera that moves about the main stage so that my character can traverse the level which is much larger in size than the stage itself.I've been using Sham Bhangal's virtual camera script, and when I implemented it by sticking the code into the first frame of a movie clip, it worked great!
From there, I moved the code into a document class that i could instantiate and then drop onto the stage as a child.Finally, I wanted to have a main "builder" document class that would be added to the main stage as a child, and within THIS class I wanted an instance of the virtual camera. This is where I hit some obstacles.how to properly instantiate the virtual camera within the builder class which is then added to the main stage. I have a Stage reference that is being passed to the main builder, but I don't know where to go from here. To what do I add the virtual camera to as a child? To the Stage reference in the main builder class? To the main builder class itself?The main issue is that when I export my movie with the virtual camera added as a child to the Stage reference within the main builder class, it complains that I'm not allowed to access certain values.
Code: Error: Error #2071: The Stage class does not implement this property or method. at Error$/throwError() at flash.display::Stage/set x()
This happens when I try to access parent.x from within the virtual camera class. I assume this fails because "parent" from this perspective is the main builder class, but using the Stage reference produces this same error.I am, of course, willing to provide more detail if something I've written is confusing, and I will gladly provide a detailed fix for those seeking to use a similar solution in the future.
So I've been trying to move the stage's X and Y position and keep on getting this error:
Code: Error: Error #2071: The Stage class does not implement this property or method. at Error$/throwError() at flash.display::Stage/set y() at Main/scroll()
As for why I'm trying to move the stage, I have a movieclip which moves according to keyboard input and i want the stage/Background to always center on him.
I came across this great tutorial on how to zoom into a chart by drawing a rectangle in a LineChart to zoom into it [uRL] but I'm trying to apply it to a PlotChart instead and I'm having issues trying to get the DataTips showing with the following error:
TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.charts.series::PlotSeries/findDataPoints()[E:dev4.5.1frameworksprojectschartssrcmxchartsseriesPlotSeries.as:961] at mx.charts.chartClasses::ChartBase/findDataPoints()[E:dev4.5.1frameworksprojectschartssrcmxchartschartClassesChartBase.as:2069] at mx.charts.chartClasses::ChartBase/mouseClickHandler()[E:dev4.5.1frameworksprojectschartssrcmxchartschartClassesChartBase.as:4823]
The link mentioned about extending the LineChartSeries and override the findDataPoints() function, but after trying to doing the same for extending PlotSeries.as, sortOnXField seems to be undefined and I don't have access to the PlotSeries.as since it is in a swc. Has anyone tried applying the following to a PlotChart instead and got the DataTips to show? What was the override function in the findDataPoints()?
when all my script code is in the first frame everything working fine, but when I put some code in second frame, i've got the error:
Code:TypeError: Error #1009: Cannot access a property or method of a null object reference.at khekhe_fla::MainTimeline/frame1()[code]....
in the second frame i've receive the error i wrote about in the beginning. (i click btn_training, script sends me to the second frame, and when i click btn_back i receive the error).
I want to make a scope wich can zoom in on button click and go back to previous stage (zoom out) also by clicking a button.Now i made it work for zooming in (when i click my button it zooms) but when i want to zoom out everything i tried didn't work .Here is the code:
//button for zoom in zoom.addEventListener(MouseEvent.CLICK,glassMove); function glassMove(event:MouseEvent):void{[code]..............
I am working on flash application TELESCOPE or Camera. My goal is to move around the scene and zoom-in or zoom-out I found that if I move scene, I have to move registration point, because I always want to zoom in the centre of my ocular. So far application works fine only if I move, zoom-in and than before I move any further, zoom-out! But when I move, zoom-in (not fully), move again and zoom-in again, the second zooming doesn't appear on desirable registration point
Using flex / air 2.6 working on an Android device, I am using a canvas with a TransformGestureEvent for zoom in on a map. The listening of the efect is working ok, but I can´t seem to find the information on wether the user intended zoom in or zoom out (fingers getting closer or getting apart).I expected the intention of the gesture to be identifiable with the offsetX and offsetY properties of the event, as you will do on a swipe gesture event. But I always get 0 for both properties, no matter how I do the gesture in the device.How can I know if the fingers getting closer or getting apart in a gesture zoom event?
i had a flash file, and the image was dynamically loaded in a movieClip. when i double click the image it will zoom max. and another double click it will retain its best fit.
I need to have a button to be clicked for the zoom effcet to be activated, then when the mouse hovers over an image it should zoom to 200%. I have 40 images which I'd like to have this effect by.Also when the cursor is over the image is it possible to make the change the cursor to a magnifying glass?
I'm developing a full screen zoom/pan UI. Everything is working great, except I can't get it to center on the correct point when zooming in.
You can view what I have here: [URL]
The numbers in the top-left corner are the navigation, and the white boxes represent the individual sections.
I have a large container movieclip that fills the entire page. Inside of that movieclip (site) I have all of my individual section movieclips (section1-section6). I'm also using a dynamic registration point class to dynamically set the registration point of the "site" movieclip to the current selected section, so that the zoom in/out is centered on that section.
When a user clicks on a navigation item, I first reduce the _xscale and _yscale of "site" to 80, when that is complete I move _x and _y to the position of the selected section's movieclip. When that is complete, I set the _xscale and _yscale back to 100. Right now, it is not zooming in centered, so I have a final step where I correct the _x and _y position after zooming back in.
If I don't zoom in/out I can successfully pan the movieclip and center on the correct section. I believe the problem is that I am moving the _x and _y to the position of the "site" movieclip as if it is at 100%, but since it is at 80% it is not moving to the correct position. I tried to fix this by giving the _x and _y coordinates as:
endX = endX / 100 * 80;
Which made it a little better, but still not centered. I have a feeling that there may be a fundamental flaw in my approach to this.
For some reason the forum won't let me attach my .zip, so I posted it online, as well: [URL]
My code below, in case you don't want to download the file:
How to make several MCs to zoom in on mouse over and zoom out to it�s original scale on mouse out??? all this with actionscript and with some ease (elasticity) to make the motion more natural?
I need to have a button to be clicked for the zoom effcet to be activated, then when the mouse hovers over an image it should zoom to 200%. I have 40 images which I'd like to have this effect by.Also when the cursor is over the image is it possible to make the change the cursor to a magnifying glass?
i have visited a very good flash site..I gotta give credit for their dedication and their work as well. [URL] I wonder, how they put all those animation in a banner with that small size of file ? I mean banner's size is not big at all. My other question is that, how do you make it "zoom in and zoom out" on a movie..Like on those banners. Do they binding all the layers to make it a movie then resize it on the movie or what?