ActionScript 2.0 :: Have Inherited A Mash Of Code (image Scroller)?
Sep 16, 2002
I have got to update one of his jobs.It's a set of images that scroll left and right with the mouse and scroll to the left when first loaded, also they enlarge when moused over, oh and they are buttons (this whole 'idea' was thought up by the client with a "I want it to do this" statement), and the code is a right mess.
All I have been asked to do is add an extra image, but I have added the image and the whole thing has broke. With some large gaps being added within the images.Can someone have a look at it and see what's going on, Alternatively i there is a better solution to get the same result (There has to be this looks like some sort of mash of various bits of other code).Links: Ziped FLA, SWF & current live site (about a third down the page next to "chose your favourite sport")
Override seems to completely replace a function's code.s there any way to "append" to the superclassed function instead of replacing it?i.e. - so that both traces show in this example:
There's a Loader that I'm filling with different images depending on the button clicked. Now to keep it tidy I'm using the exact same loader. The problem is that no matter what I do to the image, the next image loaded always get's the properties of the previous one. I've used unload and the Loader returns 0 in width and height, and still the next image get's the previous image's w/h. Othe attempts have been separating it from the parent container and taking it out of the display list, and also using an Event.UNLOAD to make sure the previous image is out before the loading of the new image.
Script is gonne kinda long, but the basics would be these,
BrowserLoad.unload(); BrowserReq = new URLRequest("ImageB.jpg"); BrowserLoad.load(BrowserReq);
[Code]....
I guess it's general question: how can i be sure the image previously loaded in a Loader will not affect the next one coming? (its width and height being 0 has not been enough...)
I am trying to replace some code which loaded an external image and triggered and function once completed with code that uses and embedded image. The relevant code looks like this.
Code:
[Embed(source='globe.png')] public function Globe() { var imageLoader:Loader = new Loader();
[code]....
The commented out section is where it used to take the loaded image and apply it to a texturemap.I need to replace the lines of code in the first function with something that calls the second function correctly.
I have tried using function imageLoadComplete (e:Event = null)and calling it with imageLoadComplete(); in the first function but although it compile and runs without error, the program does not work properly. I suspect this is to do with the dispatchEvent(); line which I do not understand.
If you have used Udemy (I have used Zenation earlier, which is not as good as the app developed by Udemy.) to create a mash-up of a .ppt file with a video, you would know how wonderful it is. I would like to get an overview how they have built this application.My guess is that first the application converts the .ppt slides into JPEG images which are then imported to flash so that the user can easily time-stamp the images while the video plays. Pretty much like sub-titles work. But, I am not sure about my guess.
Iv got a background image 3 times the length of my stage.. what im trying to do is create a scroller so when you press a right button or a left button, it scrolls to the left third or the right third of the image.
I want it to while still easing into place like the iphone does. For example my stage is 550px. The drag and throw MC is 1650. That's 550x3. If the first image is showing starting at x axis 0 and you drag to the left it will ease into place stopping and showing the second image stopping the image at x axis 0. And the same thing scrolling to the next one and scrolling back. So the code is below and I've attached the movie that I'm working on.
I have been trying to figure out how to create this movieclipI have a bunch of images which is laid out horizontally (x axis). The functionality is very simple, when I click on the movieclip it will allow me to drag it from right to left and vice versa. This part is simple enough. I face a problem when it comes to the end and the beginning of the movieclip. How do I make it undraggable when it reaches the end of the movie clip and vice versa when I drag it back to the beginning.
In the image scroller that i implemented, its taking too much time for loading the images,So I hope it's better to monitor the loading progress of images and providing a preloaderBut how to implement it when more than one images are in the scroller. I meant how the calculations to be done when multiple images are loading.
I have a horizontal image scroll that is made up of various thumbnails. When you move your mouse to the left it goes left, move it to the right and it goes right.The problem here lies somewhere in making the loop continuous. I have it looping correctly. There are masks on each thumbnail.
I have two instances of the same movieclip that contains the thumbnails right next to each other. This allows it to loop.When two instances of the thumbnails are both on the screen at the same time, a few of them lose their masks while they are on the stage. Why is this?
regarding continuous scroller in actionscript.Th problem is that in my current scroller.. after a few up and down scrolls, the space between movieclips holding the images dosent seems to be remaining the same.
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. I've got it however, I'm struggling withlimiting this panel so that you can scroll the images infinately (ie: off the screen!)[URL]
I've done a basic thumbnail scroller before, but now I'm trying to make one like the scroller at I need to figure out how to get the popout with the text on it. Specifically when the image is the center image. Can anyone point me in the right direction?
I'm having problems with my AS2 and XML (on Flash 8). I finally figured how to create a simple slideshow which incorporates a "Next" and "Previous" button...but what i'm struggling with is: "How to click on the 'next' button so that the existing image scrolls to the left as the new image from the right moves to the center. And the opposite for the 'previous' button". Currently I have the existing image disappearing (alpha 0) and then the new image scrolls to the center from the right - which is not what I want to do.
Here's my current script: import mx.transitions.Tween; import mx.transitions.easing.*; function loadXML(loaded) { if (loaded) { xmlNode = this.firstChild; [Code] .....
I have built an dynamic XML image scroller to load jpgs via an XML file and then populate a horizontal scroller with a mouseover effect and a mouseclick function that sends you to another url.Right now the mouseover function fades the image alpha, but I want it to also add a text label dynamically grabbed from the XML file.Here is the code for the mouseover function:
I'm a beginner at actionscript, as well, but I'm humble and more than willing to be schooled..I have what I hope is an easy question to answer.It is a pretty basic image scroller that has a series of images scrolling across the screen in an infinite loop. Direction is controlled by mouse position (extreme left or right), and it will stop when the mouse is positioned over an image in the center area.Here's the code:
var myVar:Boolean; this.addEventListener(Event.ENTER_FRAME, onEnterFrame); function onEnterFrame(e:Event) :void
I am have a button on my main.fla that loads an image scroller that is conected to an XML file.I can post the code for the button, or the code from the swf i'm trying to load.I am getting this error message:
loading xml from: Mixed-Media-Thumbs.xmlError #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file: /Mixed-Media-Thumbs.xml at mixed_media_fla::MainTimeline/frame1()
i am new to flash and AS and I have created a custom image gallery, where thumbnails appear on the left of my page and once clicked they fade into he screen.however i have so many images that they do not all show on the page, and take up the entire left hand side - i would like to know how i could edit my code so that all the thumbnails (that are loaded from a .xml file) can be put into a scroller box.I would also like to add a function so that the image would close on mouse click of the bigger picture OR when a "close" button is clicked
How can I make a horizontal image scroller that when u click and hold would allow me to scroll through a pan with hotspots(buttons)? I have this script which does the basic functions I am wanting but it if I drag right enough I can drage the MC right out of the frame. I would like to be able to scroll right and then when it meets the very right edge of the movie clicp and the actual movie frame it won't go further. Same with the left edge.
Code: var mouseStartX:int; var mouseStartY:int; var bgStartX:int;[code].......
I am designing a surf board website and I am trying to get the boards to display properly in a scrollerI have everything in place except I need to call a frame name from the XML. in the instructions for the horizontal scroller it says I needed to uncomment a piece and comment another piece but i can't get it to work..I need it the timeline to go to the frame labeled "go"
I'm in the process of putting to together an image scroller, and have it working fine (to an extent). It scrolls left and right as it should, and stops scrolling when it get to its furthest left and furthest right points. This has been done like this...
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.
I have a series of images that merged into one 2400 pixel wide jpg. I want this to loop continuously across the bottom of a website. I have tried using TweenLite and TweenGroup but cannot get that to behave correctly. Is there an Actionscript 3 way to do this? Ultimately this is being added to a Flex site.
I have some problem with movieclips. What i want to get is something like an image scroller with design of movie tape. The number of slides (in this movie tape) depends on number of nodes in xml, and ech slide should load external image and to be a hyperlink to a specified in xml url.
Everything is clear except this. How can i assign to every movieclip a design of a slide of the movie tape
I can prepare such a movieclip, i can duplicate it, but how can i every duplicate slide connect with a node in xml? i can easy make a slide by slide basing on xml, but how can i then assign the design?
I followed someone's tutorial on CWD.dk and made this image gallery scroller. I have attached the file downloaded from the website. Basically, when you click the buttons, it will scroll the images. However, it doesn't ease in or out, and I would like to know how to make it ease in and out. I've been trying for the last 2 hours with no success. Anyway, the file is too large to attach, so here is the direct link. [URL]