The only real difference I can see is the base param you are setting is
swfobject.
Also also see this message in the debug player when running your page:
Warning: Reference to undeclared variable, 'workBtn_mc'

As the swf is being loaded / displayed, is has to be something related. I'd
suggest to put in some trace messages in the swf and see whether your
function(s) are actually being called / what is not happening as expected.


Aran
<http://www.vwk2.com/>

On Thu, Oct 8, 2009 at 5:32 AM, stanmc <[email protected]> wrote:

>
> FWIW - Still not resolved, and code for AC_RunActiveContent version
> vs. SWFobject version is below. If you see any obvious differences
> between the two sets of parameters that might affect the AS let me
> know. I've rewritten the AS code in question numerous ways with the
> same result.
> For now, I am using AC_RunActiveContent with my alt. content inside
> the <noscript> tags.
>
> AC_RunActiveContent version:
> <CODE>
> <script language="javascript">
>        if (AC_FL_RunContent == 0) {
>                alert("This page requires AC_RunActiveContent.js.");
>        } else {
>                AC_FL_RunContent(
>                'codebase', '
> http://download.macromedia.com/pub/shockwave/cabs/flash/
> swflash.cab#version=9,0,0,0',
>                'width', '1024',
>                'height', '660',
>                'src', 'swf/VWK_theWork',
>                'quality', 'high',
>                'pluginspage', 'http://www.macromedia.com/go/getflashplayer
> ',
>                'align', 'middle',
>                'play', 'true',
>                'loop', 'true',
>                'scale', 'showall',
>                'wmode', 'window',
>                'devicefont', 'false',
>                'class','centerblockabsolute',
>                'id', 'VWK_theWork',
>                'bgcolor', '#000000',
>                'name', 'VWK_theWork',
>                'menu', 'true',
>                'allowFullScreen', 'false',
>                'allowScriptAccess','sameDomain',
>                'movie', 'swf/VWK_theWork',
>                'salign', ''
>                ); //end AC code
>        }
> </script>
> </CODE>
>
> SWFobject version:
> <CODE>
>        <script type="text/javascript" src="swfobject.js"></script>
>                <script type="text/javascript">
>                var flashvars = {};
>                var params = {};
>                params.play = "true";
>                params.loop = "true";
>                params.quality = "high";
>                params.scale = "showall";
>                params.wmode = "window";
>                params.bgcolor = "000000";
>                params.devicefont = "false";
>                params.allowfullscreen = "false";
>                params.allowscriptaccess = "sameDomain";
>                params.base = "http://www.vwk2.com/";;
>                var attributes = {};
>                attributes.id = "VWK_theWork";
>                attributes.name = "VWK_theWork";
>                attributes.styleclass = "centerblockabsolute";
>                attributes.align = "middle";
>                swfobject.embedSWF("swf/VWK_theWork.swf", "AltContent",
> "1024",
> "660", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
>        </script>
> </CODE>
> On Sep 24, 11:37 am, stanmc <[email protected]> wrote:
> > Thanks for the replies. It also seems to me that the answer has to be
> > in the params/code. I've tried to make all params identical but so far
> > no luck. The fact that I'm loading the same SWF into both indicated
> > it's not the AS code itself.
> > The code in question is within a loaded swf, runs a couple of
> > functions as below, and then deletes itself from the parent SWF.
> > <CODE>
> > on (release) {
> >         function wait() {
> >                 removeMovieClip("_parent.work_mc.my.swf");
> >         }
> >         ZigoEngine.doTween(_parent.work_mc, '_alpha,_y', [10,700], 3,
> > "easeOutCubic");
> >         _level0.cardsCont_mc.cards_mc.cardArray.splice(6,0,
> > _level0.cardsCont_mc.cards_mc.myMovieclip_mc);
> >         _root._level0.cardsCont_mc.cards_mc.btnEnable();
> >         ZigoEngine.doTween([_root._level0.container_mc.cards_mc.citi_mc],
> > '_alpha,Blur_blur', [100,"-4"], .5, "linear");
> >         setTimeout(wait, 3050);}
> >
> > </CODE>
> > This is attached to a button, none of the actions execute when in the
> > html file using swfobject. All execute properly in the
> > AC_RunActiveContent file. An example can be found here, FWIW.<http://
> > vwk2.com/VWK_theWork.html>
> > Click on a "card" after the anim., the resulting SWF that loads can be
> > removed by clicking on the "X" button. This is the button that is not
> > functioning.
> > A swfobject version of the same file is here <http://vwk2.com/
> > VWK_theWork_swfobj.html>.
> > Thanks for your time.
> > Stan
> >
> > On Sep 23, 5:01 pm, Aran Rhee <[email protected]> wrote:
> >
> >
> >
> > > I'd suggest that your code / params between your AC_RunActiveContent
> ans
> > > SWFObject implementations are different.
> >
> > > There are no issues in using any AS version at all with SWFobject (it
> just
> > > embeds your swf onto the page).
> >
> > > What exactly is not working?
> >
> > > Aran
> >
> > > On Thu, Sep 24, 2009 at 8:53 AM, Sam Sherlock <[email protected]
> >wrote:
> >
> > > > I am still using as2 myself and have no issue; I think you have
> something
> > > > else wrong somewhere
> > > > can you post a link?
> >
> > > > - S
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to