ActionScript 2.0 :: Use The LocalConnection Method To Update The Newsreader With The Content?

Jul 3, 2005

I created a newsreader movie that is populated by a textfile. I also created an admin movie to modify the textfile with a bit of PHP. The theory is to update the textfile for the newsreader movie from the admin, making editing the original newsreader.fla unnecessary. However,I would like to update the information without a browser refresh. I thought I might run into some browser cacheing issues when trying to update the data real time, so my idea was to use the localConnection method to update the newsreader with the content that is being saved to the textfile. I thought this would be a workaround for the browser cacheing the old textfile contents. This works fine locally, but when tested from a browser, the localConnection idea doesn't seem to work. In other admin demo's, after the user saves the info, I just provide a link to the textfile to update the browser cache. When refreshing the browser, the content is updated. I would like to find a way to do this in a real time situation. Here is a link to a small tutorial I tried to write using this method. The source files are available on the second page. Why does this work so well locally but not in a web browser?

View 6 Replies


Similar Posts:


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 :: No More DuplicateMovieClip For NewsReader?

Mar 10, 2009

I am making a flash website with a page that is a "newsreader" style, for posting articles. The article info is loaded dynamically from an XML document.

I made a page like this before using AS2, and used the duplicateMovieClip method in a for-each loop to list each news article. I am using AS3 in my new flash document, but am finding that there is no longer the duplicateMovieClip method.

replace the duplicateMoveClip, or another way to accomplish what I am trying to do.

View 3 Replies

ActionScript 1/2 :: Looping Dynamic TextBox To Update Its Content?

Feb 24, 2011

I have a 100 frame movieclip with a dynamic textbox inside that outputs the current frame. This movieclip gradualy goes from frame 100 - frame 0. Would I need this textbox on 100 frames with code on each or just 1 stretched through the 100 frames? I can get it to say 100, when its on the 100th frame but its doesn't go to 99 98 etc.

I tried:
mc.onEnterFrame = function(){
mc.text = _currentframe;
}
but that doesnt work.

View 6 Replies

Javascript :: Make A Div Update The Content With A Sliding Effect?

Jul 20, 2011

Could you please tell me how this photo animation effect is achieved - see the pictures that slide seamlessly to the left every say 3 seconds (the pictures just below the BIGSTOCKPHOTO logo).. Site- www.bigstockphoto.com

I have noted this effect being used in many other sites.. And none of them seem to employ flash for making this. Please let me know whether this is just JS or whether its purely a CSS based effect, and probably a place where i can read on how to make this.

View 1 Replies

AS3 :: Android - Architect A Tablet App That Only Needs To Connect To A Laptop To Update Content?

Mar 29, 2012

I've built apps that connect to a server. But this time a client has asked for an app with no need to connect to a server to update content (images,videos,text). It will be Android tablet to a Windows laptop via USB. It will be for end user no dragging and dropping into specific folders using USB debugging. I was thinking I may need to build an app for the laptop (content manager) and then the app for tablet. Is a framework out there that could jump start this?

View 2 Replies

Data Integration :: CallFunction Method Disappeared From ActiveX Control After 10.0.32.18 Update?

Oct 22, 2009

Has anyone noticed that the "CallFunction" method disappeared from flash controll after 10.0.32.18 update? It just broke all our apps with flash integration!

View 4 Replies

Actionscript 3 :: Use One Object's Method To Update A Variable In Another Object?

Feb 27, 2012

I am not sure if I worded the question correctly, however, I have code to detail it. Firstly, I have a class Class1:

[Code]...

View 1 Replies

Flex :: Right Method For Modifying Text Content In Component Lifecycle?

Aug 25, 2010

I have custom components which must adjust their text content based on space constraints. For example a component adds labels until there is no space, and then the content of the last label becomes "(x more)"
I do not have access to size of child controls before adding them. When in updateDisplayList, I make changes to the layout of the component, but for labels, lblInstance.text property fires events, which lead to updateDisplayList being called again. I know that updateDisplayList may be called more than once, but if there is a way to modify text without triggering events, that'd be really useful. For example, setActualSize method in UIComponent allows this kind of modification. Anything similar for text controls? Or do you have best practices for laying out and managing text content, in the context of custom Flex components?

View 1 Replies

Flex :: Read Content Of The Uploading Files Without Using FileReference.load() Method ?

Nov 24, 2011

I'm going to implement a file uploading application using flex 3.5 and php. In the flex code I need to read the content of the uploaded file without calling the FileReference.load() method (Since it is a big issue when uploading large files). I checked many online articles and didn't find a way to do this in flex.access the content of this file without using FileReference.load() method?

View 1 Replies

Flash :: Professional - Update Via SCUP - The Client Is Not Supposed To Be Interfered With The Update Progress

Nov 17, 2011

I am deploying Updates via SCUP and SCCM to hundreds of Computers. Fortunately Adobe provides an SCCM Update Catalog for both Adobe Flash ActiveX and Adobe Flash Plugin. But now my Problem: After publishing the Update via SCCM, the client is not supposed to be interfered with the Update Progress (which is working) I figured the Updater works like this: First SCCM checks if a Update needs to be deployed, if this is the case, The Flash Updater begins. First the old Flash Version is beeing uninstalled. But now: if the Client has a Browser Window (IE, or Firefox) open, the Updater is not able to install the new Flash Version and quits with an Error. This leaves the Client PC without any Flash (because its being uninstalled before) How can I prevent Flash being uninstalled due to the Update progress not working while a Browser window is open?

View 1 Replies

Actionscript 3 :: Movieclip Using A Timer To Update Dynamic Text. No Update?

Dec 12, 2011

I've got a movieclip, which has got a dynamic text element.The movieclip uses a package for its codeThe package if obviously derived from the MovieClip classI've got a timer, that updates the dynamic text field every second.When debugging the code, I see that the timer works well. Its updates the value of the dynamic text field.

View 2 Replies

LocalConnection In Mac Browsers

Feb 21, 2008

I have a relatively simple localConnection between three swfs: one swf is an image gallery; another swf controls the playback of the image gallery; and the third displays xml-driven captions from the image gallery.Everything works flawlessly in a PC environment, on all browsers, using AS 2, flash player 9. But when I test in a mac environment, the captions will display on load, but it will no longer show if you refresh the page; only a cache clear and refresh will bring it back, but the same issue will happen again. The navigation doesn't work at all, ever (though the swf is loaded and visible).

View 4 Replies

Flash :: LocalConnection And DOM

Nov 29, 2009

I have a Flash object on my site, which has this code:

this.ld = new LocalConnection();
this.ld.allowDomain("*");
ExternalInterface.call("alert", this.ld.domain);

It alerts my domain successfully. However, what I want is to access the HTML DOM through this using LocalConnection and not ExternalInterface directly.

View 1 Replies

ActionScript 3.0 :: LocalConnection - Communicate From One SWF To Another

Apr 23, 2009

I'm having a little issue with LocalConnection - trying to communicate from one SWF to another. From my main SWF I've loaded an external SWF of same dimensions ( effectively replacing the main SWF). What I wanted was then to re-load the main SWF, but rather than have the main SWF play from the start, I wanted to go to a specific frame instead (I used a frame label called "myMarker"). Thought LocalConnection was the way to go to achieve this. Gave it a shot and it all works well locally BUT when uploaded to server it doesn't work, but throws the following error:-

[Code]..

View 1 Replies

ActionScript 3.0 :: LocalConnection Limitations?

Feb 12, 2009

limits to number of SWFs that can establish local connection on MAC? The architecture is: One Manager ("server") and N number of other SWFs that communicate with the manager.When I embed more than 8 SWFs (manager + more than 7 dependents) and attempt to establish connection between them - only first 7 dependent swfs are capable to communicate with the manager on MAC (both Safary and FF). The rest are ignored. It doesn't seem to be an issue on PC where I went up to 20 and it worked (with some quirks of course). Is it a native behavior on MAC?

I did not check if number of connections is at stake (as opposed to number of swfs). There are 14 connections all together when 7 dependents are involved.

View 1 Replies

ActionScript 1/2 :: Alternative To LocalConnection?

Sep 23, 2009

I'm having huge bug issues with LocalConnection that nobody seems to be able to find errors in my code/files. So... I'm looking for an alternative. I need a main swf file to load an external swf including the ability to have it move from one frame to another. If this isn't a possibility, I can also just have the main swf hide/reveal a div or just an image in the html.

View 9 Replies

Actionscript 3 :: LocalConnection Var Into URLRequest?

Jun 29, 2011

i use LocalConnection between two swf in the same page.What i'm trying to do is to use a String sent from one swf to the other, as variable into my URLRequest...So i can trace "myVar" into the function chemin, but i didn't find how to use it into URLRequest

swf that receive the var :

var lc:LocalConnection=new LocalConnection();
lc.client=this;
lc.connect("callBig");[code]....

View 2 Replies

ActionScript 3.0 :: Using LocalConnection To Communicate?

Aug 19, 2010

I need dozens of AS2 Flash swfs I wrote to communicate with an AS3 swf. My code below is on the "wrapper" AS3 swf, which loads the lesson1_activity3.swf AS2 swf. This is then further nested into an Adobe Captivate-generated swf (that's what the rdcmndNextSlide method is for).

This configuration works the first time you see the wrapper/child swf together, but if you navigate back to the slide, the child swf doesn't load. I'm guessing that Captivate has all the objects still stored in memory, so it thinks I'm trying to declare var again, which I can't do. Is that it? Does anyone see the issue with my code that would make it work the first time the wrapper is loaded, but not subsequent times?

[Code]...

View 0 Replies

ActionScript 2.0 :: LocalConnection Does Not Work?

Feb 18, 2004

ere's what i'm doing and it doesn't seem to work, 1st movie, a button:

[AS]
on (press) {
function () {myLocalConnection = new LocalConnection();
myLocalConnection.send("Incoming", "onRecieve", MyID);
myLocalConnection.close();};
[/AS]

where MyID is some variable

2nd movie, 1st frame:

[AS]
myLocalConnection = new LocalConnection();
myLocalConnection.onRecieve = function(theID){
_root.test.gotoAndPlay(theID);}[code]...

now that doesn't work so i'm wondering what is wrong...

View 2 Replies

ActionScript 2.0 :: Can't Get LocalConnection To Work

Jun 5, 2006

I have 2 swf... and it just deosn't want to work, the Receiver is supposed to play a video..

Sender:

Code:
buttonsLC = new LocalConnection();
b_005.onRelease = function() {
buttonsLC.send("lcMovBtn", "methodToExcecute");

[Code].....

View 8 Replies

ActionScript 2.0 :: 2 .swf To Communicate (Localconnection)

Jan 2, 2007

i've got 2 different .swf files on a html page, with 1 of e .swf being e menu and the other being the content_mc. I've been researching on localconnection but did not manage to find out how i could get e menu to send command to the content_mc to load the respective content upon being clicked (for example, when user click "services" in the menu, content_mc.swf will automatically be updated with the services content.

View 6 Replies

ActionScript 3.0 :: BitmapData Through Localconnection?

Feb 17, 2009

how i can pass a bitmap data through a local connection in as3.0 and get it on the other end intact ?

View 3 Replies

ActionScript 3.0 :: Using LocalConnection And The Localhost?

Aug 17, 2009

I have had some success using LocalConnection between SWFs.I can have a connection function between a preloader SWF and its child, and another connection work between two SWFs present on the same webpage......most of the time.

If I run my SWFs in a webpage from my localhost (ie my local testing PC) a particular LocalConnection will fail about 50% of the time. If the same SWFs are run on a remote server (ie the inernet) the LocalConnection works 100% of the time.SWF 'A' is sending to SWF 'B'Bizarrely, the LocalConnection going the other way, from SWF 'B' to SWF 'A' works 100%.

All the other LocalConnections I have used all work 100% of the time.I have tried adding a listener to the eventStatus which reports when the connection fails.I have also tried allowDomain(), although Im not sure it is neccessary since all the SWFs are hosted from the same domain anyway.Why should a LocalConnection behave differently depending on where the SWFs are hosted?

View 1 Replies

ActionScript 3.0 :: How Does LocalConnection Work

Dec 4, 2009

I have two SWFs happily sending messages back and forth to each other. I want to intercept those messages with a third SWF without editing the first two files at all.

View 8 Replies

Actionscripts :: Wrappers For The LocalConnection For C# Or Java?

Jun 19, 2009

I want to communicate with the LocalConnection framework of Flash via C#/Java/C++. My search for already implemented wrappers was not as successfull as I wish ;). There exist several servers (like FluorineFx) which support binding of C# objects to the LocalConnection. The problem is I am not looking for a server but only for a simple (marshalling of strings is enough) wrapper. After reading the AMF specification that implementing my own wrapper might take some time ;) which leads to my question: Does anybody knows a simple wrapper (C#/Java/C++) for the LocalConnection framework?

View 2 Replies

Flash :: Passing Array Through LocalConnection?

Jan 11, 2010

I was wondering is it possible to pass an array through the localConnection in flash? My local connects connect my flash application with the javascript and passes variables between them.

View 1 Replies

Flex :: LocalConnection Passing By Value Or Reference?

Apr 8, 2011

When using LocalConnection that have two SWFs talking back and forth to each other. Are objects passed by value or reference?

View 2 Replies

Flash :: Communicate Between Two SWF Using LocalConnection Methode?

May 6, 2011

How can i communicate btn two SWF using LocalConnection methode (flash8)

View 1 Replies

ActionScript 3.0 :: Resend Data With LocalConnection?

Jul 28, 2009

Is it possible to resend a value to an swf? Meaning, that when the value changes the listening swf will change its value too?

I have successfully made a LocalConnection between two swf using permadi's class (url...).[code]...

View 0 Replies







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