Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: load movie clip madness (Macromedia answer?)
From: Helen Triolo
Date: Thu, 17 Aug 2000 16:34:58 +0100

Till,

I have a longish response to your question, so I'll start with a
question that I hope someone from Macromedia can provide a definitive
answer to, and then explain. The question is:

Can you set up actions within one movieclip, or on the main timeline,
that will reliably check the progress of frames being loaded in another
timeline/movieclip?

The reason for this question is that the problems you related (Till)
remind me of a problem we encountered several months ago when trying to
use the MM Print SDK. In the sdk, code on the main timeline checks for
_framesloaded = _totalframes in a swf (the file with the actual print
content) that's being loaded into level 1 (not an mc, as in your case,
but perhaps the same behavior). The sdk example worked in IE, but
nothing ever printed in Netscape (similar to your problems). Apparently
the condition being checked for was never met. But Mike Weiland
provided a workaround solution that *did* work in Netscape: he took the
code that checks for _framesloaded=_totalframes out of the main timeline
and put it into the swf being loaded instead. I know that's not what
you want to hear, since you're trying to come up with a solution that
doesn't require all those other programmers to have to add something to
their mcs.

The last I heard on this subject was something along the lines of "we're
looking into it" from MM's Matt W. I wonder if there is any definitive
answer now to the question above, both as it relates to swfs being
loaded into mc's and swfs being loaded into levels? (And has MM posted
a print sdk that will work in both IE and Netscape?)

Following is the code from the original sdk and from Mike's fixed
version, fyi:

---original sdk:

frame 2:
Comment: Load Tech Sheet (external .swf file)
Load Movie ("tech_sheet.swf", "tech_sheet")
(note: tech_sheet.fla has no actions, only content to be printed)

frame 3 (label=loop):
Comment: If it's loaded, print it
Comment: If total frames of loaded movie eqauls frames loaded Set
movieloaded = true
If ((tech_sheet:movieloaded=false) and (GetProperty ("tech_sheet",
_framesloaded) = GetProperty ("tech_sheet", _totalframes)))
Set Variable: "movieloaded" = true
Go to and Play ("print")
End If

frame 4:
Comment: loop back
Go to Previous Frame
Play

frame (label=print):
Comment: print!
Comment: ("tech_sheet" is the target we want to print)
If (movieloaded = true)
Get URL ("print:", window="tech_sheet")
End If

--- Mike's fixed version:

frame 3:
Comment: If it's loaded, print it
Comment: If total frames of loaded movie eqauls frames loaded Set
movieloaded = true
If (tech_sheet:CertLoaded = 1)
Set Variable: "movieloaded" = true
Go to and Play ("print")
Else
Go to and Play ("loop")
End If

in tech_sheet, frame1:
If (_framesloaded = _totalframes)
Set Variable: "CertLoaded" = TRUE
Else
Go to and Play (1)
End If

till wrote:
>
> Hi,
>
> the last few days i've been working as a freelancer on a project for
> bmw.com. There were a lot of other flashers involved so to solve the
> workflow problem (that always occurs when working with several people on a
> flash project) the project was split up in several .SWF files. Before i
> joined the team they decided that for positioning reasons it would be
> easiest to place a dummy movie clip on the main movie and load all the
> content .swf's into this clip (called "/film"). One of my jobs was building
> a preloader for the content and i thought it would be easiest to build a
> general preloader movieclip instead of placing preloaders in every content
> movie itself. My idea for the preloader was this: The content movies always
> had a "Stop" action in the first frame. The preloader checked (
> _framesloaded / _totalframes) / 100 of the "/film" clip and if it was 100%
> it told "/film" to play and then set itself to an invisible spot. If the
> user navigated to other content, three things happened:
> 1. Unload "/film"
> 2. Load new Content into "/film"
> 3. Start Preloader MC
>
> Ok now the problem. This concept may look fine in theory but shows totally
> irratic behaviour under realworld conditions. This means it works fine from
> harddisk and local fileservers, on a webserver it sometimes works sometimes
> not. When loading content *.swf's into the "/film" MC, it sometimes took
> minutes after the flash-plugin actually realized the content was loaded and
> ready to play. I watched the access_log of the apache webserver while
> clicking around in our movie and it was definitely not a problem of stalled
> data transfers or something like that. The access_log either showed status
> code 200 (transfer OK) or 304 (content not modified since last visit) which
> should result in data loaded from the users cache.
> Usually the movie worked better with IE 4/5 (Win 98 / NT / Mac OS 8.6 & 9)
> than with Netscape. Netscape showed strange infos in the status bar like
> loading a 96k movie (which definitely not existed in our project). The
> movie that should have been loaded at that moment was over 400k.
> Apparently Netscape thought that the 400k movie was 96k and it only loaded
> 96k of it...
>
> My guess was that the problem may be caused by loading the content movies
> into a MC. Does anyone know these kind of problems ? Could this be caused
> by loading SWF's into Movie Clips ?
>

Sorry for the very long post, but I think this is something that I think
affects many people's planning for preloaders.

Regards,
Helen

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: load movie clip madness (Macr, Ulrich Sinn

Replies
  FLASH: load movie clip madness, till

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]