ActionScript 3.0 :: Capturing The Items In The Capture Phase?
Jan 10, 2010
Scenario, you have a MC with a nested MC, and that MC has a nested MC. So mc1 contains mc2, and mc2 contains mc3. Pretty simple.I add an event listener to the top most mc (mc1) for a MouseEvent.MOUSE_OVER (that bubbles, unlike ROLL_OVER). Is there a way to get every item that the capture phase moves through?For example, rolling over mc3 fires the event with the target being mc3 and currentTarget being mc1 (as thats where the listener was added). But I want to know about mc2 being rolled over rather than mc3, and because technically mc2 is being rolled over because it contains mc3.I am using this at the moment to traverse back up the list, and check each item. But surely there is a better way.
PHP Code:
mc1.addEventListener(MouseEvent.MOUSE_OVER, f);function f(e:MouseEvent):void { var t:Object = e.target; do switch(t.name) case"mc1": trace("hit mc1");
If I have the following code which adds an event listener to the stage, why does it not respond when the capture parameter is set to true. It works fine when it is set to Target and Bubblig (false). My understanding is that all the phases happen...
What code would you use so that when a button on the main menu of a site is clicked, it plays the end of the current movie before bringing up the next?
I have a site where each page is contained in a movie, and each movie has 3 parts.
1. Intro 2. Pause where content is kept on page 3. Outro
When a button is picked to go to a new page, I would like the outro to play before loading the next movie. Is there a way to do this?
I have integrated FlexPMD into my pom.xml file but I need to change the phase & goal in which the plugin is run. Currently it runs in the site phase but I need it to run in the test or compile phase. Is this possible?
I have a custom itemRenderer based in the TreeItemRenderer. I would like to include a control depending on the object passed to the renderer; but in the createChildren method the data property is null. How to access data in this phase?
I have a project underway where I am making an interactive game. It is a personal character creator game and I need Actionscript 3 help with this.Something similar here:http:[url].... I have tried already with toggling visibility and 'gotoAndStop()' to make items appear over other items when the corresponding button is pressed, for example, when the user tries out different pants/shirts on their character.
I'm creating a facebook application in flex. I'm actually working on the friends component that shows your friends who are using the application. now, each friend has a profile image.
I created the component using a s:List element.
In the Skin Class of the element i configured the requestedColumnCount to 3, which means it shows 3 friends. i added buttons to scroll left and right in the list.
Whenever I scroll to see a different friend, for a half of a second i see no image because the List component is loading the image in order to view it.
is there a way to make the list preload all the elements so i won't have this kind of problem ?
im having some dificulties in the combobox of Flex 3, after defining the dataProvider and filling the combobox, how can i remove the items in the combobox later (without removing items in the dataprovider)? if i set the provider to "" or null, the items in the combobox are still there
Is there a how-to I can follow to help me in selecting technologies and in implementing my solution? the exact behaviour I would like to implement is as follows:
1) page loads 2) webcam starts recording 3) user hits button 4) webcam stops recording 5) video is stored on my server
I have an MVC3 app I need to enhance with video capture functionality. I don't yet understand all the pieces involved but it seems I may have to choose between Flash (which is not supported on iPhones and iPads) and Silverlight.it also seems I need a server-side component like the Flash Media Server. Honestly I'm overwhelmed with all the choices (having to learn ActionScript, Flex, what not).it just occurred to me: if anyone's come across a service that will manage the process for me, that too would be very cool. I'm thinking that maybe someone out there (haven't found them yet but maybe it's a matter of poor keywords) has servers and offers a url I could use in an iframe to have them capture the video for me
I have two columns of objects on stage, one on the left side column (A) and one on the right side (column B). Each column has 3 objects in it. For this quiz I want the user to be able to draw a line from each object in column A to the corresponding object in column B.To do this I need to capture the xy coordinates of the first object that the user clicks on and then capture the coordinates of the 2nd object the user clicks on so that I can draw a line between the two of them. Drawing the line is no problem but how do I capture the coordinates of the first object selected and then the 2nd object selected? This is as far as I've got with the code.
var clip:Shape = new Shape() var startX=0 var startY=0
I am trying to do an image capture while in full screen, however the full image area is only partially captured, or the coordinates are off (see images below). The document size is 100x700, and the stage is set not to scale / aligned to bottom.I've been able to capture the right size, however it always seems to capturing the image from the wrong start x,y position. There is some elements out of bounds but I am just trying to clip them depending on the current stage width and height. In the source files you will see a few of my attempts commented off (below/attached).Fullscreen Capture :Normal Capture :
CODE : import com.adobe.images.JPGEncoder; ///---------- [ Set Variables ] --------///
I have a Flash application in which I would like the user to scroll a UI element by moving the scroll wheel on the mouse. My problem is that the Flash application is embedded in an iframe that also has scroll bars. So when I use the scroll wheel, even when the mouse is above the Flash application, both the Flash application scrolls (like it should) but the webpage also scrolls, which I would like to avoid.
So is there some way to avoid this behavior? Can the flash application capture the mouse so that hte events no longer bubble up to the containing page?
I am currently doing Augmented Reality. I got my marker to detect my model but my problem now is how to screen capture the content that is in swf. (As in capture the dae model shown in the comp not from webcam.)
& also i just want to capture the swf window not the whole desktop.I read online, they say its impossible?
Or is it possible to call screen capture function in javascript to flash CS4? (LIke external data)
(Moreover, does anyone know how to detect multiple dae models with different markers?)
There is a site with an image gallery that uses Adobe Flash.Is there a way I could capture the images? ( Apart from print screen)Softwares like Orbit do well with .flv videos, but don't work with images.Is there something that will help me getting a direct path to the images?
When I press a key when the mouse is over the image I expect the label text to change to "Something", but nothing happens. I've done all sorts of combination of enabled and putting the keyDown on the canvas and the label as well.
I know there have been similar threads in the past but I can't seem to find a decent definitive answer / workaround for the problem I'm facing.What I'm trying to do: capture ALT+SHIFT+something keyboard events. Pretty straightforward, right?
Issue: When pressing ALT+SHIFT doesn't seem to ever shoot an event. The only combination that seems to work with ALT is CTRL+ALT +something, as pointed out here.
Question: I've read that the browser catches some of the keyboard events, but this happens with the basic flash player too - maybe that catches events too? Would love to know if there is a solution that doesn't involve messing with JS.
I have a movieclip on stage. Its 500x400. It has many children of diffent sizes added to it. How can I capture the area 300x200 of the movieclip from (0,0). Suppose there was a child at (100,100) of width and height 300 then I should be able to see from this child from 100 to 300 and 100 to 200 respectively. The rest of the area is not needed. I should be able to manipulate the captured image later. So I guess I have to capture it as a Bitmap. But how can this thing be done.
I'm building an application on our corporate server .. behind the firewall. how to get the �current logged on user� details from the environment variables that are in the request object (that comes from the user�s browser to the webserver).
Don't know if anyone here has ran into this, but I've got a toggle button, that I need to measure the amount of time that it is in the "on" position & then use that amount in a calculation. What would be the most efficient means to do this (or if it is even possible)?
I am using flash to control a toy rc car transmitter via an arduino microcontroller. I have written the code for the basic direction controls (see below). I would like to add more funtionality though by recording keypress times and have the car run through a set of movements at the click of a button. I guess I would have to use the timer class to measure the time of and inbetween the keypresses. No idea of where to star though.[code]
I just want to know if it is possible in flash to capture, let's say, a frame then save it as an image file( gif or jpeg ) to my disk. I imagine the case like this: I have an image on a single frame with a button beneath it which says "Save Image". When I click the button, the image is captured then saved to my disk as gif or jpeg.
I am totally new to Flash and SWF file.I am using Flash professional 8. I have this swf file which plays a flv from URL-xyz.com. This server redirects to the rtmp server and streams the flv from there. I would like to capture this rtmp url in my action script.The _url parameter gives me URL-xyz.com and not the redirected url.Is there any way to capture this redirected url ?
I've created a drawing app via AS and I'm trying to design a button that when pressed, the user essentially saves his/her drawing as an image file into a certain directory on the web
Is it possible to capture the time in a timer? I have some English learning games for my students that use a timer. It works fine as it is. Its starts when they click start and ends when they drag the last thing into place. What I would like to do is have a bonus scene when students do exceptionally well and get some crazy low score. I don't know how to go about capturing the end time though.