Well the problem is not going to be delt with in flash, if i
remember
correctly, MovieClipLoader was not in flash 6 and will throw
compile
errors(or just not work at all). This means that your base
file would have
to be published for 6 and all other files loaded as well. So
you would not
be able to do a conditional for version inside of flash.
So with that being said, i'd make two functions in
javascript for the embeds
and then use a version sniffer script to detect what swf set
to embed.
But I haven't tested to see if the MovieClipLoader class is
even accessible
in 6 but i'm pretty sure it isn't :(
B.
On 7/11/07, Steve Rachels <ravandai techline.com> wrote:
>
> Personally, I'd go with the lowest version you think
you'll need *if*
> you're after the highest number of viewers and don't
want to make them
> upgrade their version.
>
> However, I'm wondering if you could make a
"version.as" class file with
> a function that gets the version number as a var, and
then uses an
> if/else statement.....? I haven't got far enough along
with classes to
> know if this is doable and/or reasonable, but one of
the gurus should be
> able to tell you.
>
> Just a couple o' thoughts. My entire quota for the
day.
>
>
>
> Lord, Susan Ms. (CONTR) wrote:
> > 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?
> _______________________________________________
> Flashnewbie chattyfig.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
>
_______________________________________________
Flashnewbie chattyfig.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
|