ActionScript 3.0 :: Scrolling Through An Image Bigger Than The Screen?
Jan 5, 2012
Simple question, pretty new to action script and not too sure which would be the best way of implementing this, but how would you scroll through an image if it is bigger than the screen. What I am thinking right now is simply dragging and dropping the image but that doesn't seem like the best solution.
View 1 Replies
Similar Posts:
Jan 17, 2011
I currently have some code that displays an image in a pop up and just takes the width and height of the image. My problem is that some of the images are larger then my screen. How can I get the size of my screen and then readjust the width and height of the image based on that?
View 2 Replies
Sep 16, 2010
Is it possible to keep an image at a static location on the screen when the page is scrolled down?
For instance, if I have a .swf with properties of 1700 px height and I am displaying an image (jpg) in a loader whose y position is 40px from the top of the screen when viewed in a browser.
is it possible to "float" that image so that it stays 40px from the top of the browser window when the user scrolls down to see the rest of the page?
I'm trying to set up a gallery and have a grid of thumbs displayed, each of which open a full-sized copy of the image on the thumb.
The thumbnails go beyond the bottom of the screen and when I scroll down to see more thumbs, if a large image is displayed at the time, it scrolls off the top of the screen.
View 4 Replies
Mar 2, 2012
I have a Mac and a PC - I have apple specific stuff on the Mac, everything else on the PC. My Adobe software is all on the PC. I like using the PC - bigger screen than the Macbook. Problem is that Adobe is effectively forcing me to use the MacBook.
Now I can use Flash to build cross-platform stuff from my PC, but I have to create all the certificates and profiles on the PC. If I want to do IOS development on the Mac I have to generate new certificates and profiles.
So switching between using flash/Flash Builder on a PC and native development on a MAc means continually regenerating certificates. If I had a desktop and PC latop, I could install on both, but not a PC and a MacBook. I am totally fed up with Adobe for this stupidity. If anyone knows differrent about the need to regenerate everything according to platform,
View 7 Replies
Jan 27, 2012
I'm displaying a 720x1280 image in a 720x1280 SWF. My screen is 1366x768.The visualization is awful since my image is cut off (although internally the image's size is still 720x1280 when I do trace() ).Everything is suitably displayed on Firefox.
View 2 Replies
Mar 6, 2012
I'm making a side-scrolling game, with a (theoretically) infinite background. I have a block engine that places the blocks on the bitmap canvas. Now here's the catch. I'm using the bitmapData.scroll() function. Now unless I clear the screen each time the character moves, it's going to leave ghost images of the border of the screen, like this picture: zanzlanz. tumblr. com/post/18857712784 If I clear the screen each time, then it generates a lot of lag (because it has to repaint the objects again). I'm a bit lost on how I can scroll without leaving streaks of the side of the screen and without repainting the entire screen.
View 1 Replies
May 27, 2010
I am working on this image scroller, where thumbnails of images are displayed.[code]...
So is there anyway I could use any of the above code to load the big image associated with the small image? If event.target points to the current thumbnail being picked up, could i do something like event.target.url to point to its name or something?
View 1 Replies
Nov 10, 2004
I have a movieClip which receive a function of a bottom on release and on RollOver. What I want is when the RollOver the image gets bigger and then when RollOut the image gets the normal side (initial size)....
View 3 Replies
Apr 11, 2004
tutorial where when you click on a movie clip it moves to a certain location on the page and then zoom in and makes it a certain size. Also i want it to move back to its original location if you click it again.I want the move and zoom to be smooth so the users can see it move across the screen then gradually get bigger.
View 5 Replies
Dec 18, 2009
I'm creating a movie that is 500px wide but the background image is 1500px wide. How can I show the image at 100% without it being cut at 500px?
View 4 Replies
Mar 10, 2005
this is my code:
[Code]...
as you see the container._height is bigger than the maxh (maximum height) but the _width is just fine... how do i fix this problem??
View 1 Replies
Mar 24, 2011
I am trying to make scrolling text appear on a few screens, so that when I click on a button to go to the next frame the characters of a sentence will appear one after another as if someone is talking. This works a few times however when I go back to the first frame the following error occurs and the text no longer appears??
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at rollingtext_fla::MainTimeline/runthree()
at Function/[URL]::apply()
at SetIntervalTimer/onTimer()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
This is my code basically the same for each new frame
stop()var talkinterval=setInterval(runone,60)var i:Number;
i=0 function runone() { var text:String = "Restrictive signs come in red and blue circles."; text1.appendText(text.charAt(i)); i++; };
b_next.addEventListener(MouseEvent.CLICK, nexts)function nexts(e:MouseEvent){ clearInterval(talkinterval) gotoAndStop("h")
}
View 2 Replies
Sep 6, 2006
how to do the following.
I have a map, placed on the stage in its entirety.I only want to show a portion of this on screen though. Then as the mouse moves to the edge of this visble frame I want to pan over the map in that direction. just can't work out how to do it. It must be a relatively simple process but for the life of me I can't work it out.
I'm thinking maybe some kind of mask then you move the map around beneath it? I've been trying to use a couple of scrolling tile-based games tutorials but this is less complicated and I can't sceen out all the extra stuff the game tutorials are doing.
View 3 Replies
Feb 3, 2008
I am loading external SWF files into a blank movieclip (content1) Problem is each SWF is different in height.I need to be able to do a full screen scroll but the scroll will only work with the main stage height, Is there any way to make the page scroll to the bottom of each external movieclip? At the moment it either clips off or I have to set the stage height to something like 1200px to scroll through all the text.
View 2 Replies
Sep 16, 2009
I am trying to make my screen scroll as my character moves to the edge of it, but when I get to the edge of the screen nothing happens, I think this could be something to do with my registration points but I'm not sure. I have added trace statements for debugging but no luck. I have included my Fla so you can see what I mean.
Here: [URL]
Here is the code I am using to try and make this happen
PHP Code:
// scroll the LBground if character gets past half way up or down the stage
function scrollLevel():void {
// Horizontal scrolling
var horizontalCentre:Number = stage.stageWidth / 2;
var horizontalPosition:Number = LBground.x + Mchar;
[Code] .....
View 2 Replies
Jan 27, 2010
I have some code which moves back and forth through my menu so that it scrolls in relation to where the mouse is on teh screen. The problem is that I cant get it to scroll smoothly and is a little jerky... I want to ass maybe some smoothness or maybe a little lag to it so it just seems more smooth. I have pasted the main code I have so far below.. I am using AS3 at the moment.
[Code]...
View 1 Replies
Oct 6, 2011
I am programmer , C# is my programming language.I started known about FLASG a few day ago. I am very, very interesting about its.My boss want i make a text display in bottom screen and scrolling from right to left (same as display on TV).But, i used to keyframe to solved this solution but they are slowly and not smooth. Now i want text display running smoother.I not good at Flash .
View 1 Replies
Apr 21, 2003
how to make full screen scrolling in Flash MX? Like in a platformer game.
View 1 Replies
Nov 12, 2011
i need to make scrolling terrain but dont have how to do it for the code? What i want to do is 5 objects lets call them A,B,C,D,E scroll down the screen in random positions
View 15 Replies
Dec 12, 2009
I am trying to emulate an effect like this site uses...
[URL]
and I've basically poached their script, a jQuery initiated 100% width and height background that loads into a couple of holding containers.
The thing I would like to do differently is fix the background in place so the content can scroll over it. How can I, say, write the flash movie to the BODY background or something like that? I'm not a javascript wiz and am not sure how I might do this.
View 3 Replies
Oct 27, 2011
I have a flash application that utilizes a lot of popup title windows that do not have parent containers. I'm having a problem when users with smaller resolutions try to use my application because the popup utility windows will often be too large. Note that I do not want to re-size the window as that would eliminate a lot of it's clarity and separation of menu bars and tool icons. I just want my application to detect if the window has a height or width property greater than that of the browser's view frame and then activate the respective scroll bar should it be needed.
View 2 Replies
Mar 1, 2008
here i have a zipped fla file where i have problem with the character still wallking when road scrolling reach the end of the screen.how would i stop that?heres script:
Code:
//road scrolling
road.onEnterFrame = function() {
[code]......
View 7 Replies
Aug 17, 2011
Ok i have been looking at a racing game and have used the tutorial from this link here:[URL]...What i am having trouble with is trying to create a scrolling background whilst keeping the car static in the centre of the screen. Ane example of what im trying to do is here:[URL]...So i have tried incorporating the code from that scrolling background example, into the car racing game itself but i am having trouble doing so. Is there any way that the code used from the scrolling background can be input into the racing game example to create this scrolling background effect?
View 1 Replies
Jan 14, 2010
i have a set of images which i've converted to mcs and have given them all different instance names. The first image motion tweens to the right of the screen via actionscript and then the next one will motion tween from the bottom of the screen to the top and then the image after that will go to the right of the screen and next one goes to to the top, and so on. I have this actionscript for the first image,
[Code]...
I need the next image to start motion tweeing up to the top of the screen right when the first image starts fading out. Then when the second images starts fading out the next image is already motion tweening to the right of the screen and so on. Once every image has run through its tween everything repeats. Is there any way of doing this?
View 3 Replies
Aug 18, 2006
how to allow the user to scroll a graphic either right or left. when the user moves the mouse to the left or right side I want the image to move the other way (if mouse is at the right the graphic moves left), but stop when when the user gets in the end of the image.
View 2 Replies
Aug 13, 2009
I need to develop a scrolling image bar, I have never ever used a 'scroll bar' in flash. What it needs to do is have around 10 thumbnail images, that you can scroll left to right to, then when you click the image enlarges?
View 1 Replies
Sep 16, 2005
I have come to a solution where I use an invisible button (covering the whole movie) where the action takes place in. Problem is, I can't put buttons on it because the invisible button blockes them.Does anyone know an other solution of making my background image scroll like the example site?
View 4 Replies
Oct 23, 2009
So I've found many people trying to do this[URL].. but with actionscript 3.0 and not 2.0.
I'm not a coder by any means, but I've kinda translated most of it except for the scrolling part.
This is what I have so far:
[Code]...
as you can see, some of it is hidden as I was afraid to delete things I might end up needing later. The position of the gallery is at an exact place, and the xml file is perfect. The only problem I'm having is with the scrolling part. I keep getting an error in the function scrolling code that says that a property of mask_mc is being called wrong. I also have learned that the createEmptyMovieClip is not as3 but as2, and that that is also wrong. I'm just trying to get the scroller to work.
View 2 Replies
Aug 10, 2010
I don't do much flash but can sort of get myself around. I'm having issues with a classic tween in CS4. I have a jpeg of magazine covers inside an MC that repeats a scrolling left movement. The client has commented that it comes across a little jerky and isn't smooth enough.
View 2 Replies
Nov 7, 2010
I'm making a side scrolling platformer and I wonder why image movement is so choppy, especially if velocities arent whole numbers? Images I'm using are: one 320*350, one 500*500 and few of 50*50 all in PNG format with alpha support and cached as bitmap. Framerate is 30FPS.
View 1 Replies