Preload a load movie
Hello,
Basically I am creating a small image gallery which allows
the user to flick through images.
The images i have are orientated in different ways, some are
landscape and some are portrait. Some are larger or smaller than
others as well. Because of the differences in the size and layout i
am wanting to be able to handle each size differently, depending on
its "_height" and "_width" properties.
At the moment when i detect the height or width properties of
the image_mc movieclip using either:
trace(image_mc._height);
or
trace(image_mc._width);
I am not getting any properties for the first image and when
the second image loads the properties from the first image are fed
back to me.
I understand that the properties are probably not going to be
available as the code moves on quicker than the image loads.
What i am wondering is, is there a way of preloading an image
into a movie clip using the loadMovie function and then making the
code hang up until the image has loaded into the movie clip which i
have named "image_mc"? so that i can get the height and width
properties, so i can position and display the currently loaded
image correctly.
If this cannot be done with loadMovie, would it be possible
for you to suggest a better alternative for me please?
There is only one thing i need to keep. the images must be
loaded from an external file.
Thanks, i have attached my current code, its very basic but
it might help you understand what i have tried to explain.
thank you and any help will be greatly appreciated
thank you
Lee
PS. I am using AS2.0
you can use listeners instead. For example:
Similar Messages
-
Hi.
I have a preloader on the first frame of my movie timeline.
When i go to 'test scene', the preloader works and moves to the
next frame to play the MC. When i go to 'test movie' the preloader
sticks after all bytes have loaded. It does not move on to the 2nd
frame.
The same thing is happening when its loaded on the web, it
sticks on the preloader but if you refresh the browser, the
preloader moves onto the next frame as it should.
Something weird is happening here and i need to know what i
have done wrong.
Help please.
Thanksmfos wrote:
> Hi.
> I have a preloader on the first frame of my movie
timeline. When i go to 'test
> scene', the preloader works and moves to the next frame
to play the MC. When i
> go to 'test movie' the preloader sticks after all bytes
have loaded. It does
> not move on to the 2nd frame.
> The same thing is happening when its loaded on the web,
it sticks on the
> preloader but if you refresh the browser, the preloader
moves onto the next
> frame as it should.
> Something weird is happening here and i need to know
what i have done wrong.
> Help please.
the preloader is incorrect but we can't say anything based on
"does not work"
description.
Copy paste your exact code or upload the problematic file for
us to check.
Best Regards
Urami
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Preloader loads movie in the middle
Preloader works, although my music from the loading SWF file
begins playing right away during the preloading phase. But when the
movie does begin playing, it starts in the middle somewhere.
(almost as if it is trying to catch up to where the music is at?)
Sound event is set at Start and to Loop in frame 11 of the movie.
http://welcome.wisnet.com/strukel/www/senior_gallery.iml
You'll only see it happen the first time, after that the file
is cached and it will play from the beginning like it's supposed
to. Any suggestions? thanks, JulieJulie,
It's hard to tell exactly what the issue is without seeing
the fla, but do you have the preloader on the same frame as the
actionScript you use to pull in the music? I would have frame 1
have the preloader. Then have the actionScript in the preloader say
to move to frame 2 (which holds your music and images) after it's
done. If it is built like this, then more detail is needed.
Also, the preload time is extremely long. Have you considered
running those photos through Photoshop and save for the web? You
can knock down the file size quite a bit that way. -
Remove loaded movie after new loadMovie has been loaded
i need to unload a movie once the new loadMovie is fully
loaded because once i click on my button to do so, my current
loaded movie goes away & the screen is white until the new
loaded movie is loaded. (i hope that made sense)well I've done it a few ways successfully.
The most recent, I dynamically create new movie clips.
see ---
http://www.13studios.com/erin
--- Its a figurative painter's portoflio, so while its oil paint it
is perhaps a bit [NSFW].
Anyway, the panning effect kinda killed my normal process, so
when you click a new button, it goes like this...
PSEudoCODE
//tickerVariable is defined on frame 1
holder.create a new movie clip with name "something +
tickerVariable"
play preloader(tickerVariable);
on completion of preloader {
holder[something+(tickerVariable-1)].unloadMovie();
//do anything else you need to do
tickerVariable++
I hope I didn't just make that more confusing. -
Urgent, need to load movie frame, p
I've been caught in this for 2 days, please help, it's been
difficult to get someone to answer my threads... Thanks
I have a preloader movie that loads a movie called
rotando6.swf
the problem is that on the main stage I have only a movie
called sphere,
I need the preloader to load rotando6.swf but also to load
frame 2 of the movie sphere...
The preloader movie has this segment of code:
_root.MyExternallyLoadedSWFMovieHolder.gotoAndStop("Play");
stop();
Play is the name of frame 2. The problem is that since Play
frame is inside the sphere movie, the code is not working.
How can I have the above code lode rotando6.swf but also load
the Play frame (frame 2) inside the sphere movie.
I really really need helpwhat's sphere have to do with your target movieclip? what's
frame 2 of whichever movieclip have to do with the frame labelled
"Play"?
if the target movieclip is sphere and frame 2 is labelled
"Play", and you really mean that you want to play frame 2 of
rotando6.swf, you must wait until loading of rotando6.swf is
complete before executing your goto method. -
Here's my problem, I have navigation buttons on the root
timeline that load different swf's into a target movieclip.
Example:
loadMovie("Videos2.swf", Target_mc);
Is there a way I can tell the the loaded movie Videos2.swf to
go to a certain frame and play from the root timeline?
I can adjust all the parameters of Target_mc, _x, _y and
_alpha but Target_mc.gotoAndPlay(50) doesn't work, neither does
Target_mc.play(). Any help would be greatly appreciated.
Thanks in advanceyou must wait until loading is complete (use preloader code
or use the onLoadInit() method of the moviecliploader class
listener) before trying to direct the loaded swf to its frame
50. -
MovieClip Preloader keeps looping movie
MovieClip Preloader keeps looping movie
I made a MovieClip preloader and everything workes fine. The problem is the movie that I am loading keeps looping. Is there any way to stop this from looping? I used Flash CS5, AS2.
Here is the code that I am using:
bar._visible = false;
border._visible = false;
this.createEmptyMovieClip("container", "100");
my_mc = new MovieClipLoader();
preload = new Object();
my_mc.addListener(preload);
preload.onLoadStart = function(targetMC) {
trace("started loading "+targetMC);
container._visible = false;
bar._visible = true;
border._visible = true;
pText._visible = true;
preload.onLoadProgress = function(targetMC, lBytes, tBytes) {
bar._width = (lBytes/tBytes)*100;
pText.text = "% "+Math.round((lBytes/tBytes)*100);
preload.onLoadComplete = function(targetMC) {
container._visible = true;
border._visible = false;
bar._visible = false;
pText._visible = false;
trace(targetMC+" finished");
//default image
my_mc.loadClip("main.swf", "container");Thank you for responding
The stop action stopped the movieclip preloader from looping the movie, but now it shows a black screen at the end instead of the last frame of the movie. -
Fl: hacer load movie entre dos layers...
Éste es un mensaje de varias partes en formato MIME.
------=_NextPart_000_0042_01C8F1D8.FA4D9EC0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
hola muchachos,
Necesito cargar un swf con load movie pero tengo que
colocarla en un =
level que est=E9 arriba del fondo pero abajo del layer 2...
=BFtienen alguna idea sencilla para hacerlo?
Gracias de antemano!
Ale Photohsop
------=_NextPart_000_0042_01C8F1D8.FA4D9EC0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3Diso-8859-1>
<META content=3D"MSHTML 6.00.6000.16674"
name=3DGENERATOR></HEAD>
<BODY id=3DMailContainerBody=20
style=3D"PADDING-RIGHT: 10px; PADDING-LEFT: 10px;
PADDING-TOP: 15px"=20
bgColor=3D#ffffff leftMargin=3D0 topMargin=3D0
CanvasTabStop=3D"true"=20
name=3D"Compose message area">
<DIV><FONT face=3DArial size=3D2>hola
muchachos,</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2>Necesito cargar un swf con =
load movie=20
pero tengo que colocarla en un level que est=E9 arriba del
fondo pero =
abajo del=20
layer 2...</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>=BFtienen alguna
idea sencilla para=20
hacerlo?</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Gracias de
antemano!</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Ale
Photohsop</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV> </DIV></BODY></HTML>
------=_NextPart_000_0042_01C8F1D8.FA4D9EC0--Éste es un mensaje de varias partes en formato MIME.
------=_NextPart_000_000C_01C8F35D.3FDFF890
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
gracias Alvaro por tu respuesta,
=BFcuando hablas de contenedor te refieres a un MC? Tal vez
sea una =
pavada que pregunte esto, pero el flash no es mi fuerte...
prob=E9 con esta alternativa:
loadMovie("loquesea.swf", "instacia_mc_reemplazable");
y me funcion=F3, pero por alg=FAn motivo los preloads no
cargan bien =
cuando los llamo con el load movie... pero si los veo de
forma directa =
funcionan bien. Que cosa rara...
Saludos,
Ale Photoshop
"=C1lvaro Vidal" <[email protected]> escribi=F3 en
el mensaje de =
noticias:[email protected]...
Puedes crear un contenedor d=F3nde quieras cargar el
contenido y =
cargarlo mediante un simple:
contenedor.loadMovie("loquesea.swf");
Recuerda que no hace falta incorporar un contenedor de
manera =
program=E1tica lo puedes hacer en el dise=F1o directamente
siempre que =
incorpores al conetenedor un nombre de instancia.
Saludos, =C1lvaro.
": : Ale Photoshop : :" <[email protected]> escribi=F3 en
el mensaje =
news:[email protected]...
hola muchachos,
Necesito cargar un swf con load movie pero tengo que
colocarla en =
un level que est=E9 arriba del fondo pero abajo del layer
2...
=BFtienen alguna idea sencilla para hacerlo?
Gracias de antemano!
Ale Photohsop
------=_NextPart_000_000C_01C8F35D.3FDFF890
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3Diso-8859-1>
<META content=3D"MSHTML 6.00.6000.16674"
name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY id=3DMailContainerBody=20
style=3D"PADDING-RIGHT: 10px; PADDING-LEFT: 10px;
PADDING-TOP: 15px"=20
bgColor=3D#ffffff leftMargin=3D0 topMargin=3D0
CanvasTabStop=3D"true"=20
name=3D"Compose message area">
<DIV><FONT face=3DArial size=3D2>gracias Alvaro
por tu =
respuesta,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>=BFcuando hablas
de contenedor te =
refieres a un MC?=20
Tal vez sea una pavada que pregunte esto, pero el flash no es
mi=20
fuerte...</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>prob=E9 con esta
=
alternativa:</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2>loadMovie("loquesea.swf",=20
"instacia_mc_reemplazable");</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>y me funcion=F3,
pero por alg=FAn =
motivo los preloads=20
no cargan bien cuando los llamo con el load movie... pero si
los veo de =
forma=20
directa funcionan bien. Que cosa
rara...</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial
size=3D2>Saludos,</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Ale
Photoshop</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT:
5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"=C1lvaro Vidal" <<A=20
title=3D"mailto:[email protected] CTRL + clic
para seguir el =
v=EDnculo"=20
href=3D"mailto:[email protected]">[email protected]</A>>
=
escribi=F3 en=20
el mensaje de
noticias:[email protected]...</DIV>
<DIV><FONT face=3DArial size=3D2>Puedes crear un
contenedor d=F3nde =
quieras cargar=20
el contenido y cargarlo mediante un
simple:</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial=20
size=3D2>contenedor.loadMovie("loquesea.swf");</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Recuerda que no
hace falta incorporar =
un=20
contenedor de manera program=E1tica lo puedes hacer en el
dise=F1o =
directamente=20
siempre que incorpores al conetenedor un nombre de =
instancia.</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Saludos,
=C1lvaro.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT:
5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>": : Ale Photoshop : :" <<A=20
title=3D"mailto:[email protected] CTRL + clic para
seguir el =
v=EDnculo"=20
href=3D"mailto:[email protected]">[email protected]</A>>
escribi=F3 en =
el mensaje=20
<A=20
=
href=3D"news:[email protected]">news:g6om7b$gl7$1@forums=
.macromedia.com</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>hola
muchachos,</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2>Necesito cargar un swf =
con load=20
movie pero tengo que colocarla en un level que est=E9 arriba
del =
fondo pero=20
abajo del layer 2...</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>=BFtienen
alguna idea sencilla para =
hacerlo?</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Gracias de
antemano!</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Ale
Photohsop</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV> </DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_000C_01C8F35D.3FDFF890-- -
Preloading a sockwave movie over the internet
Hello All!
in flash , you need to script the preloader. How it works in director? Do you need to script it or its automatically preloading with a progress bar?
Thanks a lot
ShayHave a look at the .dir files in your %Adobe Director 11%\Configuration\Publish Templates\Loader Movies\ folder for examples of preloaders.
Essentially they all preloadNetThing a Director movie and monitor progress (byteSoFar/bytesTotal) from a frame (or other regularly timed) event and then gotoNetMovie when complete (netDone = 1, netError = "OK") -
Quick question concerning "load movie"
Hi,
I'm sure this is a dead simple question, but I'm not sure
about syntax. Basically I have several buttons which when pressed
load a new swf into a movie clip _root. I want each different
button to take the viewer to to a different frame in the loaded
movie. So button 2, would open the new swf at frame 1, button 2,
would open the new swf at frame 2, etc.
This is the script I'm using to load the new swf:
on (release) {
_root.bigphoto.loadMovie("big photos.swf");
What should I add to it?
Many thanks."DaveCunningham" <[email protected]> wrote
in message news:e5mo6o$5jl$[email protected]..
> Hi,
>
> I'm sure this is a dead simple question, but I'm not
sure about syntax.
> Basically I have several buttons which when pressed load
a new swf into a movie
> clip _root. I want each different button to take the
viewer to to a different
> frame in the loaded movie. So button 2, would open the
new swf at frame 1,
> button 2, would open the new swf at frame 2, etc.
>
>
> This is the script I'm using to load the new swf:
>
> on (release) {
> _root.bigphoto.loadMovie("big photos.swf");
> }
>
> What should I add to it?
>
> Many thanks.
//****************** main.swf *******************
// button to send two.swf to frame 10
on (release) {
loadMovieNum("two.swf?vars=10",1);
// button to send two.swf to frame 30
on (release) {
loadMovieNum("two.swf?vars=30",1);
//****************** two.swf *******************
// a preloader is required to make sure this movie is fully
loaded before checking the vars value
this.onEnterFrame = function()
var gbt = this.getBytesTotal();
var gbl = this.getBytesLoaded();
if( gbt > 20 && (gbl == gbt))
delete this.onEnterFrame;
gotoAndStop(vars);// jump to the frame number in vars
You can also pass frame labels instead of numbers if you want
to.
tralfaz -
Unable to load movie playlist?
I'm really starting to regret Upgrading to Director 11. I
didn't have any of these issues going from MX to MX 2004. All I'm
trying to do is make a simple projector work on a Mac and it's one
issue after another. Not to mention all this after updating a whole
boat load of Xtras 11 requires.
The new one is this;
Unable to load movie playlist. Does the INI file exsist? It
must contain a section '(Movies)' with an entry
'Movies01=pathname.dir'.
I've already read a couple of other forum post with the same
error message going on with others but can't find certain files
required to make the fix like the 'Projec32.skl',
and I don't know how to read, let alone make an .INI file.
I'll mention I got this error after updating to Shockwave 11
EVEN though I was not publishing a Shockwave movie.
I know I just need to include a certain file on my CD when I
burn one because all works great on the desk top, but I'm throwing
darts trying to figure out what the CD burn is missing.
So to make a long story short does anyone know what I might
be missing?
I'm new to making director movies for the Mac, and even using
a Mac so I might need it spelled out a little more for being a
novice.
Thanks in advance. :o)>
PS I tried making a Mac Projector from my PC with no good
results either.This is a very frustrating problem. I have run into it as well, but can't tell you exactly how I solved it, its been a while since I've seen it. It does have something to do with the length of the path to your projector when its published. I would suggest moving your movie as close as possible to the root of the drive, you may even want to restart to ensure all the internal variables have been reset and then republish the movie.
If you publish the movie from your authoring location and then copy the projector to a cd or the desktop the path length seems to be built into the projector at publishing. So that does not solve the problem. It is fairly easy to get a long path name - c:/mylocaldrive/documents and settings/yourusername/yourprojectsfolder/yourprojectname.dir has a path name length of 100 characters! I realize you are on a mac, but the same rules apply.
I also might be mistaken with the maximum path length. Perhaps its 128 characters?
Has anyone else run into this error?
Mike M -
This message comes up "This computer is already associated with an Apple ID" trying to down load movies of another computer of ICloud how do I get By?
Hi Allan, thanks for that. I've already set up a log in for my wife and that is all working fine. The problem is that when she logs in and opens iTunes and trys to associate her library with her iTunes account she gets the error message "This computer is already associated with another iTunes account". Whilst this is true, the computer is associated with my iTunes account under my separate log in, which should have nothing to do with hers. If she transfers the association to her account it will lock me out of my content on my log in for 90 days - I'm trying to work out how to associate each of the log in accounts with a separate iTunes account so we can access our music independently of one another without locking each other out. Hope that makes sense!
-
HT4352 My apple tv will no longer load movies.
My apple tv will no longer load movies that I have in iTunes. It shows them in the menu, but when I click on them I just get the spinning wheel. Music works fine. Every thing worked fine the day before.
Power cycle the ATV.
Close and relaunch iTunes on the computer or simply reboot the computer. -
After updating my Apple TV, it will no longer load movies from my iTunes library. Music works, but no movies. I've turned this puppy every which way but loose, but no joy. Is there a way to roll back an update?
Greetings,
I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
Good Luck - Cheers,
M. -
Can somebody help me figure this out? So before a road trip I rented a movie on my Ipad mini. The movie fully loaded before I left. It downloaded under wifi. Now that I'm in the car I tried to watch the movie but it isn't working. When I press play an error message pops up saying "could not load movie" can I not watch it with our wifi? What's going on? What can I do to watch the movie?
Having the same problem. Watched 25 minutes of a rental and it stopped with the message"unable to load video"
Using current version IPad mini.
Ios7 is HUGH PIECE OF CRAP!!!!
Maybe you are looking for
-
Function module to get the month name when start date and end date given
Hey Experts, I am creating a employee bonus report. In this report each and every employee's month wise working days have to be calculated and displayed in the report. I need to find a function module which helps me split the given
-
Macbook Pro Vs. Macbook Pro retina display
I'm starting my first year of University this fall and I'm looking to get a new Mac. My old mac laptop has sufficed during high school but I need an upgrade. I've been playing with the idea of getting the new mac with retina display but after looking
-
Inactive status - v$session users list over WEB application
Hi all When user connect through asp or asp.net, we create a connection in the session object. New sid gets created with each session. When user normally logs out the application, his sid gets finished in the v$session users list. But when he dees no
-
Major omission in a standalone package.
I recently read an article with Tom Hogarty, Lightroom product manager. When asked where Lightroom was going, obviously didn't give much away. However he did say maybe a ND filter effect. Well I hope Tom has more in store than that... It would be nic
-
How do i converty tif files to iphoto?
How do I import tiff files into iphoto?