List Info

Thread: RE: Flash player 6




RE: Flash player 6
country flaguser name
Switzerland
2007-07-11 12:21:01
> Is there a big advantage to using he movie clip 
> loader over the Load It Script Bob sent over? 

Nope. The Loader class has some additional events and
handlers, but you
probably don't need them here anyway.

> Have any of you had a problem writing scripts based on
version numbers? 
> For instance, I am going to write, if the version
number is 6 or 7 
> load the movie this way, otherwise load the movie the
other way. 

Last year we made a website in 2 versions - one for users
with Flash Player
8, another one for those with 6 or 7.
The version 8 made use of several of the new Text features.
We basically had one fla with 2 sets of symbols in the
library for the 2
versions - for the 'older' version symbols we just made
sure, not to use any
of the new features. The fla was published for Flash 8. At
the very
beginning we determined the user's Player Version and
attached the symbols
accordingly.

> Is there a way to make this code into a module
To build a component for this sounds like overkill.
Our project was structured as a number of AS2 classes. One
of them was
'SessionData', where we would store the player version, the
language etc.
Then we passed an instance of this class to all other parts
of the site that
needed it (usually passing it to the constructor of the
other classes).

Not at all clean, but anyway: _global.playerVersion  would
make the
information available to all parts of the movie in a quick
and dirty way.

hth
-------------
Andreas Weber


-----Original Message-----
From: flashnewbie-bounceschattyfig.figleaf.com
[mailto:flashnewbie-bounceschattyfig.figleaf.com] On
Behalf Of Lord, Susan
Ms. (CONTR)
Sent: Mittwoch, 11. Juli 2007 17:20
To: Flashnewbie Mailing List
Subject: RE: [Flashnewbie] Flash player 6


Ok... Now that I have the version number and the two pieces
of code I need
to use to load the movie based on the version number (thanks
Bob for the
LoadIt script and Jason for the movie clip loader script!) I
have a few
questions. 

Is there a big advantage to using he movie clip loader over
the Load It
Script Bob sent over?  The code is at the bottom of this
email.  If not, I
will keep it simple and use Bob's code for all versions.

Have any of you had a problem writing scripts based on
version numbers? For
instance, I am going to write, if the version number is 6 or
7 load the
movie this way, otherwise load the movie the other way.  (If
they don't have
6 or above users will be sent to their sys admin for a
plug-in).

Is there a way to make this code into a module that is
called when movies
are loaded instead of something that I need to copy and
paste into each
piece? I don't really know how to make components yet.  Is
that something I
need to look into?  Would that work in 6 as well as 8? 



//*********************** Movie Clip Loader Functions
***********************\ function load(filename:String,
target_mc:MovieClip):Void {
	trace("in Load function");

	_loadListener = new Object();
	_loadListener.onLoadInit = Delegate.create(this,
loadComplete);
	_fileLoader = new MovieClipLoader();
	_fileLoader.addListener(_loadListener);
	_fileLoader.loadClip(filename, target_mc);
}
function loadComplete():Void {
	trace("the clip is now loaded and on timline
as:"+main_mc);

load(lessonPath+urlList[whoIsOn], main_mc);

//***********************Load it script
********************************

function loadIt(file,my_mc) {
    loadMovie(file, my_mc);
    myWaitNum = 0;
    my_mc.onEnterFrame = function() {
        myWaitNum++;
        //wait a sec other wise the mc will register as
loaded
        if (myWaitNum>2) {
            myBytesLoaded = my_mc.getBytesLoaded();
            myBytesTotal = my_mc.getBytesTotal();
            if (myBytesTotal != undefined) {
                trace("Loaded
"+myBytesLoaded+" of
"+myBytesTotal+"bytes.");

                if (myBytesLoaded == myBytesTotal) {
                    trace(myBytesLoaded);
                    trace(" -- loaded!");
                    delete timer_mc.onEnterFrame;
                }
            }
        }
    };
}

loadIt("LessonFiles/L1T1/L1T1T100.swf", my_mc)
 

_______________________________________________
Flashnewbiechattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.c
om

_______________________________________________
Flashnewbiechattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.c
om

RE: Flash player 6
country flaguser name
United States
2007-07-11 12:45:07
Andreas Weber wrote:
 
> > Is there a big advantage to using he movie clip
> > loader over the Load It Script Bob sent over?
> 
> Nope. The Loader class has some additional events and
handlers, but you
> probably don't need them here anyway.

Sorry--I'm jumping into the middle of a thread, so forgive
me if this has
been covered.

There is actually an advantage to using the Load It script.
FP6 doesn't
support the movie clip loader class. 

Cordially,

Kerry Thompson


_______________________________________________
Flashnewbiechattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.c
om

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )