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");

[code]......

View 7 Replies


Similar Posts:


ActionScript 3.0 :: Why Stage.addEventListener Does Not Respond When On Capture Phase

Nov 7, 2010

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...

[Code].....

View 1 Replies

ActionScript 3.0 :: Phase Out One Clip And Bring In Another

Jan 18, 2009

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?

View 3 Replies

Professional :: Error In Phase Of Assigniment?

Jan 6, 2011

I created the following action script named "sketch.as" :

package
{
import flash.display.Sprite;

[code]....

View 7 Replies

Flex :: Change The Phase & Goal In Which The Plugin Is Run

Nov 18, 2009

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?

[Code]...

View 2 Replies

ActionScript 3.0 :: Accessing Data In CreateChildren Phase?

Sep 21, 2009

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?

View 1 Replies

ActionScript 3.0 :: Avatar/character Creator - Items Appear Over Other Items When The Corresponding Button Is Pressed?

Feb 9, 2010

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.

View 1 Replies

Actionscript 3 :: Selecting Flex Chart Items And Displaying Sum Of Items Selected

Aug 26, 2009

I would like to use the selectionMode=multiple described in the Flex docs, but with a few modifications:

1) I would like the box that the user drags over the graph to remain there until the user drags a new one.

2) In the top right corner of the box I want to display the sum of the items selected by that box.

View 1 Replies

Flex :: Make List Items As Tool Tips For Combo Box Items?

Dec 1, 2009

How to make list items as tool tips for combo box items?

View 2 Replies

Flex :: Force The List To Load All The Items, Not Only The Visible Items?

Aug 15, 2010

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 ?

View 1 Replies

Actionscript 3.0 :: Remove The Items In The Combobox Later (without Removing Items In The Dataprovider)?

Feb 6, 2009

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

View 1 Replies

Asp.net Mvc :: Capturing Video From My Website

Aug 18, 2011

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

View 4 Replies

ActionScript 2.0 :: Flash8 Capturing SWF Parameter Name?

Nov 23, 2009

There is a way to capture the list of parameters passed to SWF? Suppose that I have the following url:

Code:
mymovie.swf?level=1&score=100&23764826347

I would like to capture:

level
score
23764826347

Not the contents, but the NAME of the parameters!

This way, I can, for instances, pass a parameter that be the value itself, such as a code, like this:

Code:
mymovie.swf?427642833467

View 2 Replies

ActionScript 3.0 :: Capturing X,y Coordinates For Two Objects?

Mar 29, 2010

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

[code]....

View 1 Replies

ActionScript 3.0 :: Capturing BitmapData While In FullScreen

Jun 25, 2009

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 ] --------///

[code].....

View 14 Replies

ActionScript 3.0 :: Capturing The Scroll Wheel?

Mar 13, 2010

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?

View 3 Replies

ActionScript 3.0 :: Screen Capturing For Flash CS4?

Aug 17, 2010

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?)

View 4 Replies

ActionScript 3.0 :: Capturing Text Input?

Apr 3, 2012

This question was posted in response to the following article:[URL]

View 10 Replies

Capturing Images From A Flash Gallery

May 1, 2009

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?

View 3 Replies

As3 :: Flash - Dynamic Button Name Capturing

Mar 19, 2010

i am using this code below to dynamically capture the name of the button pressed and then playing the related balloon movie clip animation.

[Code]...

View 2 Replies

Flex :: Capturing Key Events In A Mx:Image?

May 6, 2010

I'm trying to capture key events in a mx:Image and I can't get it to work.

<?xml version="1.0" encoding="utf-8" ?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" />
<mx:Canvas width="100%" height="100%">

[code]....

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.

View 2 Replies

Actionscript 3 :: ALT Capturing In Flex Apps (yet Again)?

Jan 6, 2011

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.

View 1 Replies

Flash :: Capturing A Part Of A Movieclip?

May 10, 2011

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.

View 1 Replies

ActionScript 2.0 :: Capturing Log In Variables From Server?

Nov 11, 2010

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).

View 0 Replies

ActionScript 3.0 :: Best Method For Capturing Time?

Feb 4, 2011

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)?

View 3 Replies

Actionscript 3.0 :: Capturing A Button Sequence

Oct 21, 2010

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]

View 2 Replies

ActionScript 2.0 :: Capturing Part Of A MovieClip?

Jan 20, 2006

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.

View 3 Replies

ActionScript 2.0 :: Capturing Redirected Url In Flash 8

Sep 11, 2006

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 ?

View 1 Replies

ActionScript 2.0 :: Capturing The Stage By User?

Apr 10, 2007

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

View 2 Replies

ActionScript 2.0 :: Any Way Of Capturing GetTimer Result?

May 18, 2007

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.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved