Scroll Dynamically Loaded Images?
Sep 21, 2007How would I scroll dynamicall loaded images. I would like to use XML but that not required.
View 0 RepliesHow would I scroll dynamicall loaded images. I would like to use XML but that not required.
View 0 RepliesI'm having trouble with the scroll pane component in flash...becuase my portfolio images are quite large I wanted to put them into a scrollpane to easily view the whole thing. the problem is that when I dynamically load them, there is a delay everytime I click on the "next" button to view the next image.
View 4 RepliesI added a scroll pane or two via the components inspector for my flash website. I know how to add content to the scroll pane (rename contentpath to that of new movie). My question: Does that mean that scroll panes load dynamically ie. that they are only called for when you press a button to call that specific page which has the scroll pane and does that mean it would save you filesize on your.SWF?
View 1 Repliesi have a text box in flash which has text loaded dynamically from a .txt file. and its html enabled.. the text file has a variable name. notes but it doesnt have an instant name.... the problem i have is. that when i snap a flash mx scroll bar component. it gives it an instant name but the scroll bar doesnt work.
View 11 Replieshere is some code for a rotating crank that controls an image gallery. refer to the "image viewer stops?" thread in the flash mx forum (sorry don't know how to link to a forum yet!) for more info. attached is the fla. i want to be able to crank clockwise to scroll images forward and counterclockwise to scroll images backwards. If i keep cranking, i want the images to continue to change, if i stop cranking, i want it to stp on that image. it doesn't sem tooooo hard, i'm just numb from tryig to figure it out.
[Code]...
i want to make some sort of scroll pane that will hold my xmL loaded images ..i have looked at several samples of scrolling panes but they only hold textfield.
View 2 RepliesI've used AS2.0 to build my site. I have several .jpgs that I'm loading dynamically on my flash site from my server. For some reason only some of the .jpgs are loading pixelated. I've tried to look up solutions to this, but I'm not exactly sure where a quality=best or smoothing=true script should be placed. And I'm equally as puzzled as to why only some of my .jpgs are loading pixelated? This is very frustrating, this is the code I'm using to load my images:
loadMovie("Wave.jpg", _root.image_box_9);
I have several images that are loaded dynamic.Now I want them to center in the container.How is that done? I can get the width and height but I can't adjust the x values on the loaderinfo object. Heres part of the code:
... part of function ...
for (var i:uint=0; i<numPictures; i++) {
var pictLdr:Loader = new Loader();[code].......
preload a dynamically loading image.
My header animates then dissapears.
Then after about 2 seconds the dynamically loaded image appears, is there a way to preload the image before the end of the animation?
My code that doesnt work is:
stop();
addEventListener(Event.ENTER_FRAME,loading) ;
function loading(e:Event){
[Code]....
as you surely know, setting a picture in your library to "allow smoothing" makes it high quality while resizing, rotating, etc with it on the scene.
Now I'd like to know how to set this to a picture you externally load while playing, cause obviously you can't set its parameter "allow smoothing" to true in the library, it'll never be in your library...
I found one thing that draws a bitmap, copies the pict, etc, but it's very slow at usage. I need something faster but the quality of the image must be perfect.
I'm trying to add a preloader to my code (see below) to preload my images:
// for loop
for (p=0; p<401; p++) {
// create array to load images from folder
[Code]....
For the life of me, I cannot get any rollovers to work with the images that have been loaded from XML. I can target them and set the _alpha and whatnot, but rollover/out/press functions don't seem to work :[ I've tried many different ways... does anyone see what's wrong?
[Code]...
Is there a way to modify the code below to make the spacey = a variable + 15 so that the dynamically loaded images can vary in height and be spaced 15px apart?
Code:
cliparray = [];
columns = 1;
spacex = 0;
spacey = 420;
function loadXML(loaded) {
[Code] .....
I have a working AS2 banner that loads in an array of images into a movieclip using flashvars and then cycles through these (there's no limit on the array length).
Unforunately, the images couldn't alpha tween into eachother as the AS2 script needs to be seperated onto sperate keyframes in order to count through the array.
I've created another movieclip which loads in the 'next' image in the array, so that when the current image fades down, the next fades up.
So to break down:
bannerContainer_mc - loads current image
nextContainer_mc - loads next image
Unfortunately when the timeline loops to the start again, bannerContainer_mc loads in the image which was previously loaded into nextContainer_mc. This creates a 'jolt' in the animation as the same image is re-loaded.
Is there any way of perhaps caching nextContainer_mc at the end of the banner sequence, to save loading it again in bannerContainer_mc?
I have created a custom 3d wall gallery and I would like to mask it to give it right and left fades. I have posted the code that places the images on the stage but for the life of me I cannot mask it. Themc in the library mask_mc already has the correct gradient so now how do I add it to the top of the dynamic gallery?
Code:
private function viewCarousel():void {
viewport = new Viewport3D(stage.stageWidth, stage.stageHeight, false, true);
addChild(viewport);[code]......
if it's possible to apply mask over images loaded with loadMovie(), be it physical or through setMask.
View 6 RepliesI have about a dozen thumbnail images aligned in a 3 X 4 grid. The dimension of the stage is smaller then the 3 X 4 grid therefore I will need a vertical scroll bar to scroll through my images. In addition, whenever the user rolls over one of the images the edges would glow. Also, when the user clicks on one of the images, it will bring them to a separate frame. I was wondering how I would attempt to do this. Since I will be frequently adding new thumbnails, I heard that I should look into XML. If I am to do this using XML, I am confused as to how I would do this.
View 5 RepliesI bought and installed a component and now the place I got it from is not giving support and their site has been pulled. The issues is that I can't figure out how to convert the loaded images into bitmaps in order to apply smoothing. Can someone look at the code in the attached .fla and give me a heads up as to where to add i
View 8 RepliesI'm making a Image slider. When the mouse is rolled over, It'll slide to one direction. Just like a normal image slider.The problem is, the images that I want to be inside this slider are in a folder and I want them to dynamically load into flash and into the slider.
For example, Lets say there are 5 images in the folder. I want flash to get all the 5 images and load them into the slider and do the normal scroll thing. When the 5th image is reached, I want the slider to display the first image. (in a continuous loop). If a new image is put into the folder, flash should now have 6 images in the slider.I've manged to get the Number of files in the folder to flash.How can I make a slider where images are loaded dynamically?
I am uploading different size of images dynamically but at the same time I want the stage to be resized accordingly to image's height and width.
View 11 RepliesI wonder whether anyone could give me an idea of where I am going wrong with this.I am loading images into a sliding menu which will act as a thumbnail viewer, the structure of which is: "thumbsContainer" (movieclip) nested inside "galleryPane" (movieclip). The images are loaded into movieclips named "all_thumbs", which are added to the thumbsContainer stage.
I would like to mask the content of the thumbsContainer, so that only the images physically within the thumbsContainer border will be viewable. I have tried adding my coded mask to the thumbsContainer stage, and tying it to the thumbsContainer; and have separately tried the same with the all_thumbs movieclip - but no matter how I organise my code, I can't get this to work. If the mask is tied to the thumbsContainer mc - that element disappears; if the mask is tied to the all_thumbs mc, only the background to the thumbsContainer is visible. Either way, I cannot get thumbnails to display through the mask. No thumbnails at all will display on stage.
I've had a good look through the books I have and online, but with no joy so far.
I'd be really grateful if someone could give me a steer with this.
[Code]...
I'm trying to make smoothing for images which loaded with loadclip(). I found function for smoothing and it works but only for movieclips located in _level0, for example _level0.mc, but I want to smooth children MC, for example _level0.parent_mc.children_mc and then image just disappears. Smoothing function:
here = this; // trace(here) == _level0
bg_smooth = function (bg):Void {
var bg_depth:Number = bg.getDepth();
var bg_name:String = bg._name;
var bg_parent = bg._parent;
[Code] .....
Also tried to write _level0.parent_mc['children_mc'] instead of parent_mc.children_mc and to make here == _level0.parent_mc - still no luck. If I remove bg_smooth (element) on load complete then all works fine but of course smoothing disabled.
I've got a nifty bit of script that loads some images from an XML file into flash. It loads the pictures into specified movieclips:
ActionScript Code:
xmlImages.reset();
xmlImages = new XML();
xmlImages.ignoreWhite = true;
xmlImages.onLoad = loadImages;
xmlImages.load("[URL]");
function loadImages(loaded) {
[Code] .....
Each instance of the movieclips are called picture_mc1, picture_mc2 etc. On the frame where these picture_mc's sit, I've got this code:
ActionScript Code:
function randomImage() {
if (loaded == filesize) {
image = (imageFileName[0]);
picture_mc1.loadMovie(imageFileName[0], 1);
picture_mc1._xscale=23;
picture_mc1._yscale=23;
[Code] .....
Everything works fine, but my image scaling is making my picture_mc's look really pixilated. I've seen references to bitmap image smoothing, but i'm not sure the best way to approach this. It seems that each time I try and smooth my images, the code is smoothing the image placeholder, rather than the jpg that's being loaded into it.
I am currently building a sphere of images that I'm trying to load from a remote location using XML. I managed to find the source for the sphere and was able to figure out how load the XML into an array of image details.
My problem is that the sphere is made up of images that were loaded into the library and I'm trying to load them in dynamically, i got all the information from XML but i don't understand how to make these dynamic images the same as the ones in the library so i can instantiate the image object.
thumbsArray[0]=[new Bitmap(new Small1(thumbWidth,thumbHeight))];
Small1 = the name of one of the image in the library that makes up the sphere. if i go to the properties of this Small1 image i noticed that its class is called Small1 too. I don't understand this as iv never seen this in actionscript 2.0.
The code below is my attempt at making a image loader object to a bitmap object, that doesnt seem to work my bitmap object becomes null, and throws an error.
SYNTAX / CODE:
function getLoader(url) {
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.CO MPLETE, completeHandler);
[Code]......
I've got a client who's asking about resizing dynamically loaded images in flash. basically i'm building him a button that displays dyn. text and loads a .png based on a variable (easy). I'm going to tell him that actionscript/flash really has no means of resizing a loaded image and that you need some type of server-side script to do all of that.
View 2 RepliesI am trying to add simple drop shadows to a few dynamically loaded images and it's not working. If I create a plain box or rectangle, the drop shadow filter works fine, but not with loaded .jpg's.[code]...
View 2 RepliesI am dynamically loading images into a blank movie file. I would like if the images fade in as they load. Remark, I am not using a slide show effect. All i would like to do is load image and make it fade in. When the user clicks to go to the next frame the image should fade out. How to do this?
View 9 RepliesIm building a site for a photographer, all images are xml driven.. When a thumb is clicked the full size image is loaded into an empty movie clip.
I am after a similar effect as seen here..[URL] If you resize the window the image resizes to scale...
I have managed to align the rest of the movieCLips to the stage when it is resized in its right positions just can't get the image to resize!.
I have a rect that i need to fill with a tiling image. The problem is that there seems to be no way of doing this without using embedded images, which isn't a possibility for me.how to work around this? The reason i can't embed the images is that they are selected by the user from a list, generated by a plsql procedure. it's flex 4 beta 2 by the way,
View 9 RepliesI have some nasty issue. I need to display dynamically loaded HTML document with images but my designer wants the document to be presented in angular (slopy) manner rather than simply vertically placed on stage. HTML document is loaded inside a .htmlText property of a textField.
While the texts itself renders perfectly with embedded fonts and "AntiAlias for readability" I have a huge problem with images inside HTML. For whatever reason they look nasty aliased - complete disaster:
Is there any way to get better quality in this case?