Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Tweening Image Once Loaded?


I have lots of images all loaded into my movie into their own dynamical containers. I made a little function that loads the images with parameters (name, position and parent container.)

Anyhow, that all works great, I'd just like a bit more sophistication for how they load in... but I'm not sure how to pass the loader reference to the an 'on complete' function.


Code:
var pictLdr:Loader = new Loader();
...stuff that places the picture correctly........
var faderIner:Tween = new Tween(pictLdr, "alpha", Strong.easeIn, 0, 1, 0.5, true);
That works. (I was surprised too). But the tween starts starts straight away, which seems bad form for those on slower connections.


Code:
pictLdr.contentLoaderInfo.addEventListener(Event.COMPLETE, CompleteLoad);

function CompleteLoad(event:Event):void {
trace("COMPLETECOMPLETECOMPLETE");
trace (event.currentTarget);
var faderIner:Tween = new Tween(event.currentTarget, "alpha", Strong.easeIn, 0, 1, 0.5, true);
}
That doesn't work. I don't know how to send the pictLdr reference to the CompleteLoad function. I've tried adding extra parameters and nesting the function (that actually worked, but I must have had too many pictures loading, because sometimes it would get confused.) How do I reference the loader, or, better, the content it load's parent container?




FlashKit > Flash Help > Actionscript 3.0
Posted on: 04-17-2008, 11:12 PM


View Complete Forum Thread with Replies

Sponsored Links:

Tweening Image Container Mc Resizes Loaded Image.
Hello all.

I am having a problem with an image gallery I am writing. The basic logic is as follows:

*click* button -> Resize image container mc(img_mc) to the dimensions of the new image. This is done by passing the new dimensions as arguments to a function that uses the mx.tween property to tween the container_mc to the new dimensions.

Once the tween is complete, place the image in the container_mc .

the mc's are as follows:
img_mc.container_mc

img_mc: has a graphic with a pseudo drop shadow and on the timeline of img_mc is container_mc used as a landing place for the image.

View the example online. NOTE* you must resize the browser window in order for the site to appear properly.. I haven't setup the default yet)

Any help would be greatly appreciated.

View Replies !    View Related
Loaded External Image Question: Use Default Image If Loaded Image Not Found?
Hello,

I use the following code to load an external logo into a Flash Movie.

Quote:




var myRequest:URLRequest=new URLRequest(logoPath);
var loader:Loader = new Loader();
loader.load(myRequest);
holder_mc.addChild(loader);




What if the logo file is not find? I wish that if the logo is not found, another default logo will be used, i.e.

if (logoPath is here) {
var myRequest:URLRequest=new URLRequest(logoPath);
} else (logoPath is not here) {
var myRequest:URLRequest=new URLRequest("defaultlogo.png");
}

How can I do that?

Thanks and best regards

Alex

View Replies !    View Related
Tweening Loaded Swf
I loaded an external movie using the loadmovie action. Now I want to make this external swf appear to slide up from the bottom of the page. I looked up the post which mentioned that I could load the movie in a blank mc and then tween it. But I could not do it.

I know this is stupid but I must be missing something. Please please help.

Thanks a lot.

Shefali

View Replies !    View Related
Tweening A Swf Loaded In Another Swf
Is it possible to tween an swf file thats loaded in an existing swf? I just want it to slide in from the side on load and slide back out before unloading but just can't figure it out.

View Replies !    View Related
Tweening Of Loaded Pictures
Hi everyone!

I've stuck on the following task: I'm trying to move images in a movie which are loaded from external source.

I've found a tutorial on this site which says how to move movieClips: http://www.actionscripts.org/tutoria...ng/index.shtml

But it doesn't work if I load an image to created clip. The code looks like this:


PHP Code:



createEmptyMovieClip("image", 0);
loadMovie("images/flash_image.jpg", image);
with(image){
        _y = 0;
    _x = 0;
}
var currentFrame = 0;
image.onEnterFrame = function(){
        currentFrame++;
        this._x  = currentFrame * 11;
        if (currentFrame>50) delete this.onEnterFrame;





As soon as I get rid of "loadMovie("images/flash_image.jpg", image);" and add


PHP Code:



lineStyle(40, 0xFF0000);
lineTo(.5, 0); 




it works.

Does anybody know how to solve this problem?

View Replies !    View Related
Alpha (tweening) With AS On External Loaded Jpg
I've been trying to do a alpha tweening on an externally loaded jpg but with no luck. Anyone know a way to accomplish it?

on (release) {
_root.loadjpg("holder","http://venice.gamer.net.nz/blackwhite/images/100-0001_IMG.jpg", 1, 1, 1);
}

I tried putting a for loop on the above code to tween the alpha but I think it's doing it too fast so the output is always _alpha is = 100. I thought of using a time interval too but I don't know what command I can use to do it.
My idea: set a time interval, maybe 0.2s and set it to increment the alpha settings by 20.

View Replies !    View Related
Tweening Text Field After Loaded
Hi guys,
I have a crucial doubt regarding using Tween class in actionscript to tween a text filed, as well created by actionscript.
The problem is: I need to load my text field first through Load Vars and after that I wished to tween it, making it fade in !
Does anybody know something about that, because I already tried to script my tween function inside my onData of loadVars, but did not work !

Guys, Help me !

View Replies !    View Related
Tweening Text Field After Loaded
I have a crucial doubt regarding using Tween class in actionscript to tween a text filed, as well created by actionscript.

The problem is: I need to load my text field first through Load Vars and after that I wished to tween it, making it fade in !

Does anybody know something about that, because I already tried to script my tween function inside my onData of loadVars, but did not work !

View Replies !    View Related
Help On Image Tweening
hi!

can anyone tell me how to do an image tweening in flash? like e.g. www.soloflow.com (click on "Tunisia"), or just a simply tweening of 2 images, like one of them 'fades' into the other one.

thx for help in advance!

d33p

View Replies !    View Related
Image Tweening
Last edited by UrbanJ : 2004-03-11 at 08:57.
























Hi

I was looking at the whoswestudio portfolio and i came across this site http://www.kimpire.com/ and all i can say is WOW
i have never seen the rollover effect like the one on the main navaigation!!! and alought it is a bit buggy, i really like it, and want to no how they did it? i know now that whoswe are masters of 3d programs and my skills in 3d are limited,

does any1 no how they did it? and tutorials, resources that could help me!! any information would be vital no matter how smally ou think it may be? thanks in advanced!!!!


//Ben

P.S. - sorry mods if i posted in wrong forum!!!

View Replies !    View Related
Tweening In/out Dinamically Loaded Sections Of Site.
hi everyone:

i am making a site that consists of 4 sections, each of these is a separate SWF file, each of these swf files contains buttons that can load every one of the other sections, that in itself is not the problem, i can load the sections easily, what i am having trouble is with how to accomplish the tween i want to do to "slide in" a section once its finished loading, the section that contains the button which loaded the selected section should "slide out".


how can i resolve this ?

the thing is that the button that calls the load is located inside the swf, is not a button located on the "top" as it were.
i may not be making any sense here, which is why i need help.

should there be a class that manages all of the loading, tweening, etc.
and if so, how can i use it with a button from within each swf to afect some other swf previously loaded in ??

Thanks for your time

View Replies !    View Related
Tweening A Dynamic JPG Image
Hi, not sure if this is possible but thought I'd ask anyway...

I have a load of thumbnail images I'd like to import into Flash (I'm using MX, but can use MX 2004 if needed) at runtime. I have a container mc that I'm doing an 'attachMovie' to (the movie is linked) x times, depending on how many JPG images there are to import. This was all quite easy, the problem occured when I wanted a rollover for each instantiated container movie. I'd like to be able to rollover the thumbnail and it slightlty enlarges to make it clear to the user that it is highlighted, and then shrink back to it's normal size once rolled off. I have a white square background (that the image sits on) that does tween correctly, but the image stays its same shape. Any ideas please?

Thanks for any help,
Richard.

View Replies !    View Related
Image Flickering When Tweening
Hello and thanks for your time,

Does anybody know how to get a linear movement
tweening on a JPG without the image flickering?

The one I made kinda' flickers and distortions the
images as they scroll, and I'd like them to be more
fluent and smooth. Check them out if you can
in the top right banner:

NOTE: the second image is the worst
http://www.e-vendorslist.com/host.html

I'm using a 25 FPS rate, and if I raise it,and add more frames
to keep it slow, it's a little bit better, but the images keep
distorting, like if there where hot water between the image
and your eye sight.

Please help !, thanks!
-Waltman

View Replies !    View Related
Image Prob While Tweening
hiya!
i have a problem with the final outcome of my tween
i used a mask effect for my image, and it all looks well in the stage
but when i test the movie, the image seems to be movie slightly too, can aniwan tell me the reason?
i have attached the swf for easy reference
i'm not sure if it's just me who have this prob, when i view in fullscreen mode, i dun see this problem too, only when in 100% mode
thanx in advance

link

View Replies !    View Related
Image Distortion While Tweening
Hi, Its is a quite irritating problem i face when tweening images. Just when the tweening gets over for about a frame or so the image looks distorted before returning to normal. There is no sizing issues in the tween(fla). I even tried placing images at 0 axis both in graphic clips as well as the graphic clips in the actual animation(tweening). Can anybody help

View Replies !    View Related
Tweening Image Border
Hello,

I am trying to make one of those Resizing borders for an image gallery ...

Is there an Actionscript 2.0 function that whilst Loading in an external jpeg, Flash can be told the dimensions of the picture it is currently loading > before it has loaded it fully. .. ?

Thus, preparing the size of the border, whilst the image is loading.

Or, does it have to initiate that once the jpeg has loaded 100% ...


A lot of words for one question ...

Thanks if there is some help out there

View Replies !    View Related
Image Prob While Tweening
hiya!
i have a problem with the final outcome of my tween
i used a mask effect for my image, and it all looks well in the stage
but when i test the movie, the image seems to be movie slightly too, can aniwan tell me the reason?
i have attached the swf for easy reference
i'm not sure if it's just me who have this prob, when i view in fullscreen mode, i dun see this problem too, only when in 100% mode
thanx in advance

link

View Replies !    View Related
Image Distortion While Tweening
Hi, Its is a quite irritating problem i face when tweening images. Just when the tweening gets over for about a frame or so the image looks distorted before returning to normal. There is no sizing issues in the tween(fla). I even tried placing images at 0 axis both in graphic clips as well as the graphic clips in the actual animation(tweening). Can anybody help

View Replies !    View Related
Smooth Tweening Scale Property On Loaded External Swf
Hello gents!

I had a problem with dynamically loaded images when scaling them (like zooming in). The problem was, my image would get messy when tweening it (or shall we say scaling it).
I solved my problem with Bitmap class.
http://livedocs.adobe.com/flash/9.0/...ay/Bitmap.html
(look at "Constructor detail" images)

Now I would like to do the same smoothing technique with swf not bitmap.
(I mean smoothly scale swf)

Does anyone has a solution?

If you don't understand some part of my question, please say.

Regards,
Vjeko

View Replies !    View Related
Image Tweening And Sliders Project
Apols for being a bit dense but trying to do the following:
Want a create a flash simulation by using bitmapped grayscale image with ~6 objects that can have their intensity adjusted individually or in combination by using 4 sliders.

The sliders mimic changes in conditions from the +/- extremes and the norm. The - should have the intensities of all objects at zero. The norm should only reveal one object and when some of the sliders are at max all six objects should have maximum intensities.

I figure this would use tweening with ~6 or more images. Along with something like Colour_Slider found her on this site at http://www.flashkit.com/movies/Inter...v-60/index.php

Any suggestions greatly appreciated.

View Replies !    View Related
Enlarge An Image As A Tweening Effect
I want to design a tween effect which takes an image and enlarges it during the tweening process. I tried setting up the tween as both a motion and a shape tween, but I do not get the desired effect. Am I doing something wrong with the formatting of the image files, or do I need to do the tweening differently?

View Replies !    View Related
Looping Tweening Image(symbol)
I have a text (my company name) and I want it to start from the left and move to the right. I have set it up so it moves from left to right with only one problem. It keeps looping. I tried to change the tweening options so it only plays a single time but the option resets back to loop. The only way I could get around this was to change the text from a graphic to a movie clip in the instance behaviour which worked, it stopped looping, but when I preview in IE 6.0 it still loops constantly.

what gives?

View Replies !    View Related
[MX04] Shape Tweening An Image
Can anyone help/point in the right direction with this?

As a newbie, I've worked out how to do a shape tween, (fairly simple I know)

What I want to do now is a little more *****ious, (This is my first post, why can't I put in the word a-m-b-i-t-i-o-u-s, I did type it, not the sweary asterisk) I want a shape tween on an image(a .small .JPG).
I want it to start at 100 x 200 pixels, then I want it to grow to 200 x 400 pixels.

I have managed this after a fashion, I used 2 images, one twice the size of the other, not great! I cannot seem to control the order that the animation runs, I want the image to start at default size, then 'morph' to double size, then shrink back to default size.

Does n.e wun have any ideas, know where to point me for more reading?

Any suggestions (nearly any!) gratefully accepted.

Reptile.

View Replies !    View Related
Help With Shape Tweening Image Frames
Hello All,

I am looking to create a slideshow with different shaped images and I wanted to create a boarder around the image which will expand and contract around any image even if it is out of sequence. I can't find an example online at the minute eventhough I have seen the effect several times but this link has a similar effect when looking at the photos...

http://www.vikasshah.co.uk/

The bottom of the page moves up and down to accomodate the shape of the images. The difference is I want the whole image to be surrounded and the boarder to change vertically and horizontally.

I hope this is clear. Are there any tutorials I should look at? Is there a specific name for this effect which I could do a google search for a tutorial because I can't seem to find anything.

Thanks for any help in advance.

Moth

View Replies !    View Related
Color Tweening Dynamically Loaded Images Makes Them Jump?
Hi,

Can any one help me out? I'm having major problems color tweening dynamically loaded jpgs in flash. It seems if you color tween a mc that contains an image which has not been broken apart, that any color tween applied to that mc will make it jump. I tried this out and sure enough if I break apart the image inside the mc it works fine.

But this is of course not possible when you are using
my_mc.loadMovie("image.jpg");

Has anyone out there had the same problem, or know of a work around?

It seems to be ok if I publish at low quality but this is not really an option as I have lots of drawing which need to be antialised.

any help would be much appreciated,

Kind Regards,

grandmasterC

View Replies !    View Related
Dynamic Image Tweening And Player Performance
hi everyone..

just wanted peoples thoughts on whether or not dynamically
tweened animation over say 4-5 seconds would speed up the
player rather than slowing it down with traditional image
tweening.

the problem is that i have animation going off under a navigation system.. i am using a movieclip that is fairly long that contains the images (bitmaps) that are being alpha tweened together.. whilst the animation is working it slows down the workings of the navigation system.

i was just wondering that if i used actionscript to tween the images if the performance of the player would be better.

any help you could throw my way would be greatly appreciated....

thanks

View Replies !    View Related
Faking Video With Image Tweening / Morphing ? Timing ?
Hi

Im looking at taking a sequence of pictures of someones head talking and using the tweening , kinda making it look like a morph...as if the person is talking.

the sample i like and im trying to emulate is at http://nikefootball.com/
under the site section "Player Profiles"

What im wondering is what is the right mixture of keyframes and opacity to timing (fps ?) to how many key frames between the pics.....

how i see it unfolding is
showing the pic and fading it out while on the next layer another pic starts at 0% opacity then gradually going to 100% and then back down to 0%.. when it goes down from 100% another pic is going from 0 - 50% - 100%

here is a sample i;ve got up for U.
http://www.humancapitalu.com/flash/n...le_ng_talk.htm
and of course audio would be playing in the backgroung, with some quicktime player controls to pause and play and stop ...

thanks for your help..
Ryan

View Replies !    View Related
Mx2004 Cuts Loaded Image Borders - Image Format Problem?
hi mates

i know i didnt post here quite a long time (wasnt programming quite a long time too), and since i know this forum to be very helpful, i am back with one irritating problem.

i have some jpgs, all contents seem to be ok, and wanna load and rescale them (rescaling would work, thats not the problem). it seems my pictures have some format error, but i cant find it

they dont seem to get displayed completely. or better, their contents dont. that means, the content is displayed in a certain area, but not outside of it, although the image is fully loaded (at least getBytesTotal tells me so). i made a small file to test the picture loading, and it shows the same error as my real clip does.

- no, theres no mask applied
- no, the jpgs are no progressive types
- yes, i tried using baseline optimization, standard baseline, and different compressions.
- yes, when displaying the jpgs with any other tool than
- when inserting one of the pics to the stage in developing and then exporting it being inside the swf, it is displayed correctly
- btw, the pics are quite big (about 3000*2000px/300-700kB) for being able to zoom.

another issue i am noticing is that some areas inside the displayed area of the jpg are not displayed instantly when the jpg is displayed, and fadein (alpha) effects of other clips in front of these areas cause much more cpu load than they should.

anyone ever seen this problem? or anyone having an idea how to solve this one?

thx for reading, greets

self

View Replies !    View Related
Copying Loaded Image Bitmap Data To Another Image Loader
Hi,

I have an app where the user uploads an image into an image loader component. I am trying to figure out how to copy the bitmap data from that loaded image into another image loader component.

Could someone steer me in the right direction? I was looking at bitmap clone and copypixels though haven't figured out how to get this to work yet.

Thanks,

Dan

View Replies !    View Related
Making An Image Gallery Using Actions Script Insted Of Tweening.
How do i o about making a photographic image gallery using action scripting. Can someone point me in the right direction of a good tutorial or explain the principle.

thanks!

View Replies !    View Related
Image Scroller- Loaded Image Keeps On Scrolling
Hello. I am working on a client image scroller for my compaines website. What I want to do is once the user click on a specific client logo, a image pops up inside a " holder" MC. But when this happens, the image that appears scrolls along with the scroller nav bar.

My question: is there a way to make the image linked to button to stop scrolling?

Please see the attachment and click on the " DELL" button to see what I am talking about.

TIA

View Replies !    View Related
Xml Loaded Image On Rollover Loads Another Image
I have a xml flash gallery, that has thumbnails when clicked loads the image, now when a user rolls onto that loaded image I want it to load another image/swf from specified in the xml file. Anyone know how I can do this?

View Replies !    View Related
When Image Loaded Load Next Movieclip's Image?
i have a series of duplicated MCs, each with an image, i want them to load 1 image at a time, and when that is 100% loaded tell the next movieclip to load its images and so on.
And when the final MC has completed loading call an action.

after the 1st mc's image has loaded though, all the others seem to start?!

mc action,

ActionScript Code:
onClipEvent (enterFrame) {
    loaded = this.getBytesLoaded()/this.getBytesTotal()*100;
    loadedb = this.getBytesLoaded()/this.getBytesTotal()*100;
    _parent.percent = Math.floor(loaded) add "%";
    //
    //
    if (loadedb<99 and loadedb>80 or loadedb === 100 and _parent.xxx eq "go") {
        _parent._parent["icon" add _parent.k].load_image();
        _parent.xxx = "done";
        _root.lastv.scrollerz.scrollbar_mcy.reset();
    }
    if (_parent.i == fff and _parent.xxx eq "done") {
        _parent.xxx = "complete";
        _root.lastv.scrollerz.scrollbar_mcy.reset();
        if (loaded == 100) {
            trace(this+"· !¡! ·"+loaded);
            _root.lastv.scrollerz.scrollbar_mcy.reset();
        }
    }
}


load image action,

PHP Code:



function load_image() {
    this._visible = 1;
    ladeBild(image_main, image_path add file_name);
    per._visible = 1;
    xxx = "go";


View Replies !    View Related
How Do I Get A Loaded Image To Change Size Into The Next Image
ok, that probably sounded a bit wierd here's a link http://www.ronyshram.com/ what I want to do is something I see a lot but don't understand, you click a thumbnail and an image opens, you click another thumbnail and the image fades but the shape/frame resizes or changes from landscape to portrait to fit the next image when it appears.
any tips or AS ideas would be of great help please.

View Replies !    View Related
Tweening Jpegs - Image Appears To Become All "jumpy"?
Hi,

I am trying to tween a jpeg over a long period of frames to get a slow scrolling effect. When I do this, the image doesn't move smoothly across but rather seems to "flicker" or "jump" as it moves.

Is there any way to get a smoother effect??, is script the only way


Thanks for the help

Chris

View Replies !    View Related
Web Image Not Loaded
Once again I 'm facing the same unsolved problem.

I want to load external images into my movie. I have two images (Photoshop), the first (img_Sas.jpg) is saved using the Save as... option (quality 2), the second (img_Sweb.jpg) is saved using the Save for web... option (quality 40).

The first is loading into the target but the second isn't . Anyone who had the same problem?
Attached file for anyone who wants to test it.

THX

View Replies !    View Related
How To Tell If An Image Has Loaded?
guys, how do you tell if an image has loaded into an MC or not.
I'm using:

img_loader.loadMovie("http://www.chewman.net/xml/_img/tn_img1.jpg");

then after wards, I'd like to say after the image has loaded, go to another function.

View Replies !    View Related
[F8] Hue Of Loaded Image
Hey, i'm designing a new website for myself, and it revolves around the theme of "cubes". In a 3D program I made some cubes with light shining through them, and was playing with it in photoshop, and was messing with the Hue scroller. If I slowly move it back and forth, it looks like there is a flickering changing color flame behind the cubes. So my question is, do I have to make 100 different pictures then merge it into a .gif, or is there a way to constantly change the hue back and forth to give a pulsing/multicolor effect with ActionScript? Thanks in advance!

View Replies !    View Related
Possible To Tell When A Certain Image Has Loaded?
When building a simple preloader, is it possible to tell when a certain image in the movie has loaded instead of just the entire movie?

View Replies !    View Related
Indicate What Image Is Loaded - XML
Hello,

I have made an image library based on an xml file with a row of clickable numbers where a new image can be loaded. Now when I click a number and the image loads I want to indicate the image loaded by drawing a square around the number.

This is the function that builds the thumbnails based on the nav_mc movieclip and allocating variables from the xml file to the instance of the mc:

function buildThumbs() {
nav_mc._visible = false;
aantal = images_xml.firstChild.childNodes.length ;
picHolder = images_xml.firstChild.childNodes[i];
originx = mc.nav_mc._x + 10;
for (i=0; i<aantal; i++) {
picHolder = images_xml.firstChild.childNodes[i];
horspace = 150 + (i*30);
duplicateMovieClip("nav_mc", "nav"+i, i);
//m = this["nav"+i];
this["nav"+i].pad = picHolder.attributes.jpegURL;
this["nav"+i].tekst = picHolder.firstChild.nodeValue;
this["nav"+i]._x = originx + horspace;
this["nav"+i].nummer = i+1;
}
}

Also in the root I have a variable that keeps the record of which image is loaded:

geladen = 0 ;

In the nav_mc movieclip this is the as, making the frame (kader in dutch) invisible and then making it visible only when the number variable in this instance is equal to the image loaded:

this.kader._visible = false ;
this.nummer.autoSize = true;

if (_parent.geladen == nummer) {
this.kader._visible = true ;
}
else {
this.kader._visible = false ;
}

Now, this doesn't happen and the frame is never shown and I don't have any idea why this is so. Do I have to add a listener? Did I do something wrong?

I someone knows please let me know?

Thanks and kind regards!

Tim

View Replies !    View Related
How To Know A Loaded Image Height ?
Hi !!
i ve a little Pb :

i am doing a loadMovie ...

parag.image.loadMovie("imageName.jpg");

... and i need to know the "new" height and width image,
(it means heigth and width of "imageName.jpg" ..)


how can i do, Pleaassse tell me !!!

Thx

View Replies !    View Related
Centering A Loaded Image.
My movie clip loads an external image to the screen. The image is loaded onto a movie clip located in the upper left corner of the screen xy cordinates 0,0.

code:
_root.image.loadMovie("imageName");


Now I want to center the image to the middle of the screen.

code:
_root.image._x = ( 400 - (_root.image.width/2) )


This should center the image horizontally considering that the screen is 800 pixels wide. It does not seem to work for some reason. Could anyone help?

View Replies !    View Related
How To Detect If A Image Is Loaded
i need to know how to be sure that flash loaded the image in the movieclip by loadmovielip()

if it is loaded, it stop and shows the image
but if the image isn`t still loaded it goes to a frame with " loading" untill it is loaded.

how can i know if the image is loaded into the mc?

View Replies !    View Related
How Reuse The Same Image Loaded?
I'm making a banner with a mask fx and the images will be loaded dynamicaly. I did this:

Put a MovieClip in my stage to load the image and them duplicate this to make the mask fx, well, in this step the image is loaded again.

How i can reuse the same image loaded in diferent movieclips?

Thanks!

View Replies !    View Related
Image Loaded From Link (how?)
hello,
im new in actionscripting so please bear me if this is stupid..

i want to load an image from a link to a specific position on the movie.. and i want to do it like adding variables in html.. (src="moviename.swf?value=link_to_image") because im having a dynamically created page..

note: all images are same size so that wont be a problem

any suggestions or help are appreciated..
thanks
Tarek

View Replies !    View Related
MC Size = Image Loaded ...how Do They Do It?
Frames that resize depending on what size of image?????????????
How can you do this.... does anyone have any ideas on where to point me...

Example:
http://www.loubopp.com/

View Replies !    View Related
How Can I Stop An Image Being Loaded?
(I'm posting this message again... something weird happedn to the last post and no message was stored in the post.)

I've got a movie with several images.
I want to have a version without the images.
All my images are stored within my Flash file in movies.

I want to have a version where the images don't get compiled (and therefore making my resultant SWF file smaller).

Is there anyway I can do this in Actionscript?

The only other way is to manualy delete the images before compiling?

Any help would be appreciated.

Thanks.


OM

View Replies !    View Related
Find Out If An Image Has Loaded?
Hi all,

I'm loading an image into my movie clip, dynamically, using this code:

loadMovie("image1.jpg",1);

and I want to find a way to test/find out if the image has loaded, so I can say:

"If file loaded, gotoAnyPlay(2);"

Can anybody tell me how I can do that?

Cheers.

View Replies !    View Related
Targeting Loaded Image
OK, so I'm loading an external .jpg into a MC( _root.image_target ) and then positioning it based on the size of the imported image. Here's what I've got so far

loadMovie("Autos/JPGs/Cl1997-00.sl.jpg", "_root.image_target");
_root.image_target._x = 395 - (_root.image_target._width)/2;
_root.image_target._y = 142.5 - (_root.image_target._height)/2;

Different colored buttons load different images, but when I load the first, it's top left corner goes to the registration point of the targeted clip (like it should) and then stays there, ignoring the next two lines telling it to center in the movie. The next time I press a button, the same one or another, it positions correctly. Any ideas on how to load the image and immediately move it, all in the same stroke. Thanks for all your continued help

-M

View Replies !    View Related
Masking A Loaded Image
Hey,

im trying to mask each image ive loaded through this function, ive got the mask to load it, but cant get it to, well mask hehe... any ideas?


PHP Code:



function loadImages(blankMC:MovieClip, newMask:MovieClip, amount:Number):Void {
for (var i = 0; i<amount; i++) {
//Making the BlankMC
var mc:MovieClip = blankMC.createEmptyMovieClip("img_0"+i, i);
//Looking for the images0
var img:String = "images/0"+i+".jpg";
//Loading the images into the MC
var makeMask:MovieClip = newMask.createEmptyMovieClip("mask_0"+i, i);

makeMask.attachMovie("mask", "maskee", 5)
mask_03.setMask(img_03)

mc.loadMovie(img);

}
}
//Images are loaded
loadImages(img_hold, mask_hold, 4);


stop();

View Replies !    View Related
Get Loaded Image Size
this should be simple but it's already 5 am..

if i do:
placer.loadMovie(image);

how do i do:

getLoadedImageWidth(image);
getLoadedImageHeight(image);

thanks...

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved