[Flashcoders] Paypal integration.
Has anyone messed with paypal shopping cart code? Is there a way to receive the contents of your cart (not go to the paypal view cart page) to import into your own cart? Karl Sent from losPhone On Oct 23, 2009, at 8:25 PM, Brett Artrahn brtrah...@yahoo.com.au wrote: Helmut, Grant Skinner link below might help you with your event framework. http://www.gskinner.com/blog/archives/2007/07/building_a_stat_1.htm And you can access public static constants anywhere in your application as long as you import the class? Are you saying this is not true? __ Get more done like never before with Yahoo!7 Mail. Learn more: http://au.overview.mail.yahoo.com/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Paypal integration.
I would simply handle all the cart stuff myself, and send Paypal the cart on check out via cart_upload. You get a nice, responsive cart that way... Cheers, Ashim The Random Lines My online portfolio www.therandomlines.com 2009/10/24 Karl DeSaulniers k...@designdrumm.com: Has anyone messed with paypal shopping cart code? Is there a way to receive the contents of your cart (not go to the paypal view cart page) to import into your own cart? Karl Sent from losPhone On Oct 23, 2009, at 8:25 PM, Brett Artrahn brtrah...@yahoo.com.au wrote: Helmut, Grant Skinner link below might help you with your event framework. http://www.gskinner.com/blog/archives/2007/07/building_a_stat_1.htm And you can access public static constants anywhere in your application as long as you import the class? Are you saying this is not true? __ Get more done like never before with Yahoo!7 Mail. Learn more: http://au.overview.mail.yahoo.com/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Paypal integration.
What would be the best way to store their selections? Database or cookies? Thanks for the idea Ashim. Karl On Oct 24, 2009, at 1:28 AM, Ashim D'Silva wrote: I would simply handle all the cart stuff myself, and send Paypal the cart on check out via cart_upload. You get a nice, responsive cart that way... Cheers, Ashim The Random Lines My online portfolio www.therandomlines.com 2009/10/24 Karl DeSaulniers k...@designdrumm.com: Has anyone messed with paypal shopping cart code? Is there a way to receive the contents of your cart (not go to the paypal view cart page) to import into your own cart? Karl Sent from losPhone On Oct 23, 2009, at 8:25 PM, Brett Artrahn brtrah...@yahoo.com.au wrote: Helmut, Grant Skinner link below might help you with your event framework. http://www.gskinner.com/blog/archives/2007/07/building_a_stat_1.htm And you can access public static constants anywhere in your application as long as you import the class? Are you saying this is not true? __ Get more done like never before with Yahoo!7 Mail. Learn more: http://au.overview.mail.yahoo.com/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] localconnection speed in relation to movieframerate
Hi List, I've set up a test in AS2 with a 2 channel localconnection, swf A sends a msg to swf B, and B sends back an acknowledge signal. If I set the movies framerate to 1 fps, this takes about 50ms for a simple msg to get an ack signal, if I set the framerate to 30 it takes about 5ms. Erm... my naive conclusion would be that the localconnection's execution speed is connected to the framerate of the running movies, can anyone confirm that? I'm writing code that runs within a legacy shell that uses setVariable on the swf which is no longer supported so now I'm trying to work around that issue using an as2 swf within an as3 swf which passes on the signals using localconnection :-S regards, JC ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Paypal integration.
It's temporary, so I just went with a shared object, but if you add a login and want a persistant cart, database may be the way to go. On 24/10/2009, Karl DeSaulniers k...@designdrumm.com wrote: What would be the best way to store their selections? Database or cookies? Thanks for the idea Ashim. Karl On Oct 24, 2009, at 1:28 AM, Ashim D'Silva wrote: I would simply handle all the cart stuff myself, and send Paypal the cart on check out via cart_upload. You get a nice, responsive cart that way... Cheers, Ashim The Random Lines My online portfolio www.therandomlines.com 2009/10/24 Karl DeSaulniers k...@designdrumm.com: Has anyone messed with paypal shopping cart code? Is there a way to receive the contents of your cart (not go to the paypal view cart page) to import into your own cart? Karl Sent from losPhone On Oct 23, 2009, at 8:25 PM, Brett Artrahn brtrah...@yahoo.com.au wrote: Helmut, Grant Skinner link below might help you with your event framework. http://www.gskinner.com/blog/archives/2007/07/building_a_stat_1.htm And you can access public static constants anywhere in your application as long as you import the class? Are you saying this is not true? __ Get more done like never before with Yahoo!7 Mail. Learn more: http://au.overview.mail.yahoo.com/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Cheers, Ashim The Random Lines My online portfolio www.therandomlines.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] RE: Inheritance and Static properties
Helmut, I might be missing the point here, but doesn't a MyButtonEvent class with the constants defined in there solve your problem? And what is event.target.NAME? Tried event.target.name? regards JC On Sat, Oct 24, 2009 at 3:25 AM, Brett Artrahn brtrah...@yahoo.com.auwrote: Helmut, Grant Skinner link below might help you with your event framework. http://www.gskinner.com/blog/archives/2007/07/building_a_stat_1.htm And you can access public static constants anywhere in your application as long as you import the class? Are you saying this is not true? __ Get more done like never before with Yahoo!7 Mail. Learn more: http://au.overview.mail.yahoo.com/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] localconnection speed in relation to movieframerate
Framerate directly affects Flash's code execution response time. Is there a reason why you would find this odd or surprising? Hans Wichman wrote: Hi List, I've set up a test in AS2 with a 2 channel localconnection, swf A sends a msg to swf B, and B sends back an acknowledge signal. If I set the movies framerate to 1 fps, this takes about 50ms for a simple msg to get an ack signal, if I set the framerate to 30 it takes about 5ms. Erm... my naive conclusion would be that the localconnection's execution speed is connected to the framerate of the running movies, can anyone confirm that? I'm writing code that runs within a legacy shell that uses setVariable on the swf which is no longer supported so now I'm trying to work around that issue using an as2 swf within an as3 swf which passes on the signals using localconnection :-S regards, JC ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] localconnection speed in relation to movieframerate
Hi Steven, in this particular case I do find it odd or rather surprising, since it's a bit unclear when the localconnection triggers the code in the other movie. If A sends to B and B sends to A and it happens all within the timespace of a single frame, I would expect the time taken to be equal no matter the framerate. If it happens within the time space of multiple frames, I would expect the time taken to be closer to the time between each frame. Ofcourse when it's all running in a single movie it's -codeexecution-draw-codeexecution-draw-etc so then it's pretty obvious how it works. It's just funny in this case my localconnection is too slow, oh well increase the framerate. I'll have to test though if it's simply the roundtrip that's taker longer or if a single call from A to B is influenced by the framerate as well. thanks Hans On Sat, Oct 24, 2009 at 9:35 PM, Steven Sacks flash...@stevensacks.netwrote: Framerate directly affects Flash's code execution response time. Is there a reason why you would find this odd or surprising? Hans Wichman wrote: Hi List, I've set up a test in AS2 with a 2 channel localconnection, swf A sends a msg to swf B, and B sends back an acknowledge signal. If I set the movies framerate to 1 fps, this takes about 50ms for a simple msg to get an ack signal, if I set the framerate to 30 it takes about 5ms. Erm... my naive conclusion would be that the localconnection's execution speed is connected to the framerate of the running movies, can anyone confirm that? I'm writing code that runs within a legacy shell that uses setVariable on the swf which is no longer supported so now I'm trying to work around that issue using an as2 swf within an as3 swf which passes on the signals using localconnection :-S regards, JC ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] DataGrid not updating after DataProvider item changes
Publishing for F9 with AS3, using Flash not Flex. I have a simple DataGrid. I've added 9 items to its DataProvider. They are simple objects of a type Candidates that doesn't extend any other class. I have columns for 4 public properties of Candidate: name, voteUnits, percentVote and rank. The initial value all show up in the DataGrid as expected. After changing several values in any of the items, there is no change registered in the DataGrid. Do I need to send an event from the object to the DataProvider? Everything in Flash is always passed by reference, right? Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] DataGrid not updating after DataProvider item changes
Can you set up a function to listen for any changes to the data and refresh when a change happens? J.A.T. Karl On Oct 24, 2009, at 4:48 PM, Andrew Sinning wrote: Publishing for F9 with AS3, using Flash not Flex. I have a simple DataGrid. I've added 9 items to its DataProvider. They are simple objects of a type Candidates that doesn't extend any other class. I have columns for 4 public properties of Candidate: name, voteUnits, percentVote and rank. The initial value all show up in the DataGrid as expected. After changing several values in any of the items, there is no change registered in the DataGrid. Do I need to send an event from the object to the DataProvider? Everything in Flash is always passed by reference, right? Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] DataGrid not updating after DataProvider item changes
I'm now listening for changes and then using dataProvider.invalidateItem(changedItem). Works as it should. Is there a class that I should be extending with my Candidate object in order to take advantage of some built-in events. Karl DeSaulniers wrote: Can you set up a function to listen for any changes to the data and refresh when a change happens? J.A.T. Karl On Oct 24, 2009, at 4:48 PM, Andrew Sinning wrote: Publishing for F9 with AS3, using Flash not Flex. I have a simple DataGrid. I've added 9 items to its DataProvider. They are simple objects of a type Candidates that doesn't extend any other class. I have columns for 4 public properties of Candidate: name, voteUnits, percentVote and rank. The initial value all show up in the DataGrid as expected. After changing several values in any of the items, there is no change registered in the DataGrid. Do I need to send an event from the object to the DataProvider? Everything in Flash is always passed by reference, right? Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] DataGrid not updating after DataProvider item changes
Try this. myDataGrid.dataProvider=myDataGrid.dataProvider; I found it here: http://asji-lab.blogspot.com/2005/10/datagrid- refresh-contents.html HTH Karl On Oct 24, 2009, at 5:11 PM, Andrew Sinning wrote: I'm now listening for changes and then using dataProvider.invalidateItem(changedItem). Works as it should. Is there a class that I should be extending with my Candidate object in order to take advantage of some built-in events. Karl DeSaulniers wrote: Can you set up a function to listen for any changes to the data and refresh when a change happens? J.A.T. Karl On Oct 24, 2009, at 4:48 PM, Andrew Sinning wrote: Publishing for F9 with AS3, using Flash not Flex. I have a simple DataGrid. I've added 9 items to its DataProvider. They are simple objects of a type Candidates that doesn't extend any other class. I have columns for 4 public properties of Candidate: name, voteUnits, percentVote and rank. The initial value all show up in the DataGrid as expected. After changing several values in any of the items, there is no change registered in the DataGrid. Do I need to send an event from the object to the DataProvider? Everything in Flash is always passed by reference, right? Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders