This is the coade that does not work in 9, but does what it is supposed
to in 8.
I have debug lines in it see what parts it is doing and the last line of
the function does end up in the player so I can only believe that 9 just
passes over the fryLv.send() statement.
function processItems(){
if (productVariantId_0 eq "" && productVariantId_1 eq "" &&
productVariantId_2 eq "") {
message_box_mc._alpha = 100;
_level0.message_txt.text = "Please add an item to your
meal";
} else {
_level0.debug_txt.text = "version 1.8.1.1";
var numItems = 0;
fryLv.form_state = "productForm";
fryLv.quickOrder = "true";
fryLv.pageName = "ensemble";
fryLv.siteId = "48";
fryLv.omSource = "Menu Builder";
fryLv.omSourceValue = "Menu Builder";
if (productVariantId_0 != '') {
fryLv['productVariantId_'+numItems] =
productVariantId_0;
fryLv['quantitys_'+numItems] = quantitys_0;
fryLv['prefixCode_'+numItems] = prefixCode_0;
fryLv['parentProductId_'+numItems] =
parentProductId_0;
numItems++;
}
if (productVariantId_1 != '') {
fryLv['productVariantId_'+numItems] =
productVariantId_1;
fryLv['quantitys_'+numItems] = quantitys_1;
fryLv['prefixCode_'+numItems] = prefixCode_1;
fryLv['parentProductId_'+numItems] =
parentProductId_1;
numItems++;
}
if (productVariantId_2 != '') {
fryLv['productVariantId_'+numItems] =
productVariantId_2;
fryLv['quantitys_'+numItems] = quantitys_2;
fryLv['prefixCode_'+numItems] = prefixCode_2;
fryLv['parentProductId_'+numItems] =
parentProductId_2;
numItems++;
}
fryLv.totalCount = numItems;
_level0.message_txt.text = "Adding " + numItems + " to
cart";
fryLv.send("http://www.tenderfilet.com/checkout/process_items.cmd",
"_self", "POST");
_level0.debug_txt.text = "";
_level0.message_txt.text = "Sent " + numItems + " to
cart";
}
};
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
slangeberg
Sent: Monday, January 22, 2007 11:43 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] LoadVars.send() in Flash 9 Player
Yeah, there is some confusion there.
You can't use: flash.net.sendToURL() in flash 8.
So, like you said, the issue is:
> The swf works just fine in the 8 version of the player but in 9 it
> seems to just pass over the command.
I have not seen this happen myself. I've had no problem with F8 movies
in F9 player.
Anyone?
-Scott
On 1/22/07, Waller, David <[EMAIL PROTECTED]> wrote:
>
> I am publishing in 8 Basic, with AS2 specified.
>
> That is were I am puzzled, I would have thought that the 9 player
> would act like an 8 player if it was authored in 8 (or 7, or 6...)
> Doesn't the 9 player have backwards compatable methods in it?
>
> Dave
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> slangeberg
> Sent: Monday, January 22, 2007 10:22 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] LoadVars.send() in Flash 9 Player
>
> Are you publishing as flash 9? If so, you'll want to handle that
> (player version). It can't be done inside the movie, as far as I know.
> If you're using the template html-js published by Flex Builder, than
> you're good to go.
>
> -Scott
>
> On 1/22/07, Waller, David <[EMAIL PROTECTED]> wrote:
> >
> > So can I wrap a an if statement that detects the player and do
> > something like:
> >
> > if (player9){
> > flash.net.sendToURL()
> > }
> > else {
> > LoadVars.send()
> > }
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of greg
> > h
> > Sent: Friday, January 19, 2007 6:36 PM
> > To: Flashcoders mailing list
> > Subject: Re: [Flashcoders] LoadVars.send() in Flash 9 Player
> >
> > David,
> >
> > Per the link that follows below, the AS2 LoadVars.send() Method is
> > changed in AS3 to flash.net.sendToURL()
> >
> > Source: ActionScript 2.0 Migration: The following table describes
> > the
>
> > differences between ActionScript 2.0 and 3.0.
> > http://livedocs.macromedia.com/labs/as3preview/langref/migration.htm
> > l
> >
> > More:
> > Note: The ActionScript 2.0 MovieClipLoader and LoadVars classes are
> > not used in ActionScript 3.0. The Loader and URLLoader classes
> > replace
> them.
> >
> > Source: Class Loader in ActionScript 3.0 Language Reference
> > http://livedocs.macromedia.com/labs/as3preview/langref/flash/display
> > /L
> > oa
> > der.html
> >
> > fyi ... brace yourself, there are quite a few of these "everything
> > is still the same, but still everything is different" changes. Just
> > scan
>
> > that first link above and you will get a sense.
> >
> > The good news is that now that ActionScript is tied to a standard
> > (ECMA-262), I believe Adobe will no longer be making these types of
> > disruptive changes going forward.
> >
> > For quick backgrounds on what and why many changes were made with
> > AS3,
>
> > following are some good links to articles and presentations by Flash
> > Player Engineer Gary Grossman:
> > Devnet Article:
> > http://www.adobe.com/devnet/actionscript/articles/actionscript3_over
> > vi
> > ew
> > .html
> > Connect Recording of Presentation:
> > https://admin.adobe.acrobat.com/_a227210/p64058844/
> > PDF of Slides:
> > http://www.adobe.com/communities/developerweek/2006_devweek_as3.pdf
> >
> > hth,
> >
> > g
> >
> >
> >
> >
> > On 1/19/07, Waller, David <[EMAIL PROTECTED]> wrote:
> > >
> > > I am having trouble with a LoadVars send which refuses to send in
> > > the Flash player 9.
> > >
> > > The swf works just fine in the 8 version of the player but in 9 it
> > > seems to just pass over the command.
> > >
> > > I have tried several different things including:
> > >
> > > crossdomain.xml
> > > System.security.allowDomain()
> > >
> > > However, nothing seems to work.
> > >
> > > Any input would be greatly appreciated.
> > >
> > > Dave Waller
> > >
> > _______________________________________________
> > [email protected]
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com http://training.figleaf.com
> > _______________________________________________
> > [email protected]
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com http://training.figleaf.com
> >
>
>
>
> --
>
> : : ) Scott
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com http://training.figleaf.com
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com http://training.figleaf.com
>
--
: : ) Scott
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com