ActionScript 2.0 :: Calling A Movieclip With A PHP Thread?
Oct 30, 2009
In a flash movie, I'd like a user to be able to have a choice of buttons, each of which would add a movie clip. (E.g. If they click button "A" it will add a barking dog, if they click button "B" it will add a running cat, etc.)
I then want the user to be able to e-mail this movie with a PHP form (which I know how to do) but in the URL string, it will load the movie (dog/cat) that the user has selected. That way, when their friend receives the e-mail, it will take them to a page with the flash movie that shows the movieclip their friend chose.
View 3 Replies
Similar Posts:
Jan 14, 2012
For some reason, the same code works now, without any problem at all. I don't know what happened, or why, but I no longer have this problem Here's the original post: To put simply, I created a MovieClip, put it with addChild() to stage, and when I tried to call this piece of code:
[Code]...
View 2 Replies
Mar 21, 2007
I'm trying to do somthing like this:
class Timer extends MovieClip
{
// constructor
[code].....
View 3 Replies
Feb 4, 2010
I have to call a movieclip inside of another movieclip.
Let say a movieclip with an instance name location_mc is inside a movieclip with and instance name menu_mc.
How the scripting will be if I want to call the location movieclip.
Everything was working well until I put all my buttons inside the menu moveiclip because I need to do something else.
This is my code which I know is wrong but if just to give you an idea of what I have got:
ActionScript Code:
fitzrovia_mc.buttonMode = true;
location_mc.buttonMode = true;
apartments_mc.buttonMode = true;
[Code].....
View 2 Replies
Aug 8, 2010
how to add a file to a hread?editing a small falsh animati
View 1 Replies
Apr 27, 2007
While we have a dedicated AS3 forum, we know that a lot of Flex 2 users will cross back and forth across forums because while Flex's core scripting is MXML, it fully supports AS3 as well so it's confusing sometimes what forum to post in and who is best suited to offer help. A lot of topics have been covered in the last 6-8 months at a lot of the more well known guru sites and popular blogs and as we get going we will link up anything that might be of use to users in here.Url...
View 7 Replies
Sep 16, 2009
I posted a thread in AS3 forum and uploaded an attachment. I would like to know how to delete an attachment from a thread, after it has been posted. I've been looking for this option, but couldn't find it.
View 1 Replies
Feb 17, 2011
i know the question has been posted before, but i can't seem to stop incoming emails from differentsections of the forum (1 seciton is the ACTION SCTIPT 3)Under email notifications, i currently see "recieve email notifications". I should see that and leave it that way, right?
View 1 Replies
Sep 6, 2010
I have a method that I want to be enqueued to the UI thread message pump. How is this done in actionscript? Basically I am looking for the equivalent of System.Windows.Deployment.Current.Dispatcher.BeginInvoke() in actionscript.
View 1 Replies
Jul 14, 2009
I understand the Flash and AS3 is single-threaded, at least at the user level. I would like to understand how asynchronous data loading is handled by the Flash player.
For instance, if I run CPU-intensive code that runs beyond the normal frame (lets say it runs on ENTER_FRAME, and consumes 1/4 per call). Does this leave any CPU cycles to load data from a URLLoader?
If http loading is truly synchronous, right down to handling the TCP/IP stack, one would get horrible performance. In Windows programming, I can do http access asynchronously (in which case the Windows libraries are doing either input on a separate thread, or doing hardware-level interrupts to handle the data -- I provide an asynchronous callback that may be on its own thread). Or, I can do synchronous download, in which case there will be hardware buffering, but my application is actively waiting for each buffer of data to be delivered by the hardware/OS combination.
URLLoader is asynchronous, but what does that mean? Does it mean that I can run the CPU and still download data? Or, will my download speed slow to a crawl if my Flash application is under heavy CPU load? Understanding how this works will help me design my product better, which both uses a lot of CPU, and downloads a lot of data (to the bandwidth limit of the network, if possible).
View 2 Replies
May 30, 2010
I know that the thread concept (as a class) does not exist in as3, but I don't understand very well the internal execution when I'm sending/receiving data via sockects.timer.addEventListener(TimerEvent.TIMER, endData);socket.addEventListener(ProgressEvent.SOCKET_DATA, receiveData);(The former event detector is just for sending data every X ms. The second one is activated when I receive something from the socket.)Then, the question is: "sendData" is executing in a different thread that "receiveData"?
View 4 Replies
Nov 23, 2011
How to flush SharedObject in a separate thread? FMS is blocking the program during write, and to save more than 2,000SharedObject takes about 15 seconds.
View 2 Replies
Jun 22, 2009
Whenever I debug my AIR app it keeps suspending at a certain line of code...it doesn't give me a reason why, it just says Main Thread (Suspended) No error, no breakpoint at this location either. If I comment out the code so that, that line does not execute, it just does the same thing on a different line of code.
[Code].....
View 2 Replies
Mar 10, 2011
As I know. Flex/AS is single threaded.I want to write an application that talking to server side, also display the data streamed from server.Since Flex is single threaded. I am not sure how could I do this.Better not involve something like "implement your own multi-thread model"
View 1 Replies
Jan 22, 2012
I am aware that Action Script does not provide multithreading so when writing flex application we are limited to work on one thread. which is ok for rendering my UI.
However some questions arise when preferring flex over silverlight:
As a UI layer single thread is good enough but is it fair to assume that for Aync httpservice like operations in flex , internally it would use some worker threads to manage the async operation and then come back to the main thread ? it looks like it does since my UI does not freeze.Can the flex/flash player deal with multiple httpservice calls in parallel ? ( e.g more than one section of the UI loading data at the same time.)How about the animation stuff ( e.g the parallel animation ) - does flash player internally leverages some threading for accelerating graphics or is it all done on the UI thread ?
View 1 Replies
Jul 29, 2009
So within my Flash document I have a rollover movieclip that contains a UI scrollbar. My question is, can I modify this rollover script to be active until it reachs a certain frame in the animation and then become inactive so that the scrollbar works? Or, is there some script that I can use to make the UI scrollbar active within the rollover clip?
[Code]...
View 6 Replies
Dec 6, 2010
I have a Delphi 6 Pro program with a TWebBrowser component that loads a web page that embeds a Cool Iris Wall. The Cool Iris wall is an SWF object which means that when running, the execution happens inside the Adobe Flash player, an ActiveX or similar object I believe. The problem I am having is that sometimes when the Wall is loading pictures/videos from the web, it takes a big hit on the CPU on the main UI thread. I know that TWebBrowser moves most of its operations on to a background thread to keep the main UI thread happy, but something the Adobe Flash Player is doing is happening on the main UI thread and its causing my program much grief. Is there a way to move the Adobe Flash Player on to a background thread?
[UPDATE - 12/7/2010] - After a marathon probing and debugging session it turns out that the problem had to do with the Cool Iris Wall's Flickr proxy. You can interface with the Wall in two main ways: 1) You pass them special Flickr api protocol URLs and let them talk to Flickr for you, for example [URL]..loads the Wall with the results of a Flickr keyword search for puppy. The advantage to this approach is that they do all the work for you necessary to make the query to Flickr and build the Wall's contents. 2) You build an RSS media feed yourself containing the photo stream item data and feed it to the Wall.
I was using technique #1. The problem is with #1 is that when their servers have trouble building the Flickr feed for you (for whatever unknown reason), their host SWF puts a heavy load on the CPU interfering with the main UI thread's operation. I converted my entire code base to work directly with the Flickr API and create the feed myself using the second technique and the problem vanished.
View 1 Replies
Jun 6, 2009
I am trying to make a multiplayer card game which has 6 players. Each player can hold 2 cards.
The movie clip names are :
p1c1 // Player 1 card 1
p1c2 // Player 1 card 2
[code].....
View 2 Replies
Nov 12, 2011
I am writing a simple Tcp server in Unity and have my Flash application connects to it.I found a great tutorial on threaded Tcp server online, and my flash app connects to it nicely. However, I am not able to send data outside of the listening thread to the connected client. I tried to create a global reference of the Tcpclient obtained inside of the thread. However, that reference (sclient) only works inside of the listening thread, printed Null to console outside of the thread. There must be something I can do to retain the TCP client reference for later use or access it from outside of block thread.
[Code]...
View 2 Replies
May 14, 2009
I've been reading over numerous tutorials and guides as well as the Language Reference for ActionScript 3.0 but cannot quite seem to find anything to learn what I need (which I guess is because everything I have read assumes you would already know how to do this sort of thing).On my stage I have one button (mybtn) and one MovieClip. Within the MovieClip I have numerous other MovieClips (the different parts of a character, leg, arm, head, etc).
One of those MovieClips, lets call it "upper_left_arm" (within the other MovieClip "character") is comprised of two Keyframes, frame 1 and frame 2. There is also a second layer with AS in it, which just has "stop()" in it so it doesn't endlessly play.When I click the button on my stage I want to change the playhead to frame 2 and then stop within the "upper_left_arm" MovieClip.I gather that I almost certainly need to use gotoAndStop.However, most information I have found concerning buttons, AS3 and the gotoAndStop command relate to "scenes" which as far as I can tell are nothing to do with what I want.
Code:
stop();mybtn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
upper_left_arm.gotoAndStop(2);
}
The "(2)" is the part I think I have horribly wrong, I've tried various other things after "upper_left_arm.gotoAndStop" with no success. In fact, the MovieClip "upper_left_arm" now loops round merrily despite the "stop()" in the AS in that MovieClip itself .
View 2 Replies
Jun 17, 2009
This code is inside a movie clip on the main stage. Also on the stage i have a dynamic textbox "tabText". How can i call tabText from inside my movieClip?
ActionScript Code:
homeTab.addEventListener(MouseEvent.MOUSE_DOWN, gotoHome);
function gotoHome(event:MouseEvent):void{
[code]....
View 4 Replies
Jul 6, 2005
I have a function on the first frame of a movieclip with a parameter, The following is the code I have on my movieclip:
Code:
onClipEvent (enterFrame) {
tellTarget("loader"){
picture(9);
}
}
View 2 Replies
Jun 4, 2009
I'm sure this is a quick and easy question but I've been at it for a while and can't seem to get what the problem is.Inside my movieclip called "movies", I created a dynamic movieclip
Code:
var my_movie:MovieClip = new MovieClip;
addChild(my_movie)
[code].....
View 2 Replies
Apr 27, 2010
I've got a movieclip on the root of the stage called "bgImg", in that clip I've made this function:
Actionscript Code:[code]..........When you click a button in the nav it loads a movieclip to the stage from the library, inside this movieclip I have a row of buttons,when you click one of these I want to call the function in the movieclip on the root (ie. the function inside "bgImg" .
View 3 Replies
Sep 16, 2007
I have a function I made in the root timeline. Inside of a movie clip, I have a button which calls the function in the actions layer in the root timelime.. how do I make this work?
[Code]...
View 5 Replies
Dec 14, 2009
Hypothetically, I have a movieclip menu that's created using a class menu.as at runtime. When I instantiate that class on the stage of the main swf, how would I go about telling that stage what to do on a specific click? For instance, if I click button1 on the menu, how do I tell the stage to turn random_object's alpha down to 0?
Important note - buttons in the menu class are loaded dynamically, and there is no way (that I know of) of binding them specifically to event listeners on the main swf stage as in "menu.button1.addEventListener(...)". To summarize my question - how do I control the main stage from within a movieclip, without assigning eventListeners on that main stage?
I have managed to make it work using this method: Inside the class, I add an event listener to each button. On CLICK, the button calls e.currentTarget.root.desiredFunction() where desiredFunction is the function on the main swf stage I want to run. Is there a more efficient or clean way of doing this that anyone knows of?
View 6 Replies
Jan 26, 2010
If I have a MovieClip, simply a blue square with class AS file called blueBox, in the constructor of the blueBox.as file I have:
this.addEventListener(MouseEvent.MOUSE_DOWN, sayHello);
Why does this not call the sayHello method when I click the movieclip on the stage? I know on the stage that I could grab the instance of my bluesquare movieclip and add an event listener to it that way, but I just wanted to 'encapsulate' in a bit more.
View 5 Replies
May 25, 2010
ActionScript Code:
onClipEvent(enterFrame){
this.slot1incr();
[code]....
View 0 Replies
Oct 18, 2011
I'm having a problem where I have a button on the main timeline that when clicked needs to gotoAndStop first on frame 3, where there is a movieclip, that i want it to gotoAndStop on frame 30 (of that movieclip). Any ideas?
I can't have it just gotoAndStop on frame 3 and then have the code to gotoAndStop on frame 30 either because I need to be able to have the moviecliped called like this a number of different times.
View 2 Replies
Dec 14, 2011
I am creating movieclips into which I want to load thumbnails which are to be loaded dynamically. I'm not sure if the solution I am trying to build is the more effective way to do this; I'm still quite a noobie.
Each movieclip container which I will use hold the thumbnails is of a size to hold 16 thumbs, so the number of holder movieclips required is calculated at the time the xml loads; with the movieclips then being created, named and stored in an array. (The idea is to then move between these movieclips (and so the thumbs) using previous and next buttons) - however, I'm not at that stage yet!
However, when I call each movieclip to place the loaded thumbs in, the code throws the "#1010: A term is undefined and has no properties" Error. I think this is a problem with the array; and possibly the mc not being defined properly. However, I am not sure where my problem is.
[Code]...
View 7 Replies