Actionscript 3 :: Check One Box Inside Another Box?
Jan 24, 2012I have tow boxes box1 and box2 i want to check whether box1 is inside the box2 using the cordinates
View 4 RepliesI have tow boxes box1 and box2 i want to check whether box1 is inside the box2 using the cordinates
View 4 RepliesHow do I check if the mouse is outside or inside the swf-window?
View 2 RepliesI saw this flash game from Orisinal where you caught cute flies by drawing a grid around the flies with same colour. The they grew larger.
1: How do you draw and fill a shape at runtime
2: How do you check what's inside the shapes boundaries ?
I would like to constantly (with an interval) check if the mouse is inside a movieclip or not. I think this should be done with hitTest, but I'm not quite sure how to use it.
View 6 RepliesI'm trying to check if a clicked element is inside of an IVisualElement in Flex 4. So I want something like "if this element is in this element, then execute function". I'm aware of the 'parent' property but this doesn't seem to work when my element is not a direct child of the element but for example 3 levels deep.
View 1 Repliesthis current situation as i cant seem to find a solution anywhere.The Coding are below:
ActionScript Code:
var xmlReq:URLRequest = new URLRequest("Beginner.xml");
var xmlloader:URLLoader = new URLLoader();
[code].....
i need to check if a point is within a rotated rectangle. I have to do this mathematically, as none of the objects are on the stage so i can't use hitTestPoint. I know the position and rotation of the rectangle, and if necessary can get the four corners as points as well.
I kind of feel silly asking this, because i am pretty sure it's not a hard thing to do, i just can't work it out and so far any google searches just bring up hitTestPoint.
I'm converting an old AS2 file into AS3 (and trying to learn AS3 at the same time).A movie clip contains a number of different animated sequences and buttons within the application trigger these different sequences.The buttons are functional only when an animation has completed playing.
In AS2, I achieved this with a var called _root.animating which was initially set to "false" and switched to true when the animation played and switched back to false at the end of the anim sequence. The buttons checked this var when clicked. Here is some of the AS2.[code]...
I'm working on creating flash games site and want to make the facebook application version of it. As the site width is bigger than canvas default width I'm trying to find the way to check if the site is loading inside facebook canvas and change the width accordingly.
View 1 RepliesActionScript Code:
import flash.events.MouseEvent;
import flash.events.Event;
[code].....
See [URL] Now there is a button called Answera, which when clicked should have a symbol (movie clip) called Check appear at the cordinated specified. Check exists in the libary (but does not have an instance name) and no where else on the stage. when I run this code I get: 1180: Call to a possibly undefined method Check. -> var rightCheck = new Check(); How is it undefinded if it exists in the libary?
View 7 RepliesThe following is my codes. This is still work in progress; so, you will see some functions with empty contents. Plus, this is my first Flex application; please bear with me. This is a quiz application that gets the questions and answers to each questions from a ColdFusion web service. There are three types of questions, True or False, Multiple Choice with single selection, and Multiple Choice with multiple selections. So, based upon the question type, the application would dynamically generate the appropriate amount of radio buttons or check boxes for the users to select. I got these working. The problem that I am having is, I am not sure how to check what the users have actually selected. In some other forums and posts on other web site, it said that I can use event.currentTarget.selectedValue to get the user selection. But when I actually do it, I got a run-time error saying, "Property selectedValue not found on mx.controls.FormItem and there is no default value." My question is, what do I need to do to capture the user selections?
[Code]...
much like the title says. how do i put code in the main timelinesuch as gotoAndPlay(x)x refering to a a frame inside a MC inside a MC.
View 5 RepliesI have done this same thing in ActionScript 3, but am not familiar with ActionScript 2, which I am forced to use for this project. I am loading products into a SWF via XML and attempting to add a click event to each dynamically-created movieclip. Simply tracing the text from a node in XML will do for now. I'd like to assign a property called "desc" or "description" to each movieclip and have it trace that property's value when clicked. Here is the relevant portion of my code as it stands:
ActionScript Code:
var iXML:XML = new XML();
iXML.ignoreWhite = true;
[Code].....
I have a transparent windows (skinnable). Inside, I'd like to preview some pdf file. BUT, in the only a black screen appear
View 3 RepliesI am trying to create a gallery where each thumb is housed inside of it's own movie clip that will have more data, but it keeps failing because it won't let me refer to the newly created instance of the movie clip. Below is what I am trying to do.
var xml:XML;
var xmlReq:URLRequest = new URLRequest("xml.xml");
var xmlLoader:URLLoader = new URLLoader();
[code]....
I am trying to create a gallery where each thumb is housed inside of it's own movie clip that will have more data, but it keeps failing because it won't let me refer to the newly created instance of the movie clip. Below is what I am trying to do.
var xml:XML;
var xmlReq:URLRequest = new URLRequest("xml.xml");
var xmlLoader:URLLoader = new URLLoader();
[Code]....
It dies every time on that last line. How do I refer to that vidThumbn instance so I can add the imageLoader? I don't know what I'm missing. It feels like it should work.
I have a flash code where i am loading an AS 2 SWF inside AS 3. The thing is if i put the AS 2 SWF on same domain its working fine but if i put AS 2 SWF on different domain it loads the SWF properly but the "stop()" written inside the AS 2 frame doesnt work... and it keeps on playing all the frames continuously...
[Code]...
I have a flash code where i am loading an AS 2 SWF inside AS 3. The thing is if i put the AS 2 SWF on same domain its working fine but if i put AS 2 SWF on different domain it loads the SWF properly but the "stop()" written inside the AS 2 frame doesnt work... and it keeps on playing all the frames continuously...
Here is the loading code..
var context:LoaderContext = new LoaderContext();
if(Security.sandboxType == Security.REMOTE){ context.securityDomain = SecurityDomain.currentDomain };
var objLoader:Loader = new Loader();var mRequest:URLRequest = new URLRequest("SomeURL.swf");objLoader.contentLoaderInfo.addEventListener(Event .COMPLETE, onSWFLoadComplete);objLoader.load(mRequest, context);
[Code]...
I have a Button that is inside MovieClip1 which is inside MovieClip2; yet when i click the Button it doesn't dispatch Event.
View 5 Repliesis there any way I can link a button inside a MC on frame1 to a frame inside another MC that is located on another frame.Ive got 2 frames in total. On the first frame Ive got an Mc and inside this one Ive got a button that needs to be linked to frame number 50 which is inside a MC located on frame number 2.
View 1 RepliesI have a button inside another button which is inside a movieclip. *whew*I have it so that when you click on the movieclip, a dialog box pops up. I have two buttons on the dialog box, but for some reason you can't click on them and when you do, the dialog box just disappears. Here's a picture of what I'm talking about, so how do i get the "YES/NO" buttons to work? Oh, the buttons are not included in that Graphic
View 6 RepliesThis may go under the php section, but I put it here because it may have more to do with AS.
I currently have a flash file and a php file. The flash file sends a byte array to the php file and the php file creates a .jpeg from it.
I'm now looking for a way for the php file to tell the flash file that it's done creating the .jpeg so the flash file can do something else.[code]...
OK so I have an .FLV playing in a div container. After and only after the viewer watches the complete .FLV I want a feedback form to come up. Now, should I use flash for this or html? What actionscript would I use for this ? Event.complete if thats even a valid command.
View 10 RepliesIs there a way to see for example what code is behind a button if I just have the swf file?
View 1 RepliesIs there a way of check if seperate movieclips have the same frame labels within them so that you can do a comparison?
& if not gotoAndStop(1)
[Code].....
I have a dictionary with objects as keys. How can I check if specific object is available in the dictionary?
View 3 RepliesHow can I check if a SWF element on a page has focus?
In IE, onkeydown events are not detected in JavaScript if a SWF has focus but Firefox always detects onkeydown.
how can i simply check if a returned value is a number i.e, 12 , 12.5, 12.75
if (_myValue == [[NUMBER]])
{
fire()
}
How can I check if, for example the key "2" is down?
View 2 Replies