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:


Flex :: Scaling An Image In A Scroller Resizes The Scroller When Relative Dimension Are Set To The Scroller?

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

Actionscript 2.0 :: How To Create An Auto-scroller

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

ActionScript 2.0 :: Create A Scroller With Reflection?

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

ActionScript 2.0 :: CSS - How To Create Text Scroller

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

IDE :: Create A Scroller From These 300 Or So 250x150jpg Files?

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

Flex :: 4 - Create A Skin For The Component Scroller

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

Actionscript 2.0 :: Create Dynamic Scroller For Xml Images?

May 13, 2009

How to create a dynamic horizontal scroller for xml driven images.

View 2 Replies

ActionScript 2.0 :: Create Dynamic Image Scroller?

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

ActionScript 2.0 :: Create A Fullscreen Horizontal Scroller?

Jan 15, 2008

how i can create a fullscreen horizontal scroller - [URL]

View 2 Replies

ActionScript 3.0 :: Create A Scroller For A Gallery Of Xml Photo Thumbnails?

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

ActionScript 3.0 :: Create A Side Scroller Platform Game?

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

ActionScript 2.0 :: Create Auto-scroller To Reuse It Without Changing Different Values Each Time?

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

ActionScript 2.0 :: Vertical Sliding Scroller Based On A Tutorial For A Horizontal Slide Scroller

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

ActionScript 2.0 :: Menu Text Above Scroller It Controls The Scroller?

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

ActionScript 2.0 :: Convert Vertical Scroller To Horizontal Scroller?

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

ActionScript 2.0 :: Change Vertical Scroller To Horizontal Scroller?

Jan 10, 2011

change vertical scroller to horizontal scroller?

View 2 Replies

ActionScript 2.0 :: Vertical Scroller To Horizontal Scroller?

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

ActionScript 3.0 :: Scroller That ACTUALLY Replaces Browser Scroller?

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

ActionScript 3.0 :: Create An Image Scroller That Just Scrolls Images From Point A To Point B On Load Horizontally In An Infinite Loop?

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

ActionScript 2.0 :: Build A Vertical Slide Scroller Based On A Tutorial For A Horizontal Slide Scroller?

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

AS3 :: Make A Scroller With Inertia?

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

Professional :: Increasing Gap In Scroller?

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

Flex :: Add A Scroller To A Menu ?

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

Actionscript 2.0 :: Scroller() Method In The Mp3?

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

ActionScript 2.0 :: Dragging Scroller Bar Up And Down Accordingly

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

ActionScript 2.0 :: Move The Swf In The Scroller

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

ActionScript 2.0 :: Scroller, Xml, Duplicatemovie?

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

ActionScript 2.0 :: Infinate Xml Scroller?

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

ActionScript 2.0 :: Scroller With Loading?

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







Copyrights 2005-15 www.BigResource.com, All rights reserved