ActionScript 2.0 :: Scroll Banner With Long Pics?
Oct 5, 2006
Im making a picture scroller that has no interaction whatsoever just plays on its own. I have 4 images that are 800x100 each and have combined them into one movieclip. However i have a problem! Do to the size i dont want to have a huge timeline for this thing. Im fairly new to actionscripting and i know this would be an easy fix if i could code it. It needs to be seemeless so it continuously shows these 4 pics. Here is one of the images for reference.
View 3 Replies
Similar Posts:
Apr 20, 2009
I wrote a short AS program to create a tileList and it functions fine, but I need to be able to scroll the list of pics according to the position of the mouse with out actually moving the scroll bar.... example of what I mean: the farther to the right mouseX is on stage, the faster my tileList scrolls to the right, if mouseX moves to the left of the stage, so does the scroll bar...Here`s my code so far:
import flash.display.Sprite;import fl.controls.TileList;import fl.controls.ScrollBarDirection;import flash.text.TextFormat;
var tlc:TileList;[code]........
View 1 Replies
Dec 9, 2010
I have a text box that loads content from an .xml file. I need it to scroll the contents horizontally if the text is too long to fit in the box. Similar to a marquee...
View 1 Replies
Mar 22, 2010
The website I am designing is a single-page site which scrolls using jquery to anchor points on the page (instead of having separate html pages for each section) The intro section has a flash banner which alternates images of different sections of the site. I have used the following code to get these images to link to the relevant page section
name_btn.onRelease = function() {
getURL("#anchorname");
};
This however just jumps to the named anchor point - I need to make this scroll to the anchor instead to keep it consistent with the rest of the site.
View 1 Replies
Mar 22, 2010
The website I am designing is a single-page site which scrolls using jquery to anchor points on the page (instead of having separate html pages for each section)The intro section has a flash banner which alternates images of different sections of the site. I have used the following code to get these images to link to the relevant page section
name_btn.onRelease = function() {
getURL("#anchorname");
};
This however just jumps to the named anchor point - I need to make this scroll to the anchor instead to keep it consistent with the rest of the site
View 1 Replies
Feb 5, 2004
I'am making a advanced mp3 player arund this tutorial: [URL] and i want the users of the player to see how long they have listen or how long time back of the song. i have the AS i what to use but i cant connect them. becuase the tutorial i used does not make a sound objekt (MUSIC)
[COde]...
View 1 Replies
Aug 1, 2010
I'm trying to play a 10 minute long video (h264/mp4) which is 39MB in size, after I call stream.play(fileURL) it doesn't start playback until its loaded around 12-16MB of the file (many many seconds later), I finally get onMetaData at this point too. Why doesn't it begin playback right away, or at least w/in a couple seconds? What can cause this bloated lead in time?
View 2 Replies
Oct 13, 2009
I am building a banner ad and I am using Flash CS4. I need it so when someone clicks the banner it takes them to the page in a new window. Its just a a simple URL and I keep getting syntax errors now and I dont know how to do this properly. I have tried these methods.
[Code]...
View 1 Replies
Sep 24, 2011
I am new to flash CS5 and I am having a problem creating a character with multiple parts.My problem is. I created the character parts in PS: CS5 and save it individually as PNG with transparent background, but when I Imported it to Flash CS5 and applied a bone on it and test the bone. The image is messed up and as I realize that the individual png transparent image has a background.That's why the imae pic is distorted, messed up.I know it's hard to imagine so I post a pic.As what I have said. It is only an example screen cap of the problem.When I apply a bone and test that is the result.I am unable to draw in Flash cause it's different from PS which where I draw the chars, parts, and everything.
View 12 Replies
Mar 29, 2009
I have set up an animation that displays icons on agrid. Right now everything is working ok.I have an array of 4movieclips that are randomly selected to display on the screen.Each has a timeline that brings it from alpha 0 - 100. So far, soood.Now I have to add the remaining 200 icons. Now of course Icould make 200 more movieclips and add them all to the array butthere must be a better way, right?I thought I could just have just one movieclip and switch thepic out from an external xml list. But if I import them they won'twork with the alpha transition because they aren't movieclips,right?
View 3 Replies
Jul 2, 2009
I am trying to develop a way to load and unload pictures and zoom in to them in a dynamically way. This is done with the idea to save space in memory for further use. I was helped by Dawsonk a while ago and we came to this code:
[Code]...
View 0 Replies
Nov 11, 2010
ActionScript Code:
import flash.filters.GlowFilter;
import flash.filters.DropShadowFilter;
_global.gallerynum=1;
[code]....
There are 3 pics each in FASHION SPORTS and BEAUTY catergory and 10 and 5 in ENTERTAINMENT and COVERS respectively. All is ok but when i click on FASHION or other categories having less pics the pics from the earlier categories ( e.g. ENTERTAINMENT ) wont leave the stage. Also the unLoadGallery() function is giving an error message that ' This code is making flash to run slower. Would you like to stop this script?'.
View 8 Replies
Apr 3, 2011
I want to show images in holder1_mc holder2_mc and holder3_mc holders in my fla I would like to use XML but just inserting jpgs would do.
I tried using a variation on lee brimelows xml but get "Scene 1, Layer 'Actions', Frame 1, Line 1 1152: A conflict exists with inherited definition flash.displayisplayObject.x in namespace public.If i just Use jpgs how do I get this effect :
Code: Select allvar my_loader1:Loader = new Loader();
my_loader1.load(new URLRequest("myPhoto0.jpg"));
addChild(my_loader1);
[code]....
View 3 Replies
Apr 15, 2010
I am loading XML file with images and text. I am resizing the pictures so I have to add an additional loader just to do that. By the time the images load, they are in different order than the XML file (cause it took time to load), which means it also throws my text off. Prior to loading, I place all the text of the images in an array. But when the images load, the array no longer matches the images loaded because they loaded randomly, rather than in order.
Code:
picData = new XML(e.target.data);
my_images = picData.image;
image_text = picData.image.@name;
[Code]....
This loads all of the pictures fine, but again I can't make the picture match the text because the text array has no idea what image is being loaded first.
View 1 Replies
Oct 8, 2009
I downloaded a flash spread gallery [URL]which uses a xml file to designate the pics to be used. It is very cool but it is kind of a pain as I have to manually type each pic name in the xml file. Is there a way that I can modify either the xml or the fla to just pull the pics from a folder? Maybe two folders one for the pics and one for the thumbs?
I would like to just dump a bunch of pics in a folder and their thumbs in another and have it automatically just post them.Attached is the fla and the xml (and a .js file) zipped.flashmo_185_spread_gallery.flaflashmo_185_photo_list.zip
View 3 Replies
Jan 27, 2009
I am trying to make gallery of images located on server(local folder currently). I put pics in loader or grid. But I wouldlike to make action script which with on button click will takepics names as array from this folder and will great gallery. Thisfolder will be updated very often.
View 1 Replies
Jun 2, 2009
Im working with two apps trying to combine them into one. i have a xml as3 app that displays pics with discription next and back button. Then i have a dynamic horizontal scroller nav that displays thumbs and scrolls based on mouse position this too works ecept loading the thumbs. What i want happen is to combine them in one app where the nav would float under the xml pics and once you click on a thumb from the nav it pushes it in the xml loader file..
Im getting stuck at loading the thumbs in the nav...the xml file already calls all the nessary thumbs i have them pushed in its own array this array is availble on root or main timeline...i need to point the the nav loader (which has its own timeline)to pull from that array.
View 1 Replies
Dec 17, 2010
just starting AS and tried making a slide show for sponsors of our sports site. Basically it reads an XML file that contains the sponsors logos and blurbs loads them into MCs and slides them rotating. The XML has 14 entries that are like ...
[Code].....
View 3 Replies
Mar 7, 2010
I'm dynamically calling pics in from another folder on my site for a slideshow. And it works up to pic #9. But any number over 9 and it wigs out. The naming convention I'm using is panel1, panel2, panel3, etc. Is there a trick? Do I need to use panel01, etc? If so, would that then be panel010 for #10?
View 3 Replies
May 24, 2004
i have just posted an online photo gallery and its the kind that resizes to fit whatever photo you tell it to load. you can see it at URL...in anycase, my problem, is that for some reason when you try to load pics 018 - 030 they refuse to load, and i can't figure out why? URL...
View 1 Replies
Aug 28, 2006
let say that I wanna make a new SWF and I want the transitions between 3 pics or whatever pics I want .. at 20 frames ..... Im loading this into the master movie so when I loaded my transitions it run at 40 frames not at 20 as I speceified in the properities .?or maybe I was thinking in doing something like for example each 10 seconds change to next pic and so on ? can you do something like that ? maybe with set interval ?
View 3 Replies
Jun 4, 2003
I have a Main Movie with four buttons {about us, services, portfolio, contact}. When you click on Portfolio the Portfolio movie is loaded into the main movie to an instance called "load". This Portfolio movie has four buttons in it the first one being "print", now when I click on this link it loads another movie with the "print slideshow" in it.
In this slideshow there are thumbnail images which when pressed opens up another movie showing a bigger image which works fine. But what I would like to do instead of having separate movies for each thumbnail is to have just the one and load in the picture and any copy into a target depending on which one is pressed. I have tried doing this with this script, but it doesn't work (I've only tried loading the pic up to now)
on (press) {
loadMovie("print/view_file.swf", _root.view);
setProperty(_root.view, _x, "445");
setProperty(_root.view, _y, "25");
That part works OK, but it is replacing the slideshow movie. I've deleted the next part of the script and it no longer replaces the slideshow, so I think that is where my problem is, but I'm still not sure why
loadMovie("print/mdc-large.jpg", _root.view.pic);
setProperty(_root.view.pic, _x, "445");
setProperty(_root.view.pic, _y, "25");
}
This part isn't loading the pic at all. I know I've made it a bit difficult for myself by doing it all in separate movies, but I only want to load what is necessary depending on where people are browsing.
View 2 Replies
Jun 3, 2009
I building a photoviewer with xml loaded pics..my problem right now is that i should building the back button, but i dont know how [code]it should read, if back-button was clicked it should play frame 50, if not it should play frame 31.
View 2 Replies
Aug 28, 2009
I'm trying with the XML photo gallery presented in the [URL] tutorial. This is set up to display 1 picture at a time , but what if I want to display 2 pics next to each other, like in a table stucture with 1 row divided into 2 columns? How do I set up the XML to do something like that?
View 6 Replies
Oct 8, 2009
I have 12 pictures I need to load and then make accessible as buttons or - when the user presses on the picture it initializes a function.
What is the best way to do this? I went the loading a picture through URLRequest and URLLoader route but I need to load 12, place them on the stage, make them move upon NextBnt press and and then when the user selects the picture., the view goes to another screen. does that make sense?
View 6 Replies
Apr 4, 2010
In my project I need to dynamically load (with an XML file) images (icons) into a flash cs3 file with as3. Every icon needs to have it's own URL. So far I succeeded in loading the icons into the file and adding the imageLoader an external link, but I can't seem to be able to figure out how to load every image into its own loader so that I can give
it separate url references. I also want to a hover effect on the images.
[Code]...
View 3 Replies
May 24, 2004
i have just posted an online photo gallery and its the kind that resizes to fit whatever photo you tell it to load. you can see it at :in anycase, my problem, is that for some reason when you try to load pics 018 - 030 they refuse to load, and i can't figure out why?
View 1 Replies
Jul 18, 2004
How does one change the location that the pics are called from?
The xml path was easy for me because there is a path type that I'm familiar with -- gallery_xml.load("whateverHERE/gallery.xml");-- but I just can't see where to put the path to pics. I saw a path built into the xml file example I used -- <gallery path="whateverHERE/"> -- but that doesn't seem to effect anything. As it stands, the code below requires the pic's to be in the same folder as the .swf.
spacing = 10;
bar._visible = false;
containerMC._alpha = 0;
var pArray = new Array();
[Code]....
View 6 Replies
Sep 9, 2009
i am developing a piece for our home page that has three buttons below what's essentially a picture frame. the buttons work. it's the picture frame that doesn't.i have 4 ads that will rotate, each up for 250 frames. they fade out and in over each other. each has an instance name...ad1_link, ad2_link, etc. the idea is that as we have new products, etc, we'll swap in a new picture and remake the .swf.when i ran the code initially i got an 1120: access of undefined property error for pictures 2-4. no problems with the first one. after numerous attempts to find a solution, i decided to load all four movie clips at the same time, hiding them using the alpha property set to 0.i get no more errors, but now no matter which movie clip is visible, only the link to movie clip 4 (ad4_link) works. i need each clip to have it's own link, obviously, and for each to go away as the clip does.[code]
View 1 Replies
Aug 8, 2009
I want to make Flash Gallery like this: [URL]. I think it is Dynamic and pics are showing through xml.
View 2 Replies