I have added a child MC in frame 20 of my file. Within this MC, I have added another child MC. In frame 1, I would like to detect to see if the second MC is on the stage. I have tried using the the stage.contain(secondMC), but I keep getting the error 'Access of undefined property secondMC'. I believe this is because I have declared the secondMC within the firstMC by using var secondMC:MovieClip = new secondMC1().
I have a long list of numbers(Movieclips) aligned horizontally. I have a scroller that span across five number clips the user can drag the scroller to move. I want to dispatch over function inside the number clips whenever the scroller moves over them and likewise out and click event. I dont know how to detect that like if it was move over i could just define a mouse mover event but this trying to detect when a movieclip is over/out other clips.
What I want to do, is to detect if user presses a button. My code atm just detects if it's pressed down continueusly. Is there a way to detect when user only presses it down, doesn't hold it down?
Just like yo can define Mouse over and out event to find out when the mouse is over/out of certain clip, in this case instead of Mouse I want to check when a Moviclips is over/out another movie clip.
I was wondering whether some Actionscript exists that can detect what URL its SWF is in, and jump to a frame within the SWF accordingly?For instance if menu.swf detects that it is embedded within home.html,it goes to Frame 1. Or if it detects it's embedded within services.html it goes to Frame 2, etc.
Just like yo can define Mouse over and out event to find out when the mouse is over/out of certain clip, in this case instead of Mouse I want to check when a Moviclips is over/out another movie clip.
I'm trying to make a card game with flash. The players will be site visitors, not the computer. I searched for detecting ip (and as3 game tutorial) but I saw that flash can't detect ips.
Currently I am using this code to play a selection of .swf files using the keyboard.[code]Now I would like to detect the end of, say, 1.swf to load into a different swf, does anyone know how best to acheive this? I have tried a few tutorials with no success!
I have some trails data that I am adding to an interactive map. The trails were imported from Illustrator and are lines that have been converted to movieclips upon import. I'd like to add effects and some interactivity to the lines upon click and mouse_over. The difficult piece is that Flash treats movie clip like a box making it dificult to click on just the trail you'd like info for. For example, if there are two trails next to one another, clicking on the one you want can be difficult.
Is there a way that I can make it so that only the line part of the MC is the piece that responds to mouse action (rather than the whole box which encompasses its extent)?
i have an flvplayback component on stage, named the instance flvPlayer and added this code to frame 1, so a video loads in it. flvPlayer.source = "clip1.flv";
the videos plays from the local folder perfectly. I need a code that when the video ends, it jumps and stop to frame 1 of scene2.
I need to calculate the latency means time difference between the two user machines the scenario is: 1. App 1 publishes stream 2. App 2 play the stream published by App 1 Now in App 2 I need to show the time difference between the App 2 and App 1 time. Say if current time on App 1 is 10:46:30 and on App 2 it is 10:50:20 then need to display the difference. How to send the time value to App 2 from App 1 as time zones for the two users may be different.
I'm creating a map that has points of interest. (POI) When a user mouses over the POI an info bubble pops onto the screen and it loads an swf. I can't detect the size of the swf so that my infobubble will size itself to the size of the swf. When I mouse over my swf file, it disappears. I would love to have the my swf file pop up in a layer on its own instead of being on the stage of my main flex file...
In the KeyboardEvent object I get on key-down events, is there a way to know if the event is the first key-down, or a repeat when the key is held down? I want to toggle a setting when a key is pressed; I could listen to key-up but I'd prefer the action is taken as soon as the key is pushed... as long as I can stop it toggling back and forth as the key-down repeat events are generated.
I'm using flash uploader and I'd like to be able to find out whether a flash blocker is present (activated) for me to able to let user know that he needs flash.There is a native support in browsers for letting users know they don't have flash installed. But how to deal with this ?I was searching in global Javascript object whether the flashblocker is exposing something, but I can't find anything.
It appears that if one has a mic available, then one can add an event listener for the StatusEvent. However, this only tells you if the mic has been allowed or disallowed.
What I'd really like to do is detect if the static Microphone.names property changes. I would have expected this property to be bindable.
If I right click and select "settings" immediately after plugging in a mic, I can see that flash has updated their list of available microphones. However, there seems to be no way in code for me to receive the same update.
The docs say "Calling Microphone.names requires an extensive examination of the hardware, and it may take several seconds to build the array." So I think polling this every few seconds is not a feasible option.
I am not able to detect the keyboard event CTRL+V on a swf using AS3 in IE. It seems to trigger the default browser behavior, and im not able to do anything.
I have Scroller and in this scroller I have 3 swfloaders. How I can detect when scroll bar is scrolled on (event, my be)?//editSorry for the little information. In scroller I have Group
I originally had a load of .flv videos that I was playing & using an addEventListener to detect the end of the video & replay it (as in a loop), see below:[code]I now have to create a standalone copy of this Flex application that can be run from a CD.My problem is, you need to embed the video to get it to play, but you can't embed .flv files, so I converted them to .swf files,embedded them but now can't detect the end of the video playback to restart it?[code]
I have recently been working on creating a game similar to the good ol' Asteroids game. So far, I have managed to create a very simple piece of code that rotates and moves my spacecraft according to the angle it is currently at. There are two problems with it, though:
1. I can't use two buttons at once--for example, to rotate and move forward. I'm sure there must be a better way to detect key presses. What's the best way to do it in AS3? 2. The way the whole thing works looks kind of jerky and stage. Another thing is, the spacecraft is constantly at an odd angle for no apparent reason.
Here it is ("sc" is my spacecraft movieclip): var SC_speed:Number; var SC_rotation:Number; var SC_radians:Number; SC_speed = SC_rotation = 0; function keys(event:KeyboardEvent):void{ [Code] .....
I am trying to pull a link (or links) out of a text string. So if I had something like this:
Code:[URL].. I would like to be able to find the links in the text string and replace them with a single word or words that I would format to be an HTML link within a text box.
I've had some luck with string.indexOf, but I'm not sure how to detect the end of the link where the remaining text begins that I don't want linked.
I got an irritating problem. When i want to detect the end of the motion, for some reason, i cant. Heres code below, tell me why MOTION_END doesnt work?