Actionscript 3.0 :: LocalConnection - Lose The Informations Of The 'shopping' Bag Of Customer When The Parent Swf Unload The 'X'

Feb 20, 2012

I have a parent .swf who load 3-4 external swf. In a external swf (let's name it "X") u can order items u want. Because i don't want to lose the informations of the 'shopping' bag of customer when the parent swf unload the 'X' and load something another (for example "contact us"), i use localconnection with both duplex between parent swf and 'X'.

Problem: In the swf "X" i have an array "Bag" which holds the id of items the customer clicked to buy. When change the external swf, i send via localconnection to the parent .swf this array (done, i tried with trace). And when the parent loads again the external .swf "X" , it send again the same array via localconnection to "X". The "X" receives it right (done, i verified it with trace). The strange is.. when the customer clicks another item, the array resets to zero!!!

[Code]...

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Lose The Informations Of The 'shopping' Bag Of Customer?

Feb 20, 2012

I have a strange problem with LocalConnection.Situation: A sample e-shop. I have a parent .swf who load 3-4 external swf.In a external swf (let's name it "X") u can order items u want.

Because i don't want to lose the informations of the 'shopping' bag of customer when the parent swf unload the 'X' and load something another (for example "contact us"), i use localconnection with both duplex between parent swf and 'X'.

Problem: In the swf "X" i have an array "Bag" which holds the id of items the customer clicked to buy. When change the external swf, i send via localconnection to the parent .swf this array (done, i tried with trace).

[Code]...

View 3 Replies

ActionScript 2.0 :: Make A Function That Will Not Lose The Values Of The Variable Before Calling It And Will Not Lose Them After It Is Finished

Dec 2, 2004

how to make a function that will not lose the values of the variable before calling it and will not lose them after it is finished. example.

[Code]...

View 4 Replies

ActionScript 3.0 :: Create A Localconnection Object In Both The Parent And Child?

Jun 22, 2009

its necessary to create a localconnection object in both the parent and child swf if bi directional comm is desired ?? so ..
 
[Code]...
 
the child is loaded and unloaded multiple times ..the 1st time .. no issues ..everytime thereafter when the child is loaded .. I get .. "ArgumentError: Error #2082: Connect failed because the object is already connected." when the child is unloaded .."ArgumentError: Error #2083: Close failed because the object is not connected."seems like the connection is persistant until the child is instantiated

View 4 Replies

Flash :: LocalConnection Between Swf Sending Delay & LocalConnection Sniffer Tool

May 6, 2011

The first one (FLEX application) sends a message on a dedicated LocalConnection to a second one (Flash application). The Flash then answers by sending a message on another dedicated LocalConnection. This message is not directly received by the FLEX and the delay is at least 30s, up to 1 or 2 minutes! It seems the issue only occurs with Flash Player >= 10 and it never occurs with Chrome.

I didn't find anything on the web concerning a similar issue nor something in Flash Player release notes. Did someone already have this kind of problem?

By the way, is there any tool that can be used to sniffer LocalConnection communications?

Additional information:

swf are located in different frames swf are embed with swfobject I tried to delay the Flash sending, I tried to create another LocalConnection dedicated to this call but I always had same result: for all calls, the FLEX method is called after the same delay. I also put a timer in FLEX to periodically log to see if there is no background process delaying the method processing but everything seems fine

View 1 Replies

ActionScript 3.0 :: Unload And Load Using .parent Or Something

Nov 5, 2009

I am needing to load a movie from with in a movie into the origional movie and then unload the first loaded movie. hahaha ok. Say I have a movie called M1 and M1 has an animation sequence that needs to run befor it loads but because of positioning issues they need to be loaded seperatly into different loaders. My my plan is to load M1Animation into ldr on my time line, then play the animation and at the end do something like

[Code]....

My problem is this sounds great in my head but the code above doesn't work

View 3 Replies

ActionScript 3.0 :: Unload Parent Swf From Child Swf?

Jan 5, 2011

Parent swf has a button to load Child swf and Child swf has a button to unload itself through a dispatchEvent. Both in respective document classes. Parent loads Child fine... Child can't remove itself! Anyone have an idea what I am doing wrong here? Or another way to go about this? Struggling for a day now...

Parent swf:

public var myLoader:Loader;
loadButton.addEventListener(MouseEvent.CLICK, loadSWF)
public function loadSWF(e:MouseEvent):void {

[Code]....

View 2 Replies

ActionScript 3.0 :: Loaded Swf Telling Parent Swf To Unload Itself?

Sep 23, 2010

I have a shell swf that is loading a swf. How do you have the loaded swf tell the parent loader to unload itself after the loaded swf finishes playing?

View 3 Replies

ActionScript 3.0 :: Unload From Child And Navigate To Frame Label In Parent SWF

Sep 16, 2010

I have a flash page where I am loading another .swf into. With a button in the loaded swf I need to unload the loaded swf (where the button is) and navigate to a specific frame label in the parent .swf. I've tried to do the following in the key frame where the swf get loaded into I've put the following:

var gallery_load_wonderland:Loader = new Loader();
gallery_load_wonderland.contentLoaderInfo.addEventListener(ProgressEve nt.PROGRESS, loop_wonderland);
gallery_load_wonderland.contentLoaderInfo.addEventListener(Event.COMPL ETE, done_wonderland);
gallery_load_wonderland.load(new URLRequest("gallery_wonderland.swf"));
function loop_wonderland(e:ProgressEvent):void {
[Code] .....

I basically want to first load the swf called "gallery_wonderland.swf". Then in the "gallery_wonderland.swf" there's a button called "contact03_btn"¯ which I want to unload "gallery_wonderland.swf" even though it's inside the swf and navigate to the frame label called "Contact" in the parent swf.
 
What can I do I've done similar before and it works, but when I do it know and I click the contact03_btn it comes with following error message:
TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Stage@26215ba1 to flash.display.MovieClip.
at gallery_wonderland_fla::MainTimeline/back_wonderland()[gallery_wonder land_fla.MainTimeline::frame1:227]

View 13 Replies

ActionScript 3.0 :: Child Requesting Parent To Unload External Content

Jun 19, 2011

If you haven't met me yet, that's because I'm pretty new around here. I picked up ActionScript just earlier this week, actually. Name's Kate. Nice to meet you. All righty. I'll start by saying that I've been referencing this thread:

actionscript.org/forums/showthread.php3?t=222486
(I'm not allowed to post URLs until I've got at least 50 posts in?! Gasp.)

View 2 Replies

ActionScript 3.0 :: Read Informations By MySql DB?

May 13, 2011

I have to develop an iOS application able to read "news" by an existent mySql DB on my customer's web site.Is there a way to do this in AS3? I didn't wrote that DB, but I've got these informations:
 
Served Address; 33.222.1.000
DB: myDbName
User Login: brandon
Password: *******
 
I never used DBs in my personal works, then I don't know how to implement my code to communicate (read only) with my customer's web site database.

View 1 Replies

ActionScript 3.0 :: Recover Informations Between Class And MovieClip?

Nov 29, 2009

I have a page (MovieClip) which is charger and have a attribut a matrix (not the class). On this page, there is some cases (MovieClip) which receive value of the matrix.

Each cases are managed by Class. It's a good option, because I can put a listener into the contructor of the class and not having 64 functions if I have 64 cases. This listener allows to change the value of the cases when it clicked.

The problem is that I don't see how to know when a case is clicked in the page for changing the value of the matrix.

View 2 Replies

ActionScript 1/2 :: Create One MC That Contains Informations On One Row And Add It To The AddPage Of PrintJob

Sep 14, 2010

For my work I have to introduce a Print button that will prints everything that is in the cart. However, I never did anything of that sort in Flash,.For now, I did a bit of research about how to do it and I do understand I'll have to use PrintJob with another MovieClip... but I need a bit of explanations about a few things.
 
First, in the cart (which can be printed), there are several "items" that have the same informations, such as the name, the price, comments, etc.Do I have to create one MC that contains informations on one row and add it to the AddPage of PrintJob (I will have 5 MC [5 pages] if I have 5 items in cart), or add all the items into the same MC?
 
Also, the flash is horizontal (1920x1280). Do I have to change the orientation of the PrintJob to print in landscape? Plus, how to know if the text is far enought of the margins? Do I have to consider the margins in the MC and thus puts a good distance between the borders of the MC and my content?
 
Adding a "page" to the PrintJob, how does it work? Is it a real "paper page"? I hope you understand what I mean by that, I can give more details if needed but I can't give the source (.fla).

[Code]...

View 3 Replies

Xml :: Magento Customer Webservice / Api?

Apr 30, 2010

I need some sort of way to handle Magento's customer login, customer account creation and order checkout via some kind of webservice to be used for Flash, preferably XML.As far as I know the Magento API doesn't have these features. I found the Mammoth Webservices extension but it seems that the project is inactive judging from heir site.

View 1 Replies

ActionScript 3.0 :: Audio Stream Player : Getting Informations From The Source

Sep 11, 2011

I'm trying to create a webRadio player, wich different sources. On a click on a button, the player plays the corresponding flow. I would like to display some informations, like : current music, url, description, I think it's possible to have all those informations, because when I play my. files in my audio player (winamp), I've got them. Here is my code corresponding to this part :

[Code]...

View 4 Replies

Create An Interactive Org Chart For A Customer?

May 7, 2009

I am trying to create an interactive org chart for a customer.  When you click on a box, I need it expand as a drop-down, but I would like create it such that if the user clciks on another box, the previous box animates back to the closed position before the new one opens.

View 2 Replies

Create One Of The Trendy Flipbooks For A Customer?

May 9, 2009

I need to create one of the trendy flipbooks for a customer. It also needs to have several features:

- zoom
- print (single or page range)
- search

I've scoured the web and found very few. A while ago I purchased the component from page-flip.com. That was utter crap. I had so many problems with it and lost so much money from development hell and their support just stopped answering me after not so long.Each page will be its own SWF so I'm not sure if that would be searchable at all. All the SWFs will come from a PDF so I'm thinking I'd have to have all the text in one place and search that.

View 12 Replies

ActionScript 3.0 :: Loaded Swf Tell The Parent Loader To Unload Itself After The Loaded Swf Finishes Playing?

Sep 23, 2010

I have a shell swf that is loading a swf. How do you have the loaded swf tell the parent loader to unload itself after the loaded swf finishes playing?

View 4 Replies

ActionScript 1/2 :: Unload Parent Movie After OnloadInit Of Child Movie?

Jul 30, 2010

I am loading external swf's into a main load.swf, using a Moviecliploader object. What I basically want to do is that, after an external movie, say home.swf, loads another external swf, say about.swf, home.swf should be unloaded.
 
home.swf is loading about.swf into the _root.mc_holder, which is placed inside load.swf. I want all external files to be placed within this holder. Now this is working with some files, but not with others. My standard code within all files is this:
 
//code within home.swf to load about.swf
var loader:MovieClipLoader = new MovieClipLoader();var ldrlistener = new Object();loader.addListener(ldrlistener);ldrlistener.onLoadStart =

[Code]......

View 3 Replies

ActionScript 3.0 :: Load The External Swf File And Unload The Parent Swf File?

Aug 17, 2011

i have a question. let say i have file1.swf , file2.swf, and file3.swf, how can i link this 3 files together,let say suppose file1.swf is the main content file, but as i load file2.swf, i want the file1.swf get replaced by file2.swf. How could i unload file1.swf at that time, so that my file2.swf will become the main content file?and again, when my current position at file2.swf, and i want it get replaced by file3.swf by clink on a button. so that the i can unload the file2.swf and let the file3.swf become the main content file.

View 13 Replies

Professional :: Fading Between Multiple Customer Comments - Scalability

Feb 16, 2010

I am completely new to Flash and have been learning about alpha tweening to fade one .jpg image (of a customer's happy comment) to another. This works fine if I only have a small number of comments, but modifying each and every stage of the transitions would be a huge task if I have more than a handful of comments to deal with. Is there some way to set the transition and then apply that transition to all images? That way, I would only have to amend the transition once and it would make no difference whether I had 2 or 200 images to fade in and out of.

View 2 Replies

Flash :: Integrate Live Customer Support With Video / Webcam On Website

Feb 23, 2011

My organization normally provides customer support over e-mail and over the phone, but in particularly tricky situations we find we need to have an approximation of face-to-face communication. We're trying to find or build a software solution that we can integrate into our site. Our requirements are that:

[Code]....

View 1 Replies

ActionScript 2.0 :: Unload/Load Movie Clips In Parent Movie From Buttons In Child Movie?

Feb 12, 2009

I Have 3 Movies:MAIN.SWF, contains loading movie actions for Nav.swf and Home.swf.NAV.SWF, contains navagation menu loaded on Level 2 in Main HOME.SWF, contains slideshow for home page loaded on Level 1 in Main In NAV.SWF, there is a MOVIE CLIP "graphmc", which contains a BUTTON "graphicbtn", When this button is clicked, I'd like the HOME.SWF (which is loaded into Main.swf on Level 1) to fade out and unload, and load and fade in Graphics.SWF in place of it.

View 6 Replies

ActionScript 3.0 :: Positioning Parent MC In Order To Center Child MC On Parent's Parent MC

Feb 5, 2010

[code]All clips are squared.Ok, on the PlayerPlane, there are little soldiers, which have hotkeys. The effect I'm trying to create is I want to position the GameStage so that the currently selected soldier appears in the center of the GameClicker clip.The GameStage is movable by the player (to scan other areas of the map)by holding the CTRL key, so it's easy to kinda lose track of where your players are.I have tried using localTo Global and globalToLocal techniques, but I think I'm lost on the actual math of getting the GameStage to move the correct distance so that the selected soldier is centered to the GameClicker.[code]

View 2 Replies

Lose My Stops In My SWF

Sep 18, 2009

I have made a preloader, yet when i bring my SWF in that i want to load, it loses all the stops that have been put int it? So it just plays all the way through?

View 1 Replies

Modifying Flash Shopping Cart

Apr 12, 2009

modify an existing flash shopping cart I purchased from Flashden.net (link). The cart uses two XML files to pull in data and to configure most of the data settings. I need help with one thing: I'm using this cart on a sunglasses shopping site and I need to configure the optional sunglasses to be clickable so they can be added to the cart. I know I need to modify both the flash .fla and the xml file so I've included the code for both below. Here's a link to the website I'm trying to re-configure. The section I need to edit has the optional sunglasses on the right-hand side of the main photo.Here's the first xml file that does some of the basic settings. This file is called settings.xml.[code]I made an attachment for the actionscript code called actionscript.txt that needs to be modified. All I need to do is figure out a way to make the optional images clickable so they can be added to the main cart. We can also just create a button that says add to cart next to each sunglass option. Either way works for me. I'm even willing to compensate the person who can help me come up with a workable solution.

View 3 Replies

ActionScript 2.0 :: Simply Xml Shopping Cart

Jan 13, 2010

i was trying to find simple code of xml shopping cart i.e it's in AS3 or AS2 it's should be simple & run as different level?i mean if i need to import different swf file or using _root.shopping_cart.URL...

View 1 Replies

Professional :: How Much Lose Saving CS5 File As CS4

Apr 4, 2011

I have a presentation to do using Flash on Wednesday and have been warned by my university that files MUST be in CS4 format. So, having used CS5 to create the whole site/presentation how much will I lose back-saving it to CS4? I'm worried I'm going to have to do a lot of the same work twice.

View 2 Replies

ActionScript 1/2 :: Creating A Shopping List?

May 10, 2011

My project is a page flipping magazine.  On each page are several products.  When you click on a specific product, a popup window comes up and shows all of the product details.  The popup window also includes two buttons - Add to Cart & Add to Shopping List.  This is where I am having trouble.  When the user clicks on the 'Add to Shopping List' button I would like the product details  (i.e picture of item, item description, price, select quantity, delete product option)  to "load" into a shopping list (which would be on a different frame further down the timeline and look like a whole new page to the user). I don't want to redirect them to the shopping list at this time, I just want the information to "load" into the shopping list.  Later, when they are done adding all their items into the shopping list, they can click on the shopping list tab at the top of the page and it will direct them to the correct frame in the timeline and show all of the products they added.  

View 4 Replies

ActionScript 3.0 :: When I Publish Swf I Lose The Music?

Nov 20, 2009

when working in flash i use the below code and it works fine.However when i publish the file on the web using visual studio i lose the music? is there something I'm missing do i need to move the mp3 file somewhere so that is accessible to the swf file?

Code:
var soundReq:URLRequest = new URLRequest("matrix.mp3");
var sound:Sound = new Sound();
var soundControl:SoundChannel = new SoundChannel();[code].....

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved