Map Slider To Move Horizontally..thats All.
I 'm working on an interactive map ...the slider for Zoom has this code on it.All i need to do is change the direction of the silder..its slides vertically ...& i need it to slide horizontal ..thats it. I changed the Y's to x VALUES..but that just distorts the map.. help Kirupians! thank you oh sooo much! Code: onClipEvent(load){ scrollMin = _root.range._y-_root.range._height // minimum _y value possiible for scrollbar scrollMax = _root.range._y // maximum _y value possiible for scrollbar lowestScale = 75 // lowest desired scale of map in % highestScale = 150 // highest desired scale of map in % _y = scrollMin + (scrollMax - scrollMin)/2 // sets starting position of scrollbar (currently half-way) scaleFactor = Math.pow(highestScale/lowestScale,1/(scrollMax-scrollMin)) // variable for SetScale function SetScale(){ // calculates scale and sets it _root.scale = _root.map._xscale = _root.map._yscale = lowestScale * Math.pow(scaleFactor,(scrollMax-_y)) } SetScale()}onClipEvent(mouseMove){ if (dragging){ _y = Math.min(Math.max(_parent._ymouse,scrollMin),scrollMax) SetScale() updateAfterEvent(); }}
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 07-20-2006, 04:41 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Simple Slider To Move Masked Image Horizontally?
I would like to have an image that is wider than the viewing area be viewed by dragging a slider left or right, it's basically just a custom scrollbar. My first inclination is to make a mask and put the image behind it, and then I assume I would have to connect the slider to the image somehow so when user clicks and drags slider left or right, the image slides with it to show the part so it that are obscured. Any suggestions or links to tutorials? I've searched Flash kit and done numerous other Google search results without any luck.
Slider In Reverse - Typed Text Makes Slider Move...help?
http://www.kirupa.com/developer/mx/slider.htm
Great tutorial...thanks by the way
But I was just wondering if anyone knew how you would go about doing this kinda in reverse? In that you type the percentage number in the text box and the slider moves up to that number?
Thanks in advance for your help
Slider Move Mc....
been a while since i posted at this site...
I was wondering if anyone has used a slider bar to move a movie clip.
i.e. i have a 3D object that i have rendered in 3d studio max and made it turn 360 degrees; i want to be able to spin the object using a slider bar.
(the center of the bar would be you facing the object directly, and if you move it right, it turns right and vice versa.)
Any help would be more than appriciated.
Thank you very much...
-ryan
Slider Move Mc....
been a while since i posted at this site...
I was wondering if anyone has used a slider bar to move a movie clip.
i.e. i have a 3D object that i have rendered in 3d studio max and made it turn 360 degrees; i want to be able to spin the object using a slider bar.
(the center of the bar would be you facing the object directly, and if you move it right, it turns right and vice versa.)
Any help would be more than appriciated.
Thank you very much...
-ryan
Slider To Move Through Frames
Wanting to make a horizontal slider, which when you shift the handle to the right will move the playhead up 1 frame in the flash timeline. I tried a slider with rollover buttons underneath it, so when you move the slider to the right you also come across a button with an onrollOver gotoAndPlay script, but it doesn't work. Either I get the slider to work, but the buttons won't respond or the buttons respond and the slider doesn't. The width of the slider should correspond with a fixed number of frames, the statring point being frame 1, and the end (when the slider is all the way to the right) the max (last frame) of possible frames. Thanks
Using A Slider To Move Through Frames...
Hello everyone!
My name is Jon.
I'm currently working on a jukebox using FLASH MX. I'm aware of the new components in MX 2004, but I want to figure out how to be able to scan through an audio track contained within an swf file, to become more familiar with scripting.
The jukeboxes I used to create would use a base swf file to control which tracks play and then when I listener clicked on a button, the swf (audio track) would dynamically load each swf file into the base swf file.
So within each of those swf files containing the streaming audio, I would like to know where to begin with programming a scan bar so listeners could scan through the song but only as far as the song has loaded. I already have a load bar to show how much of the track has loaded. Now, I want to add a slider on top of the load bar so the listener can move through the track.
Any ideas?
Hope I explained this well enough. Thanx!
Pong Game - Move Slider
Hi
I'm adapting a pong flash game.
I'm having trouble moving a slider that controls the speed that the ball travels at - as soon as I move the slider (to the bottom
of the game rather than the current right hand position) - and update the startDrag coordinates - the computer's pong racket movement
becomes erratic.
You can see the demo game here: http://www.dirksmith.com/pong/pongTest.html
Grateful for any help.
.fla attached
Dirk
The scripts are:
slider actionscript on main timeline
onClipEvent (enterFrame) {
/:drag = Math.round(_root.diff._y - this._y)/ -10 ;
slider mc actionscript:
on (press) {
startDrag(_root.setter, false, 26, 65, 26, 140);
}
on (release) {
stopDrag();
Menu With Slider, Make It Move Up And Down?
I have done the "Menu with Slider" tutorial here at Kirupa.com. I made a navigation box, and the buttons are vertical, how can I make the slider move up and down?
Thanks,
David
Pong Game - Move Slider
Hi
I'm adapting a pong flash game.
I'm having trouble moving a slider that controls the speed that the ball travels at - as soon as I move the slider (to the bottom
of the game rather than the current right hand position) - and update the startDrag coordinates - the computer's pong racket movement
becomes erratic.
You can see the demo game here: http://www.dirksmith.com/pong/pongTest.html
Grateful for any help.
.fla attached
Dirk
The scripts are:
slider actionscript on main timeline
onClipEvent (enterFrame) {
/:drag = Math.round(_root.diff._y - this._y)/ -10 ;
slider mc actionscript:
on (press) {
startDrag(_root.setter, false, 26, 65, 26, 140);
}
on (release) {
stopDrag();
Menu With Slider, Make It Move Up And Down?
I have done the "Menu with Slider" tutorial here at Kirupa.com. I made a navigation box, and the buttons are vertical, how can I make the slider move up and down?
Thanks,
David
A Slider To Move Movie Along Timeline
Hi, I have imported a video sequence and it is running along the timeline. im lookin gto have a slider that the user can slide back and forth and will allow the user to either move forward to or back to a part in the video and when they release the slider, it automatically plays from that point.
It probably isnt very difficult, but im stuck for the right scripts. can anybody point me to a tutorial or have any script that they can send me so that I can get this working.
cheers
Slider To Scroll Thumbnail Mc W/ Buttons Inside...onRollover Text Moves With Slider
I'm using a slider to scroll a movieclip made up of thumbnail images that are buttons. When I put my mouse over each button, I want it the image to change from black and white to color, and for a text description to appear in one fixed location on the main stage. Right now the image change to color is working, and the text appears as well, BUT the text scrolls as well, since it's within the scrolling movieclip. I want the text to appear static at a fixed location of: x=-947 and y=65. HELP!!!
It should look similar to: http://www.ehdd.com
Here's my code:
for my movieclip:
onClipEvent (enterFrame) {
_root.scrollMC._x = -.295*(_root.slider.b);
}
for my slider (set to scroll along "path"):
on (press) {
startDrag(this, false, 4, 270, 802,270);
}
on (release, releaseOutside) {
stopDrag ();
}
onClipEvent (enterFrame) {
a = new Object();
a.y = this._y;
a.x = this._x;
_root.path.globalToLocal (a);
b = int(a.x*2);
}
Slider Menu - Resize Slider And Change Btn Color
Hi there,
I am using code from http://www.kirupa.com/developer/mx20...ith_slider.htm. and
I found how to make slider smaller or bigger in this forum but I don't know what wrong of my buttons. The width of the slider is not same as all buttons. It looks smaller and on the right more.
Actually, I would like to make the same slider menu at <A href="http://www.grouplotus.com/grp/">http://www.grouplotus.com/grp/. Their buttons can change color even mouse out. Could you or someone else can teach me how to do that?
my flash file
http://www.halfuncorner.com/flash/btn.swf
http://www.halfuncorner.com/flash/btn.fla
many thanks,
jo
Fade Slider Not Image Slider HELLLP
i am trying to bulind a slider to fade btween 3 image Image 1(Past0, Image 2 (Present), Imag2 3 (Futher)
info
Image 1 is Constant as it is the base layer
Image 2 is Variable inatly set at 100% Alpher (middle LAYER)
Image 3 is Variable inatly set at 0% Alpher (top LAYER)
i want the slider to star off in the middle posing an image 2 100% and image 3 is 0% and when the slider moves left Image 2 alper will go down revlling image 1, and when the slider moves right i want Image 2 to remain a 100% and image 3 to go from 0% to 100%
can any on help
thanks blue
Slider Wont Work For My Menu Slider
i tried following this tut on a menu slider http://www.kirupa.com/developer/mx20...th_slider2.htm, but I cant seem to get the slider to work, whenever I test the movie the slider just slides to the left corner and than doesnt move after that. anyone know what is going on or have any advice??
i posted my swf file to show you and then the fla file if anyone actually wants to see everything.
Im kinda new to flash so I obviously dont know what is wrong. Any help would be very appreciated.
Slider Menu - Resize Slider And Btn Color
Hi there,
I am using code from http://www.kirupa.com/developer/mx20...ith_slider.htm. and
I found how to make slider smaller or bigger in this forum but I don't know what wrong of my buttons. The width of the slider is not same as all buttons. It looks smaller and on the right more.
Actually, I would like to make the same slider menu at <A href="http://www.grouplotus.com/grp/">http://www.grouplotus.com/grp/. Their buttons can change color even mouse out. Could you or someone else can teach me how to do that?
my flash file
http://www.halfuncorner.com/flash/btn.swf
http://www.halfuncorner.com/flash/btn.fla
many thanks,
jo
Scrolling Horizontally
I have managed to program a MC which contain a skyline to move to the right if the cursor is on the far left, and to the left if the cursor is on the far right. The skyline is bigger than the stage, so this effect gives the illusion of movement. However the skyline I want the skyline to stop moving when its left edge reaches the left side of the stage, and again to stop moving when the right edge reaches the right side of the stage. I've tried some simple If formulas, utilising the _x command, but so far they have not worked.
Canm anybody help with a simple suggestion as to what I should do?
Thanks
Flipping Something Horizontally
I'm making a 2-D fighter game. I want the players to be able to switch sides of the screen during the game. (like if they jumped on to the right half, they'd face right, and vice cersa)
Drag An MC Horizontally (only)
Hi again!
I've got an MC, and I'd like to be able to drag it, ONLY horizontally. This is what I got, but it's not working 100%.
Code:
onClipEvent (load){
initx=_x;
maxx=100;
}
on (press){
startDrag(this, false, _y, initx-maxx, _y, initx);
}
on (release){
stopDrag();
}
Look what happens here:
http://atlemo.com/files/test.swf
It's the starting positions I think that are crap. I don't know my X & Y's.
Any tips?
Scrolling Horizontally A&F Example
Hi I saw this flash player on abercrombie and Fitch's site and wondered how they managed to create it, interested in learning this. Can anyone help me with this.
Heres the link
http://www.abercrombie.com/aftv/inde...005-MAIN-PHOTO
Thankx
[F8] Best Way To Scroll Horizontally
What is the best way to scroll horizontally?
I have tried several methods but all are slow.
I have tried vcam but that is also slow.
What is the best way that you guys recommend?
Scroll Mc Horizontally
all I want to do is have a right scroll button and a left scroll button that tell my mc called "bg_mc" to scroll in either direction. It is located on the main timeline along with the buttons, but contains buttons inside itself as well. and I want the scrolling to stop when it reaches the left and right edge of the movie.
I am having a meltdown.
please.
Scrolling Horizontally
Hi all,
I'm quite new to flash and actionscript and ran into a problem. I'm creating a flash movie with a horizontal scrolltext. However this text is variable in width. So i'm using textFormat to determine the width of my dynamic text box based on a certain font type. Then through a setInterval (set at 40) i decrease the number of pixels by 2.
Works perfectly, however when I go over some links on the website the setInterval causes the animation to get jerky. If I stop moving my mouse over some links then the animation is smooth again.
So basically my setInterval isn't working for this purpose since the animation gets jerky once I hover over (html/javascript) links.
Then I thought I might do the trick by creating a keyframe at runtime but then again I read somewhere you can't create those at runtime..
So does anyone know a solution for my problem?
Btw my animation runs in Flash 8.
Thanks for any help ....
Scrolling Horizontally
I just made a scroll area with buttons and draggable items. All the code is written for vertical scrolling, the content I need to be scrolled is going to be horizontal. how can I rewrite this code to be horizontal scrolling? it seems like the scroll button (the one you drag along) doesn't stay confined to its scroll line either.
scrolling = function () {
var scrollHeight:Number = scrollTrack._height;
var contentHeight:Number = contentMain._height;
var scrollFaceHeight:Number = scrollFace._height;
var maskHeight:Number = maskedView._height;
var initPosition:Number = scrollFace._y=scrollTrack._y;
var initContentPos:Number = contentMain._y;
var finalContentPos:Number = maskHeight-contentHeight+initContentPos;
var left:Number = scrollTrack._x;
var top:Number = scrollTrack._y;
var right:Number = scrollTrack._x;
var bottom:Number = scrollTrack._height-scrollFaceHeight+scrollTrack._y;
var dy:Number = 0;
var speed:Number = 10;
var moveVal:Number = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);
scrollFace.onPress = function() {
var currPos:Number = this._y;
startDrag(this, false, left, top, right, bottom);
this.onMouseMove = function() {
dy = Math.abs(initPosition-this._y);
contentMain._y = Math.round(dy*-1*moveVal+initContentPos);
};
};
scrollFace.onMouseUp = function() {
stopDrag();
delete this.onMouseMove;
};
btnUp.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._y+speed<maskedView._y) {
if (scrollFace._y<=top) {
scrollFace._y = top;
} else {
scrollFace._y -= speed/moveVal;
}
contentMain._y += speed;
} else {
scrollFace._y = top;
contentMain._y = maskedView._y;
delete this.onEnterFrame;
}
};
};
btnUp.onDragOut = function() {
delete this.onEnterFrame;
};
btnUp.onRollOut = function() {
delete this.onEnterFrame;
};
btnDown.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._y-speed>finalContentPos) {
if (scrollFace._y>=bottom) {
scrollFace._y = bottom;
} else {
scrollFace._y += speed/moveVal;
}
contentMain._y -= speed;
} else {
scrollFace._y = bottom;
contentMain._y = finalContentPos;
delete this.onEnterFrame;
}
};
};
btnDown.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onDragOut = function() {
delete this.onEnterFrame;
};
if (contentHeight<maskHeight) {
scrollFace._visible = false;
btnUp.enabled = false;
btnDown.enabled = false;
} else {
scrollFace._visible = true;
btnUp.enabled = true;
btnDown.enabled = true;
}
};
scrolling();
I did the tutorial found here.... http://www.kirupa.com/developer/flash8/scrollbar.htm
Scrolling MC Horizontally With Buttons
I'm trying to make a site for my company that has small pictures of our projects that can be scrolled across the screen horizontally. Instead of having a big scroll bar, I just wanted simple little buttons on one side with arrows pointing to either side. I also want to make the pictures buttons that can go to other scenes with the project descriptions.
I've got everything setup within a MC and I have a rectangular mask so the pictures show through, my only problem is the scrolling. I can find tutorials on how to scroll things vertically with a scroll bar, but what I want is to scroll horizontally with buttons. I don't yet know enough about actionscript to manipulate these to suite my needs. Can anyone help? Thanks so much!!
Fitting.... Horizontally - But Not Vertically
okay, I get the exactfitting stuff, but what if I wanted the Flash movie to fit the browser window's width.. but not height (leaving the excess swf outside the depth of the browser window) clicking on the thumbnails here will give you an idea of what I'm trying to dohttp://www.randpc.com/marketing/onClick/clicktest.htm
Follow Mouse Horizontally
Okay, I can't seem to get the actionscript to work the way I want it to. I've used this actionscript on my arrows that I want to follow my mouse.
onClipEvent (enterFrame) {
//The x position of the mouse
xTarget = _root._xmouse;
//This value will deterimine what fraction of the gap to
//cover every time the script is called
fraction = .1;
//these two lines determine the gap between the current
//location of drag and the target. fraction is then used
//to determine how much of the gap to cover.
_x += (xTarget-_x)*fraction;
}
The only problem with this script is it doesn't follow my mouse very closely. It's always lagging behind. I'm sure it's something simple to fix but I have no clue. Does anyone have any suggestions: confused:
*HELP* Making An OSX Bar Scroll Horizontally
Hi, I just threw together an OSX-like scroll bar using some open source fla's that I found on the internet (contact me if you want to know where from).
What I want to do is make the OSX-like bar have about 32 buttons (example only has 20). When you scroll over them the get bigger and fade off and you scroll over more. However, I want this action to be constricted to a semi-small area. Meaning: I want a small area showing only a few buttons at a time and as you go right or left with your mouse the buttons scroll in in a OSX-type fashion.
I've been having a very hard time getting the scrolling / looping of the movie to work out. I would really appriciate it if some of you could take a look at it an help me out.
The FLA can be found here: osx20
A gif of the basic idea of what I want the movie to do:basic idea
(there seems to be a problem with image linking, its at: http://earth.prohosting.com/pshifter/basic.gif if the ling doesnt work -- seems to work if you type it in manually, or something...)
Thanks a lot in advance to anyone who helps me out,
Phase00
Horizontally Scrolling Text?
Hey does anyone know how to make horizontally scrolling text...I know this link is javascript but this is what I want (made in flash)
http://www.appletcollection.com/ascroll.html
I would also like it to be able to have buttons inside of it like in the example above, but when you scroll your mouse over it I want it to stop...then if you don't click on anything and you scroll out it will continue scrolling. Then the whole thing will loop over and over.
Anything that you can help me with on this issue would be greatly appreciated.
Thanks
Jason
Flip An Object Horizontally
[Flash MX]
Is there a way to flip an object horizontally through action script? I would think it would be under the "properties" actions, but after looking through some of my books I can't find it anywhere...
Centre SWF Vertically And Horizontally
I know the answer to this must be so easy, but how in the world do you centre your swf file on an html page vertically and horizontally? Just smack in the middle, regardless of the user's screen resolution.
Scrolling Thumbnails Horizontally
I have been through a bunch of tutorials but I can't find one that works. On the main timeline I have button 'left' and button 'right' along with 'imagesMC'. When left or right is pressed I need it to scroll 'imagesMC' left/right. Can someone help? Thanks!
Scroll Horizontally More Than 2880
I have a set of images that total about 4000 pixels wide. I want to scroll them left and right with a mouseover like this:
http://www.cassbird.com/
I have downloaded the sample movie that has the mouseover scrollbar but I don't know how to get it wider than 2880 pixels. Do I load one movie after another? How do I do that?
Horizontally Scrolling Movieclips....
I am needing some help with horizontal movie clip movement. I have a flash file that works by itself. The movie clip moves across the screen to the correct spot when you hit the corresponding buttons. But when I try to recreate the action in another flash file, the buttons show, but no movie clip movement. For what ever reason the buttons can no longer talk to the movie clip to move it across the stage.
I have kept everything the same name, kept the actions in the same spot and everything, it just doesn't work.
Does anyone have any idea what could be causing this to happen? I will try and supply more details to anyone who wants to help me with this. It shouldn't be a hard thing to accomplish. If you know of any good tutorials on this I would greatly appreciate it.
Fill The Browser Horizontally
Hi All,
I have a flash website ive been working on. Its main design is a horizontal bar and i need it to fill the screen horizontally including that little bit of white space at the edges otherwise the design doesnt really work. Im having real trouble with it now. Can anyone offer me advice or a solution to my problem.
is it javascript i need or is it just the export settings?
the website can be seen at www.cgeyeltd.com/Website.html
thanks in advance
Rob
Horizontally Scrolling Site
I'm not sure if I can explain this too clearly, but I'm sure many of you will know what I mean. There is a type of flash site design that is quite popular, where all the pages of the site are in one long horizontal strip like so:
[ 1 ][ 2 ][ 3 ][ 4 ][ 5 ]
... and when you select a page from the navigation the site scrolls sideways and stops at the page you want. Do you know what I mean?
My questions are, is there a generic name for this layout/navigation, and does anyone know of a good tutorial that could talk me through it?
Thanks!
Constrain StartDrag Horizontally
So I have a Sprite and if using startDrag(), how do I constrain the movement to x-axis only? that is, move it horizontally?
The free x,y movement code sample is here, directly from Adobe's livedocs:
http://livedocs.adobe.com/flash/9.0/...xamplesSummary
Thx in advance.
[CS3] Horizontally Scrolling MC With Actionscript
First off there is an FLA attached to this for reference.
Here's the breakdown of my project:
I have a Master Movieclip - "blocks mc"
That movieclip contains two instances of a "blocks" movieclip
The "blocks" movieclip contains 4 buttons.
Inside of my main movieclip "blocks mc" there's a timeline where I'm scrolling instances of "blocks1" & "blocks2" from right to left. I made two instances of "blocks" so when the first one scrolls off screen, the second will fill in the area to the right and the scroll will be seamless.
I'm trying to attempt to set this up dynamically with actionscript, instead of doing it with motion tweening on the timeline - the main reason being, I'm going to add more buttons to "blocks mc" and I'd like to somehow make it so that my animation speed will stay the same - based off of the width of "blocks mc" - no matter how many more buttons I add to it.
Here's the catch though - each of the buttons inside of "blocks mc" will have an onRelease getURL command - and I also wanted to set it up so that when you rollover the buttons they stop the parent movieclip and then when you rolloff of the button, the parent movie clips starts back up.
What I'm not sure how to do is how do I get the buttons to work inside of "blocks mc" after I start setting up onEnterFrame commands for "blocks mc"?
If you take a look at and run the attached FLA file, you'll see how I have this setup so far - the animation is setup manually and I'd like to set it up with actionscript and keep my button onRelease, onRollOver & onRollOff functionality in tact.
Any help on this is highly appreciated.
Thanks!
FOO
[F8] Displaying Thumbnails Horizontally.How To?
Hi all,
I'm new to actionscript and so far i managed to display images as thumbnails using xml and flash. I created a movie clip on the stage with an instance name of holder_mc. I'm using this code to retrieve data from xml and display the thumbs:
Code:
var newsXML:XML = new XML();
newsXML.ignoreWhite = true;
var output:String = "";
newsXML.onLoad = function(success){
if(success){
var news:Array = newsXML.firstChild.childNodes;
var numOfItems = news.length;
for(i=0;i<numOfItems;i++){
var url:String = "images/" + news[i].childNodes[0].firstChild.nodeValue;
}
holder_mc.loadMovie(url);
}
else
{
trace("XML file did not load");
}
}
newsXML.load("gallery.xml");
It's showing the picture but all of them are on top of each other. I want to have each thumbnails to be side by side horizontally. What should I add to the code? Can someone show me the right way of doing it plz?
Thanks in advance
Horizontally Centering Problem
I can't get my "dock" to center horizontally when i publish the movie for full browser flash(100%/no scale). It works fine when you test the movie. I don't get it.
files are located here if you want to take a stab at it.
www.mww-media.com/Dock.zip
heres the code
Stage.scaleMode = 'noScale';
this.dockActions = function(label) {
switch(label) {
case 'oc':
trace
_root.gotoAndPlay("oc");
break;
case 'bond':
trace
_root.gotoAndPlay("bond");
break;
case 'marshall':
trace
_root.gotoAndPlay("marshall");
break;
case 'kitchen':
trace
_root.gotoAndPlay("kitchen");
break;
case 'impulse':
trace
_root.gotoAndPlay("impulse");
break;
case 'donovan':
trace
_root.gotoAndPlay("donovan");
break;
case 'svhf':
trace
_root.gotoAndPlay("svhf");
break;
case 'ghost':
trace
_root.gotoAndPlay("ghost");
break;
}
}
var dockTemplate = {
layout: 180, //ROTATION
icon_size: 100,//PIXELS, SAME SIZE AS ICON MAX
icon_min: 50,//INITIAL ICON SIZE
icon_max: 100,//<<<ICON ZOOM SIZE
icon_spacing: 2,
items: [
{ id: 'ghost', label: 'ghost'},
{ id: 'svhf', label: 'svhf' },
{ id: 'donovan',label: 'donovan' },
{ id: 'impulse', label: 'impulse' },
{ id: 'kitchen', label: 'kitchen' },
{ id: 'marshall', label: 'marshall' },
{ id: 'bond', label: 'bond' },
{ id: 'oc', label: 'oc' }
],
span: null,
amplitude: null,
callback: this.dockActions
}
this.attachMovie('Dock', 'menu_mc', 1, dockTemplate);
//HORIZONTAL POSITION
this.menu_mc._x = Stage.width/2;
//VERTICAL POSITION
this.menu_mc._y = 1;
Flip Picture Horizontally
I need to be able to flip a picture horizontally (so that it is facing in the opposite direction).
I'd appreciate any thoughts on how to do that...
TIA,
Carolyn
Constrain StartDrag Horizontally
So I have a Sprite and if using startDrag(), how do I constrain the movement to x-axis only? that is, move it horizontally?
The free x,y movement code sample is here, directly from Adobe's livedocs:
http://livedocs.adobe.com/flash/9.0/...xamplesSummary
Scrolling, And Stopping, Horizontally
I've a scroll bar, that controls an MC.
I'm looking for a little assistance with stopping a scrolling MC on either side, so it doesn't scroll right out of view.
The tutorials I've seen are fine, except...all of them are for vertical scrolling.
I'm sure its out there, I just don't have the actionscriping know-how to know the name or scripting for it. Any suggestions?
All I have as of now are my (masked) MC with instance name, and left and right buttons that control it.
Thanks for the help
Scrolling Logos Horizontally
I'm looking to find a tutorial and some information about setting up a small flash piece for a website that, when loaded, will be able to display x-number of logos that are slowly moving from top to bottom in a loop. When the cursor goes over that area it will either move up or down, depending on the location. And obviously, the logos can be clicked for entrance into a different page within the site. I'm a basic flash person (mainly XHTML/CSS developer) with limited scripting knowledge which is why (a) I came here and (b) already searched the web for similar tutorials, but am only finding "text scrolling" applications.
Please advise!
Scrolling An Image Horizontally
I have a JPG image that is 6851 x 632 px. I would like to scroll the image horizontally (I would like to see 1000 x 632 at a time). How can I create a horizontal scroll bar to scroll an image like that?
Any help will be greatly appreciated.
Thank you in advanced,
Flip Movieclip Horizontally
Hi. I'm trying to flip my movie clip horizontally so it will point in the opposite direction.
Any ideas?
Thank you.
Scrolling Images Horizontally
Hi,
I've got a script I'm writing which loads some images from xml, and then attempts to scroll them across the screen horizontally.
I've determined that the best way to do this for my purposes is to tween each image individually, rather than adding them to a sprite and scrolling the sprite (while it would be easier, it won't work in my case).
So, I have this bit of script that scrolls the images from their initial x position, and moves them to the left, off of the stage.
The problem is, of course, the images are all moving different distances, and thus, move at different rates of speed in the tween effect. I've attempted to solve this by proportionally equalizing the distance they need to travel and the speed at which each image travels. My code is below.
for(var i=0;i<images.length;i++) {
runningWidth = runningWidth+images.largeImage.width; // accumulated width of the images
newXlarge = -(runningWidth); // new x position for the image
scrollSpeed:Number = runningWidth/4; // speed of travel in frames
imageTween = new Tween(images.largeImage, "x", transitionType,
images.largeImage.x, newXlarge,scrollSpeed, false);
}
This doesn't work however. Images of the same size move at the same speed, but larger or smaller images move slightly faster or slower.
I know that this can be done... but... for whatever reason, the math here is escaping me.
Any help would be appreciated.
Thanks
Geoff B
|