ActionScript 3.0 :: Communicate Between Two Swfs Residing In Different Webpages?
Oct 9, 2009I know about communication between two swfs in the same webpage.
Is there any way to communicate between two swfs residing in different web page?
I know about communication between two swfs in the same webpage.
Is there any way to communicate between two swfs residing in different web page?
I know about Local connection class connecting two swfs in the same web page.But kindly let me know if there is any way to connect to two swfs residing in different web pages.
View 1 RepliesI was able to use LocalConnection to have 2 swfs communicating when both sitting in the same PC, or upload those on to the server and accessing those from the same PC. Is there any way to do this between two PCs, one PC running send.swf, controlling another PC running receive.swf? I checked adobe site for LocalConnection and it looks like this only works within one client PC.
View 2 RepliesI need to write or pass some variables from swf 1 to swf 2. This doesn't have to be done in real time and this is not going on a server believe it or not. All local. ie, swf 1 is the backend that sets variables for swf 2 to read. swf 2 can be started after swf 1 is done. Was thinking that swf 1 could write a text file and then swf 2 could read it... but was wondering if there was a better/easier way to do this? Also, swf 1 doesn't have to be a swf! If I could create an interface in html or something to allow the variable passing that would work too..
View 3 RepliesIf I playing one swf, the other swfs should pause if it was playing. I can able to communicate two swfs using javascript(both swfs are different name). But come to multiple swfs, I don't know how to differentiate the swfs beacause all are same name. I have embed 3 swf files in my html page using the following script.
[Code]....
Whats the simplest way to get a nested swf to modify the value of a variable located in the parent's swf? I'm not sure localConnection is what I need.
Here is a simplified example of my situation:
main.swf
content01.swf
content02.swf
main.swf loads and unloads content SWFs ontop of it's stage.
A piece of script in each content.swf needs to modify the _hieght of a movieclip in main.swf
(imagine the movieclip is a visual container for content, and content that takes up for space needs a taller content box; hence, changing the _height of the movieclip content box)
I'm also animating the movieclip's height expanding using actionscript:
ActionScript Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var bodySize:Tween = new Tween(BOX_Body, "_height", Strong.easeOut, 200, 500, 2, true);
I figured I could put these lines of code on the first frame of the content.swfs, but change them to affect the "Box_Body" MC on the main.swf stage?
I am using a flipbook that I purchased on activeden. It loads swf files as pages. If have one video on page 1 (page1.swf) and one video on page 2 (page2.swf). Both pages are on the same spread. I want the video on page 2 to start after the video on page 1 has finished. So on page 2 I want to listen for a .complete from the video on page one. This is the code that I am using to load the video on page 1 where I need to listen for the .complete.
[Code]...
Can 2 swfs on the same page communicate with each other directly? Or do you have to do something tricky like setting variables in a stored object from one swf and then constantly checking for updates to it in the other swf?
View 1 RepliesThis has quite a long background history, so I`ll first ask the question: how can I make a loaded SWF file activate a function inside another loaded SWF file - both in the same 'parent' movie, domain and directory - when the user clicks a 'link' on the first swf?I'm new to actionscript, been only working with it for 2 months and I've been learning on the go. So far, so good, flash cs3 help has been useful, as well as this forum and other sites. My project is a website, no innovations, just simple info and light animations.The site should have an intro page (I called it index), a preloader, then the actual site (home), with links to each specific area (pages). In home, a small slideshow movie clip should always be on the upper left corner looping images until the user clicks a link to a page, when the slideshow fades away. With this briefing, I made a file for the index, and a uiloader in it would get the home file and that 'should' be it.My stage resizing event listener was working perfectly on home - standing alone - moving the slideshow exactly as it should. But when home was loaded inside index, the slideshow moved way more than it should never getting in the right place. After various unsuccessful attempts, I decided to move the slideshow into its own swf and load it directly in the index, together with the home file. This way, I managed to make it relocate precisely, but got myself the problem I'm asking here. I need to get the slideshow to fade away when the user clicks a page link, but they are separate files.
I tried to use a Loader.content based function, located at the index, but figures Flash help was not exactly clear on how I had to use it properly, so I did not manage to get it to work. It always reported an unspecified property. I searched around here and over the net, found similar problems and their solutions but could not resolve my problem. I think this is a little too specific..
I have an alchemy compiled swc which contains methods to perform certain key algorithms. These methods should only return values only if user is authorized(bought license from online service) for security purpose. So I am planning to add another SWC on top of this, which have all the licensing code stuff. But when I import the Alchemy generated swc inside my custom swc, all the methods of alchemy are exposed.
View 2 RepliesIs there a way to find the radial distance using the zipcode? My task is to search the all the users residing with in a specified distance. I know the zipcodes of the users. Eg, users between 25 miles from the current location. I have other search categories, for which i am using mysql queries. I am unable to figure anything out for the distance issue.
My backend is in php
and frontend in Flex.
The best option for me would be something like that of www.zip-codes.com/zip-code-radius-finder.asp. ie, if I should be able to get all the zip-codes available in the specified radial distance. So i can compare this zip-codes to the users zip-codes in my database. And select the ones with a match.
I'm working with Flash CS4 / ActionScript 3.0I just wanted to know how to link my finished flash ad to its corresponding webpage.-->Click anywhere on the banner and it links you to...youtube or whatever :]
View 5 RepliesThis probably a stupid question, but I really can't figure it out.But I'm creating a XML Flash site. I can easily edit text and such with the XML file, but I'm trying to imbed a youtube video on the second page of the site, but for the life of me I cannot locate the second page in the .fla file.How can I locate allt he pages within the site? I've tried moving the 'playhead' but that didn't work.I found what I think is the menu that contains the links to the differnet pages in the site. But how do I go into the different items to view/edit the contents.
View 1 RepliesI am trying to make a preloader for a swf file. The file has a button on it to proceed (skip the video) to next page and the video player itself. Its a f4v file around 8Mbs and 30seconds in length. When I try to make a preloader, simply it doesnt work. Is there a trick to make preloader s for Video files on web pages ?
View 1 RepliesBasically I have decided to make this webpage for a client on the left side is the navigationand when they click on some of the buttons, I would like for the MovieClip to load a website so every time a user clicks on the button then on the right side which has the movieclip it would load the URL? Is this possible?
View 1 RepliesIm working on an application for a website. When the user finishes entering all of the information into the Flass application, they press a button. I want it to open another page from that website and enter the information into it.
View 3 RepliesI want to use an air application in web page. Can I do this?
View 4 RepliesI'm building a site to showcase various engagement tools for the web. Most of what is involved is new to me. My biggest challenge is finding the right AS3 code to make buttons link to URLs. when I try to duplicate it and change the btn name, in order to make two, or three or four separate links to four unique buttons I get an error about trying to call the same function more than once. This is her code and as I said it works for one button link. Can it be made to work for multiple instances?
inv_btn.addEventListener(MouseEvent.CLICK, buttonClickHandler);function buttonClickHandler(event:MouseEvent):void { navigateToURL(new URLRequest("http://www.adobe.com")); trace("I'm clicked");}
Right now all of my links use the Properties text link feature, which continues to deliver target=blank function despite my having deleted the target and saved and republished way more than once.
[URL]
I am trying to create a personal portfolio website using Flash CS4. Understand that there are a number of ways to create web pages using Flash. One way is to create separate swf files for the web pages and load them when the web page is requested. Another way is to put the pages in separate frames in the same swf file or to use scenes and use gotoAndPlay(). Another possible way is to create separate movie clips for the web pages.
View 1 RepliesI have several buttons on my "Index.swf" file. I am calling the Index.swf file in Microsoft Publisher 2007 and created "Index.html" page.
In the same way I have several individual flash files like, About.swf, Contact.swf, And each files are in seperate webpages like, About.html, Contact.html.
Suppose, when I click on a button call "About" on Index.html page. The About.html page opens but in a different window. Not in the same window.
I would like to open a webpage by clicking on a button but in a same window. Don't want to open each webpage on defferent browser window. [code]...
I posted this on the Apache board, but after 4 days with no reply am still needing an answer so I thought I'd try here.
Needing a testing server I installed Apache 2.2 and PHP onto my Windows XP Laptop. That went great. However I can't run flash modules, like, for example, a video player streaming an FLV.
I was only able to install Apache and PHP by following directions, but don't really know much about such installs.
What do I need to do to make Apache run (display) flash?
I'm writing a small game app in Flash, and I'm wondering what the benefits of having one giant SWF loading everything vs multiple webpages and multiple SWF's.
View 1 RepliesI code primarily in PHP and Perl. I have a client who is insisting on seeking video submissions (any encoding) from the public via one of their pages rather than letting YouTube do its job.Server in question is a virtual machine and I can adjust ini settings for max post, max upload size etc as needed.My initial thought is to use a Flash based uploader with PHP on the back end but I wondered if someone might have useful advice and experience on the subject?
View 6 RepliesI have a flash application (a game) and it needs to pass data to a php page to save the user, and the user's score. However I don't want the user to be able to alter the score him/herself or to initial a scoring without using the application. What is the best way to do this?
View 3 RepliesI've been building a website for a friend: WEMI.
The thing is I'm using a script I bought from Activeden.net which is awesome and works great for displaying external webpage's within you flash site.
However, there are a few issues. If you visit the link above (WEMI) and navigate to either "Till salu" or "Frmedlade hem" you'll notice that the popup is not positioned in the middle. Also, the popup only goes away if you interact with it, such as scrolling down or something like that. You can't just click on another button, say "Kontakta oss" and continue navigate. I just won't go away.
"You can call setInvisible(); through the popup reference (in the example called p) and to center it you can add a resize event listener to the stage and in the callback function set the x and y of the popup"[code]...
Gotta question about the combo box component included w/Flash MX 2004... The thing I'm trying to do is make a list/combo drop down navigation, so that when the user drops down the box and selects that item they are taken to another .html page... I have populated the box using and array by using the .push method & bound the data box via the .dataProvider method...
View 2 RepliesHow do I link my 3 flash web pages (with: Flash9/actionscript3.0) ? What do I need to write in "actionscript"...in order for me to go in to my 2nd & 3rd page...on my web site...when I click the link button?
View 1 RepliesIs it true that Google cant recognize text paragraphs etc within a flash website ? Theres been mixed opinions about this whereas im able to see it identifying text within flash homepages that ive made. Is this because the text is also stored into the html counterpart when we hit publish ?
Of this is true then google cant see text in .swf files that contain text but load into a container flash file. Eg. the home page contains the html counterpart. But then hitting enter loads another swf into the original html home page. In other words the file thats been external loaded doesnt have a html counterpart. Then google cant see text thats within those loaded .swf files ?
The first keyframe of each product has the following actions attached on top of a hot spot linking outbound:
on (release) {
getURL("http://www.site.com/product01");
}
[code]......
I am attempting to test several web pages built in Flex, and need to automate clicking on several videos through the Flash interface. I'm using Ruby and Watir-Webdriver, but I'm not sure how to interact with Flash using them.
View 1 Replies