ActionScript 2.0 :: Flash8 - Communicating Between Swfs Via Php?
Jan 31, 2010
I'm using a wordpress theme, and making a flash banner which contains thumbnails that preview different 'projects', i.e. sets of images.
These thumnails will act as buttons. I want the thumbnail to load a generic php page (i.e. the skeleton stays the same for each project) which contains an swf movie which loads content based on the thumbnail clicked.
Here's an image to help illustrate:
Can I use loadVars to send variables from swf > php > swf?
View 6 Replies
Similar Posts:
Jul 10, 2009
Okay so i heard it was possible but im not sure.
Example: i have 1 main swf containing everything. inside that swf i load 1.swf
can 1.swf share the same vars and everything as the main swf? such as.. if i click a button in 1.swf, then something will happen in my main movie.
View 3 Replies
Jan 20, 2010
I want to communicate between a embeded swf and the main swf. I want my main swf to tell the embeded swf to do something like gotoandplay(3)Main.swf loads Sub.swf into a empty movie clip called imageArea._mc.Is it possible to have the main swf tell my sub to do something?[code]
View 1 Replies
Aug 16, 2007
I have a main swf(parent) and a sub swf(child) that I have loaded into the parent swf. I am trying to make a button in the child swf effect the parent swf. I mainly want the child swf to communicate with the parent and tell it to make a movie clip visible and start to play.
View 5 Replies
Sep 7, 2010
So if I have several external swfs embedded in one big one, in what way can I communicate between them?Specifically,
-the main swf needs to know when buttons have been pressed in an embedded one, and it needs to tell all the other embedded ones about it.
-the embedded swfs need to intelligently resize and shuffle around each other, while keeping their coordinate origins in the top corner.How do I go about this?
View 17 Replies
Apr 22, 2005
I'm looking for the best method to communicate different swfs embedded in the same html. It would be a simple interaction like passing variables from one to the other.
View 1 Replies
Nov 10, 2010
How to make one swf make another swf play on the timeline, both swf on the same page. I need it so when I rollover the first swf it begins to play the timeline but as soon as I roll over that swf, it causes another swf on the webpage to play its timeline as well.
View 1 Replies
Jan 24, 2010
I'm loading movies into my parent movie, and i was wondering if it was possible to communicate between the two - so i could swap out other external SWFs (in the parent) based on input in the loaded movie.I'm still relatively new to Action Script, and have been learning quick, but i have been unsuccessful in my attempts so far.
View 3 Replies
Sep 28, 2010
I am trying to create an fla file which will load and play an flv file. Once the flv reaches the end I then need it to load in another flv file which will then loop continuosly thereafter.
I have found some AS3 code to do this but I need it in AS2 as i also need to get the file to communicate with an audio player file.
Ultimately I need to have the video file hold on loading and then start playing once the audio player has loaded and started playing.
video loading/playing/looping and/or the communication between 2 swf files to trigger the video playing
View 1 Replies
Jun 6, 2010
Can you save/publish a .swf from a .swf? For example, I want to make a .swf where the user can move around X's and O's representing players (say basketball) in order to depict a set play. There's a button to create keyframes for the X's and O's to tween between. And then an input text box to name the play. Can the play be saved? Something like this: [URL] Except I want anyone to be able to author plays online from my .swf rather than only me from my copy of Adobe Flash CS3.
View 1 Replies
Jul 5, 2010
On my html page I have two frames, one for navigation and the other for content. The navigation menu is an swf. Most of the content is html, except for the 'gallery' page.
The thumbnails for the gallery appear within the navigation. I can get the pictures to load from the thumbnails into the 'content' frame using LoadVars sendAndLoad.
However, doing this means that the flash gallery refreshes itself each time a thumbnail is clicked (thereby losing the transition effect).
So, how do I load the images in the other frame without reloading the flash??
Could I do it using external interface? ..
View 2 Replies
May 23, 2008
detailed as possible. Took basic Flash classes, but no AS other than searching online, taking a couple Kirupa tutorials, so it's all greek tho recognizably so. I have 10 individual "scenes" currently in one swf file, but would love to break these apart individually, and load each into a "container" swf with a "random" code (so each visit to my site starts differently) which I've located and tested with Kirupa's super "Loading random movies" tutorial. Question is: currently I have active buttons in each scene which advance playhead to the next scene. How can I code these to load another swf into the main "container" file and kill/replace the current swf?
Another tutorial "Transitions between external swfs" suggests "if your buttons are not located on the main timeline, you will have to change the path to the container movieclip" - but doesn't show exactly how to do this, and I have to say I can't figure the "path" out! Another issue I foresee is that I'll need the script to automatically pull in the next swf file when the current one finishes, if the visitor doesn't click the button first... Haven't been able to find this with a few hours searching, though some threads come close.
View 1 Replies
Jun 3, 2011
I am loading a different external SWF into each one using Load External SWF behavior.Although each SWF is a different file, they are exact copies of each other (have exact same functionality); all 3 are text boxes with both scrollbar scrolling and mousewheel scrolling.Problem is, when on the stage at the same time, they all three respond to mousewheel scroll at the same time. I need them each to respond to users' mousewheel scroll only if the mouse is over the respective area (so that way they don't all scroll at the same time).The file was developed for me and the developer is not available at this time.
View 1 Replies
Jan 26, 2010
I have a Master.swf which loads in a game, lets call it A.swf. Once the game is finished, Master.swf then loads the home page, lets call it B.swf. I have this working.
I have a progress chart in my home page which tracks the user's progress in the game (like number of successful attempts, number of items collected etc etc). If a user completes the game, and the home page is loaded, then how do I get the newly updated info to display in the home page?
View 1 Replies
Sep 11, 2009
I have a main fla file which loads an external swf into an empty movieclip on the main timeline which works fine but I want a button in the external swf to load another external swf into another empty movie clip on the main timeline.eg. start.swf loads UKEIAMap.swf into (empty movie clip within start.swf) MapLoader_mc then a button havant_b within UKEIAMap.swf needs to load HavantProjectSheet.swf into (empty movie clip within start.swf) ProjectSheetLoader_mc without unloading UKEIAMap.swf
View 3 Replies
Nov 13, 2010
I am loading eight external swfs by way of eight buttons with actionscript to remove the swfs and sound after a new button is clicked. This works fine except that as soon as you get to the frame where the actionscript is all the swfs load at one time on top of each other. I don't want any to load until the button is clicked for the right one. MouseEvent listener works but only after all the swfs have loaded. How do I get the swfs to load only when the buttons are clicked. I can't figure out what I am doing wrong.
[Code]...
View 5 Replies
Apr 19, 2009
i have seen this done where a flash file knows what page it's on by some piece of code on the html page. It could have been php or java i don't know but i would like to know how to do that. That way i create one flash nav bar and it can tell what page it's on so i can make it so you can't click the page your on.Let say i have three pages Home, About us and Contact us and build a flash navigation for it. Some where in the HTML documents there is a code that tells flash what page it is. Flash reads this info and knows "oh i am on the Home page" or "i'm on the Contact us page" and will respond accordingly.
View 2 Replies
May 13, 2009
Im working on a project wherein I have the main fla tied to a document class entitled MyContent. The main fla consists of buttons and textfields, etc. External swfs are loaded when the buttons are pressed. My question is what code would I have to include in one of the external swfs to allow it to be able to change the content of one of the textfields, which was assigned dynamically in the MyContent class? The code within the MyContent class consists of a dynamic text field on the stage named longDesc and a string named long1. ex:
Code: longDesc.htmlText=long1; In the external swfs I have images that are enlarged on a click event and would like to be able to have the textfield in the MyContent classed changed as each image is selected through code in the external swf.
View 4 Replies
Mar 12, 2009
I use loadVars to communicate with a .php file. When theflash files is on the same domain url, let'sthe .php file the communication between flash and php works. When Iput the flash file on another domain than the .php file (somethingcommunication process doesn't work anymore
View 3 Replies
Jun 9, 2009
I have finally figured out how to preload, and gotten my main movie to load an external swf properly. My last hang up, is how to speak to that loaded swf, with a button added above it in the main timeline.So, my button is Nextbtn (added via addChild), and my swf is titled "about_mov.swf", when it is loaded, it goes to frame 10 and stops, what I want to happen, is when you click the NextBtn, that loaded swf advances to frame 11. Just not sure how to reference it properly, and hping i can get a quick solution on it.
View 5 Replies
Jul 19, 2009
I have a flash container that loads other flash files that have been made in Adobe Captivate, (essentially just normal SWF files) and on top of that I have other SWF widget files that I have created as it's children to extend default Captivate functionality. So essentially i have 3 'levels' of loaded SWF's.Container -> Captivate SWF -> WidgetThe problem lies in the middle - I don't know how Captivate is arranging its variables, events and loaded children since I don't have access to it's code. What I want to do, is to get my container SWF communicating with the Widget one and vice versa, but I can't get the hiearchy working... I can send values to the "stage" via the widget, but not vice versa.
So firstly, since I don't have the SWF code -- Is there a way to list all variables inside a child or parent so I can work this out?- Is there a way I can tell when a child or parent is triggering an event? (especially when I don't know the names/functions of the event)- and is there any easier way I could be going about this that i'm not seeing?
View 5 Replies
Nov 15, 2010
I have loaded an AS2 swf inside another AS2 swf using MovieClipLoader. I have no control(cannot edit) over the child swf. Is there a way I can communicate with the child swf from the parent swf. The child swf is not accepting any LocalConnection Objects. Can I call a method in the child swf some other way?
View 2 Replies
Jul 26, 2009
I can successfully call ajax-like functions from my Flash header to update my page. But how can I update the SWF with calls from my page. My page is XHTML. When a link is clicked, I would like the Flash header to move to a specific keyframe.
View 0 Replies
Nov 30, 2009
I seem to be having issues with sendAndLoad() from different scenes.When I load the .swf (ctrl+enter) the communication is fine, when I naviget to scene2, the same code doesn't seem to execute at all...
Code:
//--------HERE WE SEND THE DATA--------//
var myLv:LoadVars = new LoadVars();
[code].....
View 1 Replies
Jun 7, 2010
I couldn't find out which protocol, whether JSON or XML, to use better when communicating with php server and actionscript 3. The data size sent out from server to as3 could be a bit big so I need to choose depending on which one works faster.
View 9 Replies
May 8, 2009
I have added an attachment to this file. What I want to happen is, when I click 'blueBtn' I would like 'pic1' to fade to alpha:0 (using TweenMax)... It seems simple enough but I just cant get it to work.On the Greensock Forum someone gave me this bit of code without any real explanation, how do I put it to use?:[code]
View 8 Replies
Oct 25, 2006
Is there a way or is it possible for twoor more swf files communicating? Example, if I have test1.swf and test.swf, test1.swf can change the variable values in test2.swf or vice versa without reloading. Is this possible? How?
View 6 Replies
Jul 18, 2008
I want to load in a new _level *.swf. This new level contains a button which will have a stop command, which I want to work with an MC in the _root *.swf level.
_level1
Code:
loadMovieNum("level2.swf",2);
View 2 Replies
Feb 17, 2009
I need to connect to a web service and call back xml data and all I get so far is undefined
My code looks like the following:
Code:
import mx.services.WebService;
blackBox_mc._visible = false;
myWebService = new WebService("http://link_to_webservice");
[Code]....
Is there anything wrong with my web services call? At the moment when it connects I just want a box to turn on and then later on find a way of splitting up the xml data and producing results.
View 1 Replies
Jan 26, 2009
I'm trying to call a function from a class that I've instantiated on the main timeline from another class that I've also instantiated on the timeline.The function I'm trying to call adds a line to a string that acts as a game terminal so that even if the game glitches for someone without the source code, it would be possible to read the variable changes and functions called. (it also doubles up as an input for unlocking characters and levels that are otherwise hidden)Main Timeline:
Code:
import britland.Character;
import game.terminal;
var GameTerm=new Terminal();[code]....
I've tried both "flash.display.DisplayObject.stage" and "this.parent.parent" here after discovered that "_root" has been removed and "root" doesn't work in the same way.
View 6 Replies