ActionScript 3.0 :: Create A Top-down Scroller?
Feb 2, 2009
I'm working on a small project and I'd like the player to be able to explore areas outside of just the 800x600 window, AKA scrolling is necessary.
I'm not working in the Flash IDE, I'm just writing actionscript in FlashDevelop.
Anyway, I'm trying to think of a clean way to scroll the map and all associated objects when the player gets near the edge of the screen.
Here's how my app is currently set up:
I've got my Main object, which is the parent app.
Under that, I have a 'DudeHandler' object, which will contain all the players. At the moment it just contains the player, and another test guy in order to see the effects of scrolling.
Then I have the 'Soldier' object, which is an individual player.
In a perfect world, when the player got near the edge of the screen, I'd just move the DudeHandler object, but I guess my main problem is trying to find out the actual screen coordinates of the player, since the x and y vars point to the position relative within the Dudehandler object, if that makes any sense.
View 0 Replies
Similar Posts:
Mar 9, 2010
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].....
View 2 Replies
Oct 4, 2009
I'm trying to create an auto-scroller that will move images horizontally back and forth across a Fullscreen Flash page. I am basing it off Lee's autoscroller video that he has posted here, but trying to adapt it to full screen. I have it scrolling correctly, but I'm having problems setting the parameters for when the end of the images hit the edge of the screen. Something is wrong with my math. I have attached a small .zip file, with everything in it.
View 1 Replies
Dec 27, 2006
i'm trying to create a "reflection" to scrolling text.i'm using a nice little scroller code that works very well on it's own. i thought just duplicating the movie clip and mirroring it would do the trick, but instead only the "reflection" bit is moving up and down, the rest of the items stay put.
i thought it might be a matter of changing instance names, but then the "reflection" is the same object, just mirrored vertically, so i'm not sure how one should go about doing this...i'm attaching both the FLA and SWF files...
View 3 Replies
Mar 21, 2008
I am having the worst time creating a text scroller with CSS. I just wanted a simple text scroller for my site for the news. I noticed that when I use the Font FFF Harmony it does not show up in MAC only on PC.
View 1 Replies
Nov 21, 2009
I have managed to create a mysql database of pictures for our website. Now can get data from the site as text and put into flash.create a scroller from these 300 or so 250x150jpg files and make them appear as though they come from our logo.
View 2 Replies
Jan 7, 2011
I'm trying to skin the Scroller in my application so that it looks like the example mentioned in [URL] This example was done in Flex 3 and images are set in CSS. I tried to create a skin for the component Scroller and saw that it uses VScrollBar and HScrollBar. I tried to put skins for these components. VScrollBar uses separate skins for the track, thumb, decrement/increment buttons. I tried to make some changes in the skin, but they were not reflected at all in the application. I just want to create a customized scroll bar in Flex 4 with custom thumbs.
View 2 Replies
May 13, 2009
How to create a dynamic horizontal scroller for xml driven images.
View 2 Replies
Jul 7, 2004
I've been trying to create an XML based portfolio site, where images are loaded dynamically so the client can update it. I've managed this part ok, however, I want the images to be in a scroll panel so that as the client adds more and more images you can scroll through them.
View 1 Replies
Jan 15, 2008
how i can create a fullscreen horizontal scroller - [URL]
View 2 Replies
Nov 19, 2010
Kind of like this but instead of scrolling to mouse move, the user would have to click the arrows. And it would be vertical instead of horizontal: [URL]
View 1 Replies
May 24, 2008
I've been searching online now to find a tutorial on how to create a game like thisI don't have a lot of experience with action script I've only used flash for animations. I found 1 tutorial that was useful but it only gave code and text with out a .fla or images. If you could tell me what I need to do to accomplish this and where to put code ect
View 13 Replies
Feb 19, 2005
I created a auto scroller which works fine but I would like to change it so that I can reuse it without changing different values each time.The movie consist of a scrollmc and a maskmc (just a rectangle)
[Code]...
View 7 Replies
Feb 21, 2004
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 Replies
Jul 29, 2005
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 Replies
Aug 17, 2007
have 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]....
View 4 Replies
Jan 10, 2011
change vertical scroller to horizontal scroller?
View 2 Replies
Oct 24, 2009
I 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]....
View 0 Replies
Jul 23, 2009
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 Replies
Mar 28, 2011
Hi I am trying to create an image scroller that just scrolls images from point a to point b on load horizontally in an infinite loop. I just used a code snippet to move it horizontally but don't how to get it to stop and at point b and loop again from a.
ActionScript Code:
game1.addEventListener(Event.ENTER_FRAME, fl_AnimateHorizontally_3);
function fl_AnimateHorizontally_3(event:Event)
{
game1.x += 20;
}
View 0 Replies
Feb 21, 2004
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 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].....
View 3 Replies
Apr 26, 2010
I've been trying to make a scroller, but the movieclip IS the scroller (if that makes sense?)So I have a movieclip that's, say, 1920 wide, and the stage just resizes to the browser, and when you drag the movieclip it scrolls. I have this semi-working but it's quite buggy on resize, and i also want inertia on the movieclip when it moves.
View 9 Replies
Aug 10, 2010
I'm editing a scoller and have removed a photo from it however as the scroller scrolls a gap slowly appears where the original photo was. I can't seem to stop this happening?
View 1 Replies
Feb 2, 2011
In flex 4 I'm using a PopUpButton with a Menu populated with records from the database.For one of our clients, the data provider of the Menu has more than 50 elements.When they click on the Menu it expands beyond the height of the screen without showing a scroller or responding to the mouse-wheel.So in effect there is no way to access the lower items on the menu.So I need to somehow restrict the height of the menu and add a scroller.The rowCount and maxHeight commands are having no effect.
var companyContextMenu:Menu=new Menu();
companyContextMenu.maxHeight=400;
companyContextMenu.rowCount=20;
View 1 Replies
Feb 20, 2009
Wondering if anyone knows how to tweak the scroller() method in the mp3 tutorial to work more like a news ticker in that the artist and track continuously move from right to left and repeat itself (like the Zune radio on myspace) instead of moving back and forth
[Code]....
View 3 Replies
Dec 2, 2002
I'm messing around with a text box scroller. I want to be able to click on the scroller bar and drag it up and down accordingly.
Here is the code I am using:
on (press) {
startDrag ("_root.scroller", false, 578, 35, 578, 163);
} on (release) {
stopDrag ();
}
View 5 Replies
Jun 12, 2006
I have a swf size : 1280 X 960. which has some kind of animation.. meaning some kind of block diagram animation that shows the flow.. for example a watercycle or a route map. But ... when I change the settings of the system .. to 800 X 600 then the scroll bars appear. Is there a way to ... move the swf in the scroller using some script or so? coz... all the animations have been made in the size for 1280 X 960 and cant be redone... and these cannot be scaled also (thats the requirement)
View 1 Replies
Sep 6, 2006
I'd like to have a scrollbar which scrolls movieclips that are created depending on whether there is the information available in an xml file.The image attached shows how the layout should be and the xml will be something like this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<myentry>[code]...
The kind of thing I want to create can be seen here... http:[url]...Click on 'engaging customers' and then you'll see a box to the right.I want to create something like that, but loading in the text from xml.
The scrollbar found here is good but I can't see how to implement the whole adding movieclips dynamically and then resizing the scrollbar etc.. http:[url]...Does this all include: loading in the xml, finding the node, creating a new movieclip, adding the xml information, resizing the scrollbar and then checking to see if there are anymore xml nodes?
View 1 Replies
Sep 18, 2006
Im using this as my base for what I want to make:I've stripped out everything but the scrolling thumbnails at the bottom. Is there a way to: 1. Make the scrolling infinate?. Have two buttons that changes the direction of the scrolling. One that when its clicked makes the menu scroll from left to right and the other button to make it scroll right to left.
View 1 Replies
Oct 14, 2006
[URL]By clicking a button its slide to the picture and then loads the info and by clicking a other button it takes away the info first and then slide to the picture.
View 1 Replies