Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loadMovie problem functionality disabled!?

Status
Not open for further replies.

kate52

MIS
May 14, 2006
2
GB
FLASH 8 PRO
WIN XP PRO

Hi Guys,

I have put together a site in a slightly odd way... using two flash movies... 1 controls another (buttons -> the content window) using HTML to pass 'area' variable to the content window to display relevant part of movie.

e.g:
(<embed width="750" height="328"
src="dlmain.swf?area=services"></p>)

have a look at ...

the problem at the moment is that all though all the 'content' is contained within the same movie, every time it loads with different area variable it reloads the entire content movie as appose to the section it requires in essence making my site 5x bigger than it needs to be!!

I think the problem might be becuz of the '?area=whateva' part... does iexplorer think : different name = different file = new cache file...

the work around I came up with was to load dlnew.swf (the buttons) into the library from within the content movie (dlmain.fla) and have just 1 movie... but alas for some reason the .swf loads into library fine and the eyelid blink works but nothing else i.e no buttons...

does anyone know why this happens or think of a different way of tackling this nightmare...?

any help would be appreciated! :D
Cheers,
Kate
 
There are 4 ways I can think of:

1. Make them in one SWF.
2. Keep two separate SWFs and load one onto another.
3. Use LocalConnection class to control one SWF from another.
4. Use ExternalInterface class and JavaScript to control one SWF from another.

I'd go for option 1 if I were you, as it is the easiest (unless you have a good reason to separate two SWFs.)

Kenneth Kawamoto
 
Hi there,
thanks for response... managed to sort problem by removing the query string and use javascript to load the variables.. only loads .swf once now...

do you know why the setFocus command is so hard to implement..

on the gallery page at the setFocus doesnt go to the username box. and if you press return after password it doesnt go back to name... do you know how I can do this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top