CS3 Stringing Swfs Together In Flash Using MC Calls
May 15, 2009
I made an animation and I split it up into 3 swfs. Now I want to put them together so it plays one and then Calls the other and plays it when the first one is done and so forth.
I'm trying to understand how to make referrences from one movie clip to another where one has "loaded" the other. I'm not seeing how to relate the two.keep in mind that I've just gotten comfortable with spittin things up and loading them from external swfs, etc.Lets say that I have a main.swf with a set of 3 buttons(self managed MovieClips actually) that each dynamically load 3 swfs with individual content The first of these sub movie clips(e.g. web.swff) has a set off say 3 thumbnails. I want to be able to have these thumbnails invoke the actions of the 3 buttons up in the main calling movie but I am not clear how to go about calling these functions when they are not in the same scope as the main move. I keep thinking that if I had these thumbnails in a clip within my main.but I still hit this same issue of making a correct reference.This is just a current example. If there is a simpler or better way to explain this kind of communication feel frer to ignore this example or tell me to just go read a tutorial somewhere
// snippet from main.flafunction click_web( e ) { var chl_mc:MovieClip = my_lc.add_content("web.swf");} function click_motion( e ) { my_lc.add_content("motion.swf");}
I have a fla that starts with a preloader that works properly. I then addChild a movie and it plays. I would like to have another movie load on a separate upper layer (so you can see the movie below it, like a background) with three different movies that can be advanced by a button. Here is my code so far. It loads the preloader up, then advances to drawing the graph. From here I've been adding a conditional checking to see if the movie is done playing -- playGraph.addEventListener(Event.ENTER_FRAME,check done,false,0,true); was the tip I was given -- but if I use an if statement, it loops over and over
Here's the code. Hopefully it makes sense.
[Code]......
From the addChild I assume that I want to do 'if graph is done playing, start with the first part of the movie', but it gets caught in a loop if I trace 'done'.
so, i have some dynamic textfields...i need to set the space between them so that they line up, one after the other. the data reloads when you click on a mouse, and the widths have to be variable.
here's what i did:
Code: var dateline:Sprite = new Sprite(); dateline.x = 0; dateline.y = -51;
I have a IP Camera setup which, when an event is triggered, uploads a bunch of jpegs to my webserver in a timestamped directory. I want to create a flash app which takes images from an individual directory, strings them together and creates a watchable clip as opposed to flicking through each image individually.
I've got a website where I want people to be able to upload their own SWFs which are then displayed on the page - mainly for timed image displays etc...I'm concerned about javascript security as flash can call JS functions, theoretically if you knew which JS commands to call (e.g. some AJAX stuff) then external people could do some real damage.So my question is, is there anyway I can disable calling javascript from within flash? Possibly something in the embed object paramaters tags?
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.
I'm trying to call an function in flash from xml. so I used <a> tag and asfunction. But how come when it calls a built-in function in flash, it works. and when it calls a custom function, it just won't work???
We have a flash game embedded in a web page (using SWFObject v2.2) and there are some links on the page that call into the flash in the following manner:
window.document["flashObjectId"].flashMethod();
This has worked great on all browsers we have tried including IE7 and 8, however on IE9 it generates the following error: "SCRIPT438: Object doesn't support this property or method".
It does work in compatibility mode so I tried adding a meta tag to tell IE9 to use compatibility mode by default, however that didn't work because our game runs in an IFrame within Facebook.
I have tried referencing the flash object every way I could think of in the Javascript but I always get that same error message in IE9.
At work we have a lot of AS3 code that conditionally performs logging or assertions like so:
[Code]...
Is there any way to do something similar in AS3, or do we have to do the conditional compilation blocks around everything? I have been looking around manuals but have found nothing useful yet.
I am trying to make sprite sheets for rotation of DisplayObjects, and it seems that the gotoAndStop() calls are not working.Here's an example of what's going on:
I'm working with a third party swf that I cannot change and am charged with making it work in a local environment, loaded within a container application I have built. The SWF was published for accessing the network sandbox, so whenever it invokes the ExternalInterface in a local html container, it throws a security sandbox error and kills execution. The ExternalInterface calls are all non-critical (logging) so if I can block them somehow, then I won't have a problem any more.
I'm implementing AMF service methods for an flash front-end. Normally things work fine, but we've found that if two methods are called one right after the other, the second call returns null to the flash front-end even though the method actually completes successfully on the PHP end (to verify this, I dump the return data to a file right before I return it).
I'm running into a problem while running both a Flash socket and using Ajax to load pages. Both work fine separately. I am able to browse my site using the Ajax calls, or I am able to send/receive messages through the socket. However, when the socket is connected for some reason the Ajax calls start to seemingly be put into a queue and never actually finish until I stop the socket.
If I disconnect from the socket, or close the socket on the server side, then the Ajax call immediately finishes and loads the page. The Ajax call never times out, it just waits forever, right up until I close the socket connection. In JavaScript, I'm using jQuery's $.getJSON() function to load the pages (which I thought were asynchronous calls). In Flash I'm using the basic ActionScript 3 Socket class:
We build a flash application in ActionScrip 3 which provides JS external interface calls. We load another swf on our swf. If we don't enable external swf, any JS calls through external interface works fine. However, if external swf is active, at some points when there is any JS calls through external interface, Flash player plugin crashes which also bring down the whole browser, I see that on IE and FF.
what may cause external interface call to crash Flash plugin?
[URL] I saw that and thought it was pretty interesting.. now I can definitely get the name to show up in the video no problem.. but how did they get that phone call to happen??
We recently decided to add a flash banner to our site which calls an xml file which loads the price and name for 5 separate products and keeps looping through until a user clicks a product. Unfortunately, it appears each time the file loops it calls another iteration of the xml file -- so if a user opens our homepage and walks away the xml file could be called 100s of times. My question is, can we set up the actionscript so the xml file is called just once?
user clicks a button sends a Loader to see if the user has permission if the user has permission uploads a file
Unfortunately, this gives:
SecurityError: Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press.
It appears that as a security feature, Flash 10 disallows certain functions (such as uploading a file) unless it is preceded by a mouse click or button press. However, since I am first loading the request for permission, it no longer see the MouseEvent event (presumably in the stack) and thus throws a SecurityError.
I have a bit of code that calls a custom class that I made in flash. Basically when you roll over this logo I have a function that makes a new instance of a custom class and calls it to the stage like a little pop-up text when you roll over something. Then when you roll off of it I remove it from the stage. The following code is for the first pop-up text.
I'm finding little info out there on using Flash and remoting services. Currently I'm starting out using AMFPHP which works pretty well for sending back simple sets of data but I'd like to send back complex query types which translate to RecordSets. I have two problems:
1) Is this the way it's currently done? PHP backend with AMFPHP for webservices so my Flash program can access it? Or should I be using a different setup?
2) How do I add the mx.remoting services in CS5? The only docs I find say to add it under Other Panels but I don't have the next area under that in CS5.
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
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.
I am trying to find a way to preload swfs while other swfs are playing, i've found several scripts and tutorials, but none of them seem to work for my needs.
Flash - 8 : Above is an example of what I would like to do/have done. I've gotten as far as loading the "loaded.swf" into the "start.swf" but my problem is I'd love to use that little loading action I made earlier without copying and pasting into the new movie the same actions for a different link. So, how do I load "loaded2.swf" into "loaded.swf" via the link in "loaded.swf"?
I'm trying to determine the practical difference between using the com.facebook.session.WebSession and com.facebook.session.JSSession. The documentation ([URL]) has more around WebSession - but the example I have which is closest to what solution I'm trying to implement uses JSSession and it looks like I could avoid all of the JavaScript pass-through & ExternalInterface calls I'm making. It appears that the benefit of using this new ActionScript Facebook API is to avoid having to make all of the Facebook calls via JavaScript.