ActionScript 2.0 :: How Fast A Scroller Is Being Moved
Oct 26, 2005I am looking for a way to check how fast a mc beeing moved (press and drag). Maybe a number of pixel per sec or something.
View 1 RepliesI am looking for a way to check how fast a mc beeing moved (press and drag). Maybe a number of pixel per sec or something.
View 1 RepliesI am moving a mc that loads xml data into a scroller. The scripting that loads it is looking for it in _root, and I am getting:
Target not found: Target="_root.btn_projectsundefined" Base="_level0"
Target not found: Target="undefined" Base="_level0"
I would like to position relatively a scroller in my application like below.When I scale the image, I resize the scroller...
<s:Scroller width="50%" height="50%" >
<s:Group>
<mx:Image
[code].....
I am trying to build a vertical slide scroller based on a tutorial for a horizontal slide scroller and am having difficulties undertanding what values I need to change in the code for the slider mc in order to make it work. The horizontal slider is quite smart [code]
View 3 RepliesProblem is that my rewind and fast forward buttons do not work properly in the sense that they start to mess up when you fast forward or rewind past the current scene. It seems to just skip through the whole movie and totally mess up the animation.the code for the controls is on a single layer and reads as the following:
stop();
play_btn.onRelease = function (){
play();
[code].....
my problem is that if you go over the menu text above my scroller it controls the scroller. I wan this areas movement to have no effect on the scroller below. is there a way to script my scroller to set it to this?
View 1 Replieshave a cool vertical scroller that I did try to convert to horizontal, but I could not make it work.
//code by Billy T
//set a variable
targY=0;
//set the x position of the dragger
dragger._x = 370;
[code]....
change vertical scroller to horizontal scroller?
View 2 RepliesI would like to use it as a horizontal scroller for an image gallery. Just to clarify a horizontal dragger and a horizontal stage motion for image viewing.
fscommand("allowscale", "false");
bar.useHandCursor = dragger.useHandCursor=false;
space = 20;
[code]....
I can find tons of articles/tutorials on custom scrollers but none of them actually replace the browser scroller. If the browser is made smaller the custom scroller and the browser scroller are there. [URL]...
View 1 RepliesI am trying to build a vertical slide scroller based on a tutorial for a horizontal slide scroller and am having difficulties undertanding what values I need to change in the code for the slider mc in order to make it work. The horizontal slider is quite smart and there is additonal functionality attached to it to affect it's movement which I'm not too worried about although it would be nice)
Code:
// set up content_mc info
contentRight = _root.content_mc._x;
[code].....
We have an asp.net website that uses a flash movie to do HTTP file uploads, it works seamlessly on IE. When using firefox, it fails to upload .. HTTP debugging revealed that the page we are posting to returns the following:
HTTP
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a
[code]....
I have a small SWF that works if I run it in FlashDevelop or when I run it (by double clicking) it from the bin folder. Now, if I move the bin folder anywhere else, and then double click on the SWF, it runs, but is missing the .pngs. The folder structure is: bin contains .swf bin/assets/imges contains .pngs I copied the whole project folder to another place, but still, the same problem occurred. What do you think might be the problem?
View 3 RepliesI am having a nightmare getting text to display as the font and size I select?I select text tool, I click on MC and start typing, it displays correcly in edit mode.I change the size of the text box (not via transform) and move the text box to where I want the text to display.However, when the application is published the font is showing as though it has been bolded or made a different size.It is not the font size and format I created it in.I have ensured I have no "anti-alias Bitmap" selected, but it's behaving as though it has "animation anti-alias" applied?
View 6 Replieson previous host, .swf played in Flash Player. I moved the site to GoDaddy & found the movie would not play. I learned about .htaccess & put this file in the site folder:now the page prompted me to download shockwave player. Instead of playing the .swf, the Shockwave logo shows. I would rather the movie play in Flash player.
View 6 RepliesI have a text and voice in seperate. When ever the voice is moving, I want the text to be moved along with the voice?
View 6 RepliesI publish test.swf and test.html to mydoc folder on my local computer. Mydoc folder also contains the test.flv that was imported to the flash to create the swf and html. Open any of them in the mydoc folder and they work fine, move the swf or html files to another folder and they work.Move the flv file,even keeping it with the other files, and they don't work.The main problem is that the swf will not work after uploading all to the same folder on the web server.
View 2 RepliesI think only just started popping up with CS4. Basically sometimes I'll have a menu or something with different states on different keyframes. There is a series of icons (sprites) on there and they get moved around on the different keyframes. Now sometimes when I do this and I go to the next keyframe using actionscript, the MCs stay in the same position they were in the first keyframe no matter how I position them in the actual IDE.I've noticed that if I give each icon a different instance name on every keyframe this goes away, but it is really annoying because I'd like to use the same handler function across all the keyframes.
View 1 Repliesiv made a game. and i want to add in an introduction. so i made one. and now when i try to transfer the game frames over. it messes up and takes out my background to the game. iv checked the movie clips and changed the names. and stuff. but it still does it. any suggestions? (this is due 2rrow)
View 1 Repliestarting a script to make my object move to the coordinates of where i click on my mouseand if possible i would like to make it animate to each coordinate like its moving there not all of sudden jumps there when you click somewhere.
View 2 RepliesI want to dynamically create and put some Image (mx.controls.Image) objects on a Canvas and I want them then to be able to be repositioned by the user via the mouse. Can this be done? Note, I am not looking for drag and drop. I just want to change the X and Y coordinates of Images with the mouse.
View 3 RepliesIs there any way to detect when the mouse has moved upwards or downwards?
I currently have a mouse listener with an onMouseMove function that uses the _ymouse to detect any movement within a restricted distance.
But I want the mouse to detect up and down movements in any distance.
i am trying to make a system that randomly chooses an element movieclip out of 7 types of elements, and then creates that element on the screen. Right after i create the 25 random elements, i attempt to set their location, but they wont budge, my patients are wearing thin with this.Here is my short snippet where it all happens.
ActionScript Code:
for (var j=0; j<25; j++)
{
[code].....
Looking for some code to make magnifying glass over 1 image (can not be 2 images one, small one large) that can be moved to specific locations off of an event like clip load, or clip end.I can find this online for as3 but not as2.so for example...when image is displayed it should load magnifying glass in certain area, then as new clip starts or some type of event happens (not a click event) it should be able to move the glass to new coordinates.we are placing this in a system that CAN NOT use as3. must be as2.
View 0 RepliesOk i have a movieclip in the mainframe that on a button release gets moved to the center of the screen with some set_property stuff and then i want the clip to play. So i added a tell_target on release, the target is /movieclipname and i then Go_To_and_Play the first frame.
I have a stop action as the first frame of the movieclip as to keep it from runing when i dont want it. i want that tell_target to make the movieclip play but sofar no luck.
Am just a begineer with Actionscript but am picking up quite quickly. I been racking my brains and can't seem to find a solution. Basiaclly I've got 5 movieclips on the stage which are draggable. How can i get a message to appear in a text box if the first movieclip is moved higher than the second movie clip?
View 4 Replieshow to do so by clicking on the button movieclip moved to x = 100; and when pressed repeatedly to x =- 150
event onRelease - not work:
Code:
yyy.onRelease = function ()
{
test._x = 100;[code]......
I saw this question a few times here and there but it never had a satisfying answer... It may be that there really is no elegant way to solve this (Polling for change in ENTER_FRAME is really bad!) but I've got to ask one last time.
I'm a Flex developer but it doesn't really matter in this case.
I would like to know when an object's global x/y was modified (or its transform's concatenated matrix's tx/ty, same thing), maybe because an indirect parent somewhere moved, etc.In particular, I have the object's gran gran gran parent which gets its scrollrect changed.
I have two flash ads that need to look as though they are interacting. is there a way to make sure they load at the same time so they can sync every time? they do not need to communicate with each other just load simultaneously so the animation lines up. can local connection object work for this?I suppose I could stager load em and plan the animation accordingly if simultaneous load gives issues. is there a proper way to load one ad and then the second say 10 frames in, ya know?
View 1 RepliesI have a FLVPlayback component with an FLV. I have it setup so that when the FLV reaches a cuepoint at the end, a button appears to rewind and play the video, and remove the button. This all works fine. My question is if there is a way to remove the button (removeChild) if the user goes back in the video using the seekbar in the FLVPlayback component?
View 2 Replies