ActionScript 1/2 :: Smooth Dynamically Loaded Jpgs?

May 12, 2009

I'm setting up an online picture gallery. I'm trying to make it easy for the client to insert specific images, dynamically loaded, have them appear at 63 percent. If the user clicks on one, it enlarges to 100 percent. Trouble is, when the image is at 63 percent, it is not smooth and looks terrible,All the BitmapData class solutions posted online work for individual images. But I can't figure out how to automate the process in a for loop. At this point I'm not even worrying about the enlarging. I just want the images to load at 63 percent and look smooth.Below is the code for two images. Later I'll increase this to 25.

On the stage are two colored rectangle movie clips: toon1 and toon2. I want the dynamically loaded jpegs to load inside them. The client will manually edit the last lines whenever she feels like it, to choose which images to load.What I need is an elegant AS2 solution in which any dynamically loaded jpeg will be smoothed.

for (i=1; i<=2; i++) {  this["toon"+i].createEmptyMovieClip("cartoon",this.getNextHighestDept h());  this["toon"+i].cartoon._xscale = this["toon"+i].cartoon._yscale=63; 

[code].....

View 5 Replies


Similar Posts:


ActionScript 2.0 :: Center Dynamically Loaded JPGs Of Dif Sizes?

Apr 20, 2006

I've read a few of the other threads on this subject but still had no luck. I'm loading jpgs via an xml file and the pics are all diffrent sizes. I'm trying to figure out how to center the image once loaded, but am running into brick wall after brick wall.[code]...

View 1 Replies

ActionScript 3.0 :: Smooth A Dynamically Loaded Bitmap From Another Domain

Oct 14, 2009

I've tried a bunch of options but can't seem to smooth a dynamically loaded bitmap from another domain. I've come to believe this is impossible without a cross domain file. Is it possible or not possible?

I keep getting:

SecurityError: Error #2123: Security sandbox violation: LoaderInfo.content: http://....swf cannot access http://...png. No policy files granted access.
at flash.display::LoaderInfo/get content()
at Main/showLogo()

So outside of putting a crossdomain.xml file out there, any options?

View 2 Replies

ActionScript 2.0 :: Scale And Smooth Dynamically Loaded Images

Jun 22, 2009

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.

View 0 Replies

ActionScript 2.0 :: Fullscreen - Dynamically Loaded Multiple Smooth Bitmaps

Aug 3, 2007

I have played around with the Dynamically Loading Bitmaps With Smoothing from Tinic U ro as well as somme other advices from people on the kirupa forum. The code works great. I am trying to load different Bitmaps, fullscreen, on the click of a button (or any other event). The images load, but they just stack on top of each others and thus, they don't resize to the stage properly. Here is the code with the attached FLA: ( you'll need 3 jpg named bg1.jpg, bg2.jpg, bg3.jpg, all in the same folder as the fla)

[Code]...

View 3 Replies

ActionScript 3.0 :: Dynamically Loading External Jpgs Into A Dynamically Created MC?

May 18, 2009

Essentially, I've got a MC container that's created dynamically based off an XML file (basically for every <title></title> I've got, it makes a new "card"). Now within the context of each <title></title> grouping I've got <imgs></imgs> in which I specify the path to images that are related.All of that works perfectly, save for the external jpg files actually appearing on the stage. The MC I add them to does, but the external image doesn't.My problem is- I can't add the external images until they're completely loaded (or so it appears). The thumbnail BG I use is blank. So I know for a fact that the thumbnail BG isn't occluding the loaded thumbnails.

View 2 Replies

ActionScript 2.0 :: Load Multiple Jpgs Dynamically?

Oct 18, 2003

I am new to Flash, and I am taking the tutorialon loding jpegs dynamically. My question is canyou alter the script, and with the click of the samebutton load next jpg, then next etc

View 4 Replies

ActionScript 2.0 :: Preloader For Dynamically Loading Jpgs?

Jul 28, 2003

i just need a preloader for my dynamically loading jpgs.

fyi, i don't need buttons or anything for this...it's a very simple slideshow where the images come in every 100 frames...that's it.

does anyone know what code i should put it so that my images will preload at the beginning so the slideshow doesn't stutter?

View 3 Replies

ActionScript 2.0 :: Loading Jpgs Via URL Into A Flash Dynamically?

May 24, 2002

I would like to have a flash movie load a picture as the background image of a symbol or otherwise be viewable. The picture would be referenced via a URL on another site.Example. putting in a URL ending in '.jpg' would make another object show the pic from that URL.

View 8 Replies

ActionScript 2.0 :: Dynamically Load Jpgs Randomly In FLA?

Sep 25, 2003

I wont to dynamically load jpgs randomly in my FLA.

View 5 Replies

ActionScript 2.0 :: Loading Multiple Jpgs Dynamically?

Oct 18, 2003

loding jpegs dynamically. My question is can you alter the script, and with the click of the same button load next jpg, then next etc?

View 4 Replies

ActionScript 2.0 :: Dynamically Creating MCs To Load External JPGs Into

Nov 16, 2004

I'm trying to create a slideshow that loads pics (jpg) from an external folder ("pics/") into dynamically created MCs.What I want is for the script to detect how many pics are in the folder (for future changes), create as many instances of the MC, and load the pics into each one. The MCs will need to take the W and H of the pics, and line up next to each other. This last part is not as important, I'm just wondering how to determine the number of pics in the folder. Do I need XML or will AS 1.0 or 2.0 do this?

View 1 Replies

ActionScript 2.0 :: Dynamically Creating MCs To Load External JPGs Into?

Nov 16, 2004

I'm trying to create a slideshow that loads pics (jpg) from an external folder ("pics/") into dynamically created MCs.What I want is for the script to detect how many pics are in the folder (for future changes), create as many instances of the MC, and load the pics into each one. The MCs will need to take the W and H of the pics, and line up next to each other.This last part is not as important, I'm just wondering how to determine the number of pics in the folder. Do I need XML or will AS 1.0 or 2.0 do this?

View 1 Replies

ActionScript 2.0 :: Loading Multiple Jpgs Dynamically With LoadMovie And MovieClipLoader

Dec 13, 2005

I'm loading multiple instances of the same jpg dynamically to my swf. It works just fine locally, but when I upload it, it only executes the first loading code it encounters in the timeline. I was doing things fairly complexly with 'for' loops and dynamic name generation and stuff, but I've stripped it down to the basics in an effort to get this to work.

Here's some code:

loadMovie('1.jpg', mc1.empty_mc);
loadMovie('1.jpg', mc2.empty_mc);
mcLoader.loadClip('1.jpg', mc3.empty_mc);
mcLoader.loadClip('1.jpg', mc4.empty_mc);
mcLoader.loadClip('1.jpg', mc5.empty_mc);

as you can see, I'm using two different methods of loading the jpgs, just in an effort to pin down exactly what is going on. Locally, they all load fine. When I upload to the server, only the first instance of the loading code is run (so mc1 will get its jpg, but the rest won't). I've tried to swap the order, place the loading code in different areas, try to load different jpgs into each empty mc, but nothing works except that first instance flash gets to in the timeline.

The swf and jpgs are all in the same folder, both locally and on the server. The server the swf is hosted on is Windows 2003 box if that matters. I tried uploading it to a different windows box and got the same problem.

View 2 Replies

ActionScript 3.0 :: Make Smooth/antialias Loaded Swf?

Jun 20, 2011

As far as I know, smoothing of loaded swf file is not possible?To make loaded bitmap smooth/antialias I use:

ActionScript Code:
_bmp = _adImage.content as Bitmap;
_bitmapNew = new Bitmap(_bmp.bitmapData, "auto", true);
_image.unit.addChild(_bitmapNew);

That of course, works fine.But is there a way to the the similar for loaded swf file?

View 5 Replies

ActionScript 2.0 :: Wanting A Smooth Transition Between Loaded Movie Clips?

Jun 1, 2006

I have approximately five external movies I am loading into one main movie. I load the movies using various buttons in the main movie.

My issue is this...I press a button and the first movie loads and then runs to the end of the timeline. Works great.When a push a second button the second movie loads and runs to the end of the timeline. Works great also.but I hate how there is a blank space between the movies.

All the movies start with a white stage and end with full graphics. When I press a second button, the movie on the stage disappears immediately and I am left with a white stage for a few seconds while the loading movie animates onto the stage.

I want there to be a cross-fade or some effect that allows the loaded movie to remain on the stage while the second movie is loading. Is there a way to make this happen?

I'm including the code I have for loading movies so you can see what I am working with thus far.

Here is the code:

designingbutton.onPress=function(){
loadMovie ("Quest Wall Animation.swf", "_root.content");
}
specifyingbutton.onPress=function(){

[code]....

View 2 Replies

ActionScript 2.0 :: Dynamic Loaded Smooth Bitmaps Lose Transparency

May 26, 2009

I am loading some bitmaps(transparent pngs) that I want to scale and remain smooth. We all know the problems with flash player 8+ anti-aliasing the images and not allowing the images to be forced to be smoothed. I want the png to retain its transparency. I use flash8 actionscript 2.

Here is the PHP Code:
var mclis:Object = new Object();
//An object that listens for a callback notification from the MovieClip Loader event handlers.
mclis.onLoadInit = function(target_mc:MovieClip) {
thisHeightInit = target_mc._height;
thisWidthInit = target_mc._width;
[Code] .....

View 2 Replies

Actionscript 3 :: Load Some Images Through XML And Attach Into Dynamically Created MovieClips - Make Smooth Moving ?

Nov 9, 2011

I have loaded some images through XML and attached into dynamically created MovieClips named mc0,mc1,mc2...etc.

_loader.removeEventListener(ProgressEvent.PROGRESS, onLoadingAction);
count++;
var img:Bitmap = Bitmap(e.target.content);[code]....

Everthing works fine. But it is shaking so that it was not looking good.How do I achieve smooth movement?

View 2 Replies

ActionScript 2.0 :: Smooth Resize Onclick And Animation To Be Smooth?

Feb 9, 2004

I have a movieclip that I want to be resized when a button is clicked. I want the animation to be smooth as if it had weight though. I read the tutorial on this but I need something slightly different, I would rather it where I can just refer to a function that is set in another movieclip. That way I could easily refer to it again and just set the height, width, and if possible, x, and y.

And my second question, is how to keep the border of my movieclip that is going to be resized the same thickness. I want the inside to be resized but the sides to stay the same width but move to stay on the edge.

View 8 Replies

ActionScript 2.0 :: Dynamically Loaded Out Of XML

May 15, 2007

I've completed all 3 tutorials listed on gotoAndLearn and I've got the following code.[code]So as you know I've got my 10 items dynamically loaded out of XML, as well as the MC Box, which is centered on the stage.My question is, how would I get the carousel to rotate around the centered box. I'm not sure how to adjust the depths to go behind the centered mc. I know [code]is probably where I need to make an adjustment, but I'm lost as far as what to do.

View 2 Replies

ActionScript 3.0 :: TotalFrames Of Dynamically Loaded Swf?

Nov 16, 2009

I've been trying for 2 days now to find the total number of frames of a dynamically loaded .swf.

Here's an example code:

Code:
var loader:Loader = new Loader;
loader.load(new URLRequest("mop.swf"))
master_mc.addChild(loader);

[Code]....

View 3 Replies

Dynamically Loaded Images Are Pixelated?

Aug 8, 2011

I'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);

View 1 Replies

ActionScript 3.0 :: Dynamically Loaded Slideshow?

Oct 2, 2008

I've been charged with the crusade of making a prettydifficult (to me) slideshow. This is what the client wants:1. externally loaded images2. externally loaded text (comments for each image)3. the timeline of the slideshow to be dictated by the numberof externally loaded images.Now, ive made tons of slideshows with 1. and 2. before, butthe request for 3. totally screws me up. I usually have a setamount of images that will be used, and accordingly, set up thetimeline using empty movie clips that use the loadMovie command todynamically grab images from a specified folder. They fade tweenover each other and everyone is happy. However, if I were to make amovie with item 3's parameters, I can't define a predeterminedtimeline. Im sure this can be done with actionscript but I am 100%c

View 1 Replies

ActionScript 3.0 :: Changing A Dynamically Loaded MC

May 31, 2011

I have a TargeMC that i load another .swf file into. is it possible to have a button inside the loaded .swf that changes TargetMC swf file. sence it is dynamically loaded i dont know how to referance it from the loaded movie inside.

View 7 Replies

ActionScript 1/2 :: Dynamically Loaded .jpg Are Pixelated?

Aug 8, 2011

For some reason only some of the .jpgs on my flash site that are being loaded dynamically 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?

On the timeline where the movieclip is located I have the following code:loadMovie("Wave.jpg", _root.image_box_9); On the movieclip itself I have this code in order to create a fade in:
 
onClipEvent(load){this._alpha = 0;speed = 10; // change this to change fade speed}onClipEvent(enterFrame){loaded = this.getBytesLoaded()/this.getBytesTotal();if(loaded == 1){this._alpha += speed;} else {this._alpha = 0;}if(this._alpha >= 100){this._alpha = 100;}}

View 4 Replies

Flex :: Display Dynamically Loaded SVG In It?

Mar 22, 2011

There are any way to display dynamically loaded SVG in FLEX?

View 2 Replies

Scroll Dynamically Loaded Images?

Sep 21, 2007

How would I scroll dynamicall loaded images. I would like to use XML but that not required.

View 0 Replies

ActionScript 3.0 :: Dynamically Loaded A Vide

Oct 8, 2010

I have dynamically loaded a video . I have removed the movieclip containing the video but the video is still playing. How can i remove the video as well?

View 3 Replies

ActionScript 3.0 :: Communicating With Dynamically Loaded MC

Nov 2, 2010

I'm having problems accessing a function that I loaded from a MC I have in my library. Addchild and all that stuff works, I just can't run the function inside these dynamically added movieclips.[code]But the moment I add .myTest(); to them, the one in button clicked works fine, but the other one fails and causes a compilation error.

View 2 Replies

ActionScript 2.0 :: Dynamically Loaded Text - XML?

Oct 1, 2011

So this is my code so far. What I am trying to do is load the attribute of name into separate MC's that are clickable to then once clicked have the MC "txtBox" load what is in the attribute "link".As it stands now the name of the buttons is loading perfectly, but the trace is bringing back an undefined value

Code:
importXML = new XML();
importXML.ignoreWhite = true;
importXML.onLoad = function(success)

[code]....

View 9 Replies







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