ActionScript 2.0 :: Resize Item As It Goes Backward In Carouse?
Mar 18, 2010
So my issue is that I want my images to get smaller as they go to the back, and unlike the carousel in the tutorial, I don't want them to go up on the Y axis I'd like them to stay level horizontally but get smaller as they recede. The code in the tutorial I'm using only goes over how to do this by adjusting radiusY.
var numOfItems:Number = 4;
var radiusX:Number = 250;
var radiusY:Number = 5;
how to resize an item (a vector square or such) on drag? In other words, I want to click a side and drag that side having it resize. Sort of like WACK [URL]
This is en examle of what i want to make in a.s.: I have mc on stage, it has 20 frames, in frame 1 there is circle in left corner of stage, in 20th frame circle is on the opposite side of frame and there is motion tween between them. There is stop() script in the first and last frame. Now if i put on mc
on(rollOver){ gotoAndPlay(2); }
it works ok but on rollOut mc rapidly jumps to frame 1, is it possible to make it play backward on rollOut and stop at frame 1.
I recently created a slide show that works fine on my desktop, works great from the test server when viewed through the flash produced HTML but once the swf is uploaded via a content management system we have problems. Further investigation showed that the CMS is set up for a few versions back so I saved backward which dropped my actionScript back to 1.0 and 2.0. I totally re-wrote the actions script and again, everything works great on my box but the same issues are showing up. Is versioning backward in this manner the problem.
I beleive there's an Action Script or possibly an attached Javascript (maybe) that would allow an FLV video to 1st stream forward and then play backwards and repeat this proccess over and over to simulate an endless trend. The perfect example can be simply viewed here url...Their video is a short 13 sec clip of the pup licking the screen, but they managed to reverse it when it reaches the end.
I am trying to create a small movie. Now I want to create an effect that once the mouse is in the right half of the movie - then movie should play forward. When the cursor moves to the left half of the movie then movie should play backwards. I have tried following some examples from online but I am kinda lost
This is what I have done so far:
- Create the animation named it "mc" of type Movie Clip - Put it in the "main scene" - The (first) keyframe at "main scene" has action "stop();" - <<now i am lost >>
Note: Eventually the right and left part of the movie will link to different webpage.
I usually use the following code to play a MC forward and backward using two different button clicks:
ActionScript Code: var rewindMe:Boolean=false; vid_mc.addEventListener(Event.ENTER_FRAME, everyFrame);
[code]....
The problem I'm running into is that, this time, the movieclip has an embedded FLV inside of it. When I click the backward_btn, it is slow - really slow. Is there any other way to look at this?
I have an animation of a rotating 3d object, and I'm playing it backward and forward through simple nextFrame() and prevFrame() actions inside an onEnterFrame event.Everything seems to work, the only technical problem is that if I go backward, the animation is not as smooth as if I went forward. I understand that a prevFrame action is 'less natural' than a nextFrame.. but does anyone know how I could fix it?
I've been creating a site using as3 in flash CS4, however my client has a large customer base that inludes people in large companies that dont have the latest flash drivers installed on their computers and dont have the admistrative privalidges to update the drivers themselves. After testing with a select few customers my client has foud that 50% of their clients are not able to view the site prototype. I have therefore attempted to publish the site setting the Flash player to 9 rather than 10, however when I test the site all the animated elements are frozen! If anyone has an idea how to resolve these issues I'm all ears
Anyone have any clue how to make a Flash movie like this one? [URL] I could script a back button to go to a previous frame but how do I get that smooth looping effect?
How I create a backward event, this event will have the following tasks:
1. When I 'over' (place my pointer) to the button, a light is appearing, and it's moving from left to right.
2. But when I move my pointer away from the button (the pointer is not on the button), the light is moving backward (from the last position it reached in first task).
What I want to do is, when I select an item in the datagrid, the selected item of the dropdown should be the correct one (the one which has the field idCompSuperioara equal to the third element in the selected datagrid row).
I'm creating a mobile app in which I need to show a calendar with months at the top. The months are part of a component that extends from SkinnableDataContainer (and has some custom scrolling/behaviour - which is why I did'nt use a spark list). I need the months to be shown as a 'trapezium' shaped tab and so I'm using a png image as a mask in the item renderer for the component.
When the mask is not applied, it all works well - the months render, the list/data container selection works when I click on a month and so on.When the mask is applied, it renders well, scrolling and everything else seems to work well - but when I click on a month, nothing happens visually. And from the trace statements in my code, it appears list item selection is not changing. Looks like mouse clicks are not working.
Code:
public class TopCalendarMonthRenderer extends LabelItemRenderer { [Embed(source="/assets/trapezium_alpha.png")] private static var TrapeziumMask:Class; private static var trapeziumMaskInstance:BitmapAsset;
I am in search of finding a way to display shopping cart items in a flash 8 datagrid in the order it was chosen by the user & also to ability to delete an item if the user choses. Currently I have the items displaying however they are displaying in a position as it is stored and called in the array. [code]
I posted a discussion earlier on a video stream not playing past a certain time. I ran FLVCheck on the video and it came back saying there is a backward timestamp in the video. I recompressed it from the uncompressed video (AVI) and I got the same error again in the exact same place.
The error has to be in the uncompressed file, but I don't know how to fix it. Recompressing obviously doesn't help. Anyone know how to fix a 'Backward timestamp'?
So I made a slideshow swf in AS3 only to later find out it needs to be compatible with Flash 8...and in my estimation AS3 cannot publish back to a Flash 8 swf without it being AS2...is there anyway I can do this without rewriting the code? I'm fairly new to AS, starting with 3 - so I really don't have any AS2 knowledge.
how to make my "animation" (more of an interactive slideshow) skip forwards and backwards by two frames rather than one.
Each frame's action starts with stop(); and I know how you can implement the Action script to register keystrokes, the problem is I can't get how to jump by 2 rather than 1 frame at a time.
It would be preferable not to have to use gotoAndStop(#); on every 2nd frame as I have over 350+ frames.
well what i am trying to do is move between 2 text boxes through a motion tween. but thats not going to work because you can't tween backwards. so what would be the best thing to do?
this has probably been posted before but i have no idea where it is. i tried the sliding menu tute but that didn't work.
well what i am trying to do is move between 2 text boxes through a motion tween. but thats not going to work because you can't tween backwards. so what would be the best thing to do?
this has probably been posted before but i have no idea where it is. i tried the sliding menu tute but that didn't work.
I have made a drop down menu with 7 items but as the invisible bottun around each item interferes with the item besid it, when i try to roll the mouse from one item to another, the invisible bottum dont work and the dropdown remains open.
I have used states in my application.The thing is I have made the first item in my list to be selected. so I gave like this,
if(itemIndex == 0) this.currentState="selected";
this works fine.The problem is when other item is selected the first item does not change its state,it remains in the selected state until its clicked.My code looks like this,
I want to be able to select an item from my list component and fire a function directly related to selecting that item. list is called "tidlist" function is "selecttid(n)" the "n" needs to be replaced with the index number... so if run my swf and the list component displays my items... when i select one (the third one for example)... i want to fire "selectTid(3)".... cant seem to grasp.