This content has been marked as final. Show 2 replies
It is not clear if you are loading an external movie and then in the
external movie loading a jpg. If you are you have timing problem in that the
script is not syncronous and may execute before the swf is completely
You are better off with MovieClipLoader if you need to know when the swf is
loaded so then you can perform methods on the loaded swf.
Or you can insert the code for loading the image in each external swf.
I believe fires everytime bytes arrive which could be many times depending
on if you are in test mode or live.
add operator is deprecated. Use + instead.
3. If you are creating a mission critical app your code reveals you need to
update your AS skills as you are using older techniques.
May many happy bits flow your way!
"UK Alex" <firstname.lastname@example.org> wrote in message
I'm new here! I wondered if anyone could explain to me what I'm doing wrong
As part of a Flash-based campus mapping system, I am trying to create a
Information' box that will display certain information regarding rooms
the campus, based upon data stored in a Microsoft Access database.
The .asp file I am using is working correctly, and my dynamic text boxes
correctly displaying the information as each database record is queried.
However, I am also trying to display an image of the room. The image files
located in the same directory as the .swf, they are non-progressive .jpgs. I
have been trying to use the following code (which works for everything but
// Create a Movie Clip to load images into
strName = Name;
strBuilding = Building;
strType = Type;
strProjector = Projector;
strSeats = Seats;
strRoamNet = RoamNet;
strPosition = "Record " add String(CurrentRecord+1) add " of " add
loadMovie(Name + ".jpg", mcRoomDatabase.MyImagesHolder);
Nothing is loading into the movieclip. If I use the code (for an imaginary
room called Room100)
the image displays perfectly. If I set a new dynamic text box to display
Name + ".jpg"
it displays Room100.jpg, which is the same as what I'm entering when I try
I'm confused as to where I'm going wrong? Sorry for the long post!
Many thanks for reading
Dear Newsgroup User,
Many thanks for your reply.
I took your advice and did some reading in this particular area and made some changes to bring my code up to a more modern standard - everything works perfectly now.
Thanks again for your help.