sam928
asked on
how do i externally load images into a container--with auto load , into my flash movie?
hello,
i have a flash gallery, It consists of 16 images which i want to load automatically into their own containers.
Right now i am using a loader component, but it seems that since i have 16 instances of loader components on the stage it is not correctly working. (only in firefox is works.)
---I have the loader parameters set to auto load 'on' (that is fine) ---> the scaleContent in the parameters is set to 'true' ---this basically resizes the image to the size of the loader on the stage.. (this works fine BUT only in firefox) when i use test on IE the scaleContent does not work,, --->> the images load as the true size which is bigger than the loader component size.
And i cannot resize the thumbs for other reasons,. That is why i need the scaleContent to work so that the image being loaded will resize to the Loader component size.
--------------
Thus, this is why i would like to try a movie clip container as an alternative, thinking that it will not have the same problem as the 16 instances of the Loader Component.
---------
so, my question is how do i create these containers so that they are
1. auto load the image
2. scaleContent like the Loader Component.
any ideas?
thank you.
cheers!
i have a flash gallery, It consists of 16 images which i want to load automatically into their own containers.
Right now i am using a loader component, but it seems that since i have 16 instances of loader components on the stage it is not correctly working. (only in firefox is works.)
---I have the loader parameters set to auto load 'on' (that is fine) ---> the scaleContent in the parameters is set to 'true' ---this basically resizes the image to the size of the loader on the stage.. (this works fine BUT only in firefox) when i use test on IE the scaleContent does not work,, --->> the images load as the true size which is bigger than the loader component size.
And i cannot resize the thumbs for other reasons,. That is why i need the scaleContent to work so that the image being loaded will resize to the Loader component size.
--------------
Thus, this is why i would like to try a movie clip container as an alternative, thinking that it will not have the same problem as the 16 instances of the Loader Component.
---------
so, my question is how do i create these containers so that they are
1. auto load the image
2. scaleContent like the Loader Component.
any ideas?
thank you.
cheers!
ASKER
hello,
this is AS2,
I do have unique instance names for each loader.
Please visit the gallery, and you can see the difference in each browser..
www.morningstarhomes.org
At least on my computer , it works fine in firefox but when i open the site in IE this is when the images that load in the loaders are not working with the scaleContent setting.
this is AS2,
I do have unique instance names for each loader.
Please visit the gallery, and you can see the difference in each browser..
www.morningstarhomes.org
At least on my computer , it works fine in firefox but when i open the site in IE this is when the images that load in the loaders are not working with the scaleContent setting.
ASKER
hello BlueGenie,
with a movie clip container, how would i set the scaleContent so that the image will resize according to the container?
Another words, if i have a 1024x768 image, and i want it to be loaded into a thumb container, say 300x200 or whatever the proportionate is,,, what is the AS that will resize this down, (just like the 'scaleContent' works with the loader in the parameters)?
i cant find anything on this anywhere!
with a movie clip container, how would i set the scaleContent so that the image will resize according to the container?
Another words, if i have a 1024x768 image, and i want it to be loaded into a thumb container, say 300x200 or whatever the proportionate is,,, what is the AS that will resize this down, (just like the 'scaleContent' works with the loader in the parameters)?
i cant find anything on this anywhere!
when u say thumb container . is that just a movieclip.
can u provide a sample of how you would load an image into that container?
as to why that thing doesn't work in IE, no idea.
can u provide a sample of how you would load an image into that container?
as to why that thing doesn't work in IE, no idea.
ASKER
hello blue,
as of right now, i am using the loader component to load the thumbs in the gallery, (which contain 16 instances of the loader for 16 different thumbnails)
I am using a file uploader to upload images into a folder on the server The Loader component in flash is pointing towards each thumb in this directory.
----------
Inside of the parameters of each Loader component, it is set to the following.
AutoLoad: true
Path: pics/pic1.jpg (example)
scaleContent: true
------------------------
This is it. and it doesnt work in IE.
----------------
So this is why i ask if there is an alternative to load to load the thumbs into movie clip container. But I would need the scaleContent feature to work.
-------------------------
***so my revised question is:
How do I create a movie clip container that will resize an image automatically? (The same way that the scaleContent feature works with the Loader Component.)
-------------------------- --
I am surprised nobody else knows what i am talking about. thank you.
as of right now, i am using the loader component to load the thumbs in the gallery, (which contain 16 instances of the loader for 16 different thumbnails)
I am using a file uploader to upload images into a folder on the server The Loader component in flash is pointing towards each thumb in this directory.
----------
Inside of the parameters of each Loader component, it is set to the following.
AutoLoad: true
Path: pics/pic1.jpg (example)
scaleContent: true
------------------------
This is it. and it doesnt work in IE.
----------------
So this is why i ask if there is an alternative to load to load the thumbs into movie clip container. But I would need the scaleContent feature to work.
-------------------------
***so my revised question is:
How do I create a movie clip container that will resize an image automatically? (The same way that the scaleContent feature works with the Loader Component.)
--------------------------
I am surprised nobody else knows what i am talking about. thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
YOUUUUUUU are a genius...lol
and whoever this guy is that figured this out is a super genius... lol
much thank you... at first i didnt understand it.. but only thing that needed to be done was paste the code that was given on the first frame of all swf's that has a loader.
thank you ..ty... God Bless.
and whoever this guy is that figured this out is a super genius... lol
much thank you... at first i didnt understand it.. but only thing that needed to be done was paste the code that was given on the first frame of all swf's that has a loader.
thank you ..ty... God Bless.
ASKER
God Blesssssss..lol
there should be no reason why the Loadre instance doesn't work as long as they have unique names.
in terms of "auto load" - you can do it in a for loop.