I am currently working on a website for a studio based in Sydney and have been developing (very basic actionscripting 2.0...) it for the last week or so, and up until now I haven't had a problem.
The site layout is simple and is essential 10 blocks stacked next to each other 5 on the bottom and 5 on the top. Each block is a button that highlights when a user rolls the mouse over.I have created the button animation as a movieClip which is being controlled by a Button symbol with actionscript on the button symbol:
How do I do a scale movement using the easy effect? I study a lot of examples, using speed/5, but... didn't work. I just saw a site that tells what do I want to do: [URL]
I'm still very much a newbie when it comes to AS3. I need to create an external image scroller. That's simple enough, but these images are of people of different ethnics groups, roughly divided into four categories. So, the pictures need to be randomized two-dimensionally. The first random factor is which of the four groups to choose from. The second random factor is which image in that group to display. That way, no ethnic group is favored over another.
I've gotten fairly far...when I test my Flash file and click the Start button, you'll see the first random image. Wait a few seconds, and the second will appear. All well and good...but the logic for how to randomize and automatically display all 15 images eludes me, despite days of research.
Can anyone point me in the right direction? I tried to upload the test files but they're too big, so the code is below.
I have a div with a flash object in it. That div is going to pop up in a modal triggered when a user clicks a thumbnail of the flash presentation. The problem occurs when I try to use the scale effect to scale in or out, it errors out.
Here is the HTML: <div id="modal"> <object id="presentation" width="720" height="576" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="[URL]" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value=" video.swf" /> <param name="quality" value="high" /> [Code] ......
i'm making a game where a ship moves from a random starting position to a target but I want to be able to zoom in & out (its a plan view) so would therefore need some way of scaling all MCs on stage equally & move them closer together when zooming out.. how I might do this? I thought maybe putting everything within 1 MC possibly?
I am trying to make a grid of photo thumbnails where the thumbnail grows when you mouse over it. Sort of like the Mac Dock effect but in a grid. [URL]I don't need to load the photos as the above sample does. And I'd be happy with an effect in which the individual thumnbail grows on mouseover, or one more like the Dock effect in which the nearby thumbnails grow too, but less.
I am trying to create a zooming in effect on some text. To do this i am using the scaleX and scaleY Tween. The problem that I am having is instead of scaling outwards in all directions, it looks like its scaling downwards and to the right. I think this is because the centre of origin is in the top left corner.
Code: import fl.transitions.Tween; import fl.transitions.easing.*; import fl.transitions.TweenEvent; var myFormat:TextFormat = new TextFormat(); myFormat.size=15; [Code] .....
I am trying to find the code to have my mc scale from 0 to 1 in AS3 on enterFrame.Unfortunately, I have researched and have found every solution but the one I need.
I'm trying to build a styled, rounded button movieclip that I can reuse/resize. So inside a movieclip, I have two layers:
Layer 1: A border, which is a shape - a rounded rectangle (or actually the stroke of a rounded-rect).
Layer 2: A nested movieclip which contains a shape for the face of the button. I have added filters to this nested movieclip to give it a beveled-type look - typical rounded button stuff.
So, I've tried applying scale-9 to the parent movieclip: in this case the border scales fine, but the face (with the filters) does not. So, then I tried applying scale-9 to both the parent and the nested face movieclip,I want to be able have the button self contained as a clip which I can pull from the library, drop on the stage, and scale without distortion - and so far, as mentioned,I can't figure out how the get the nested face, the one with the filters applied, to scale appropriately.
I want when the user click and dragg (Mouse_DOWN) the rotate button, the image will be rotatedAlso, when the user click and drag the scale button, the image will be scaled.Here is my code, but it dosen't work as I need:
btn_rotate.addEventListener(MouseEvent.MOUSE_MOVE, on_btn_rotate_down); btn_rotate.addEventListener(MouseEvent.MOUSE_UP, on_btn_rotate_up); function on_btn_rotate_down(e:MouseEvent):void
I'm trying to change the y-scale or x-scale of a movieclip. I've tried a few tutorials but they're always talking about "elem._yscale".. However it's no longer supported by AS5.
I have created a 3D product view page with a scrub bar that spins the object via 32 images taken of the object all the way around.
I would now like to add a zoom and pan function of some kind as well. Anyone have any suggestions or FLA files with this sort of thing? The 3D spin images are inside a movieclip, so I basically need a "+" and "-" button to scale the images up, and then be able to drag the movieclip around the stage too.
This is a test I'm doing, where I have movieclips inside my movieclip holder that scale up as I hover over and scale down when I'm no longer hovering. Here is the code for that:
I have x amount of MCs arranged vertically with the distance between each being the same. When I roll over any of them the X & Y scale increases for that particular MC with a tween and on roll out they decrease to the MC's original size. Here comes the sticky bit...how can I maintain the distance between each when the scale of an individual MC is increased/decreased? I have attached a basic swf to show you what I mean. (Only the middle MC is active).
I'm looking for a solution to scale (gradually scaling) the movieclip on mouseover and return to previous state on mouseout. Any movieclip prototypes available for that
I have a movie clip which I want to scale up on a key press and then when the key press is not pressed I want it to scale back down. simple right? but I cant do it? Once I have that sorted out I would like to take it one stage further by making this work: If a key is pressed and let go the movie clip scale up and then finishes. if the key is pressed and held then the movie clip scales up slowly but once the key is released the clip reverse back to frame one. The file can be found here : [URL]
If I wanted to get the global position of a movieclip inside another movieclip I just have to use localToGlobal. Is there anything similar I can use for _xscale and _yscale?If I have a movieclip which is scaled inside another movieclip which is scaled, how can I tell what the combination of those scales effectively become?
I am using the folowing as on a movie clip to scale it: [AS]onClipEvent(load){ targe_width = _width; targe_height = _height; }onClipEvent(enterFrame){ _width = _width += (targe_width - _width)/3.6 _height = _height += (targe_height - _height)/3.6 }[/AS]
This as works fine but I have 30 clips that I want to apply it too. How can I turn this into a function i.e [AS]function scale(targe_width, targe_height); [/AS] So on each clip I can invoke the function by calling something like [AS] scale(50, 50); [/AS]
I have a movie clip object with a width of 306 and height of 194. I need to change the dimensions of the movie clip and still have the x and y scale set at 100. Currently when I change the movie clip width to 352.8, the x scale increases to 115.3%. I have to have the scale reset to 100% after I've adjusted the movie clip's width. Is there a way to do this in CS3? (this is all in design mode, not run time). Do I need to delete the movie clip and recreate it?
In flash if I change scale of parent movieclip, scale of all child inside the parent was changed too. Now I look for the best way to fix child scale while parent scale is changing. I mean the way with minimum listener and cpu usage. In my project I have a map (as parent) and many icons on map (as childs). map has zoom in and zoom out button and pan while dragging.
I have a movieclip (tester) that I am locating on the stage via the following code: ActionScript Code: setStage(); var stageListener:Object = new Object(); Stage.addListener(stageListener); stageListener.onResize = function() { setStage(); }; [Code] .....
What I want to have happen is have it start in the defined location but when you drag the browser window open the "tester" movieclip scales up in size but stays centered on those cooridinates - basically as the window gets bigger I want it to stay in the same place but get bigger and be able to control ( by percentage) how big the movie clip grows as the window opens.
I'm trying to create this drag and drop sequence where the "temperature_small" movie clip is dragged and dropped onto a spot on the stage. I've got the drag and drop part of the ActionScript ready, but the trouble comes when I want to re-size the movieclip to make it smaller, I keep getting the error code:
[URL]while in "portfolio" section, if you resize, the content go to the left.I know WHY it does it : while in a MC, an external movieclip lose his stagesize to compress into the movieclip, if resize, it use the size of ALL the content in the SWF to resize. the external fla stage is 1600 x 680, but the content goes out of the stage to the right to make an 1760 x 680 size.to make it LOAD at the right place and right size, i've got a layer with a MC (externalStageSize) in the external SWF that is the size of the Stage, while on frame 1, only this MC(externalStageSize) is active, so when loaded, the _level0 flash can position and scale the external SWF.
BUT, while active content is on, any live resize does not go well..I tried to "connect" the scaling with (externalStageSize) BUT once loaded the size does not change.I wanted to use the math : "new width" = ("allcontent".width / externalStageSize._width)/Stage.width but _level0.ContentMC.externalStageSize._width return the value it have in the flash... like, even if rescale, it will say "1600" is there a way to counter this ? before you ask : AS3 was out of the question because the person who will maintain the site is not that advanced.
some script used when resize : ContenuMC : the movieclip in witch external swf is loaded
Code: function setContent() { // content dimensions ContenuMC._width = Stage.width;