Actionscript 3 - Object Tracking/detection In Flash Video?
Jul 13, 2010
I am wondering if there's any way I can track objects in Flash video using ActionScript? For example, let's say I would like to track a red ball, how can I do this? I have seen some examples using the OpenCV port but the examples shown are for face detection. And I can't seem to figure out what's the difference between the OpenCV port and the actual OpenCV library itself. Is it a full port?
View 1 Replies
Similar Posts:
Apr 3, 2012
I've been maintaining a video system for a client that uses JW Player with Flash Media Server to stream out some video. Until recently this was just pushing out one stream at one bitrate. This obviously isn't ideal for everybody so I've been looking at bandwidth detection.
I've built a demo system that can now dynamically switch between three bitrates using the built in methods in JW Player. Before I can push it, I need to answer a question from my client: Does it have hysteresis built in so that the stream does not oscillate if the bandwidth is marginal? Ideally, if the bandwidth is anywhere near the bottom of a band (yeh, yeh..) then I would like it to use the next speed down.
View 1 Replies
Sep 19, 2010
I want to make a cam application. When user's show the objects (sample is in the attach) Flash will play a video. How can I do this?
View 1 Replies
Oct 25, 2011
In OpenCV, we can use a xml file to describe haar-like features of a specific object. I wanna use this idea to detect palm and fist, now I hava my own xml feature file, and it works well in C and Python(with OpenCV), now I need to move this idea to flash.
Luckily, I found an project named Marilena, it successfully moved the haar-trainning part of OpenCV to actionscript, and this article optimizing flash based face detection optimized Marilena, he turned the xml file into actionscript class itself to speedup the calculation. However, since the Haar data is being hardcoded into the class now it will not be able to use for tracking anything else but faces. I try to read the source code for detail, and process my own xml file into actionscript class file in his way, but finally find something different.
The xml file for face detection is like :
Every tree has only one node "root node", but in my xml file, some trees have two nodes, and the "left_val" above changes to "left_node" sometime, I don't know how to process these nodes. I think I should goto OpenCV C source files for detail to find how to correctly process xml feature file, but where to start,
View 1 Replies
Apr 9, 2010
I've been fiddling around with After Effects and Flash, exporting tracking data from the former and using it to distort a bitmap in the latter:- [URL]The test works well locally; though online I run into problems where the tracked bitmap slips from the FLV on which it sits.What binds everything together is an FLVPlaybackComponent firing CUE_POINT events, which provide the location of the four corner points used by an instance of Flash Sandy's DistortImage class.
It's not about jerky playback. It's about the bitmap remaining synchronised with the FLV, regardless of playback integrity. It's almost as though the CUE_POINT event isn't being fired when the FLV stutters (next thing to check after the weekend).
Is there anything I can do, has anyone experienced anything similar, or am I reliant on the host being able to serve the FLV at sufficient speed (out of interest, the video is currently coming from a dedicated video streaming server?
View 1 Replies
Mar 13, 2007
I'm trying to figure out how to track clicks from an xml fed video streamer. I read the article at Google about adding the event to a basic Flash button: [URL] But how do you compile the info from an external XML document? The beauty of XML is the ease of switching out content. I just don't know enough about AS to tell it to not only stream the video but also to send urchinTracker info back to my Analytics report.
[Code]...
View 3 Replies
Feb 1, 2010
I would like to track when a .swf or preferably a .flv video has been accessed or played. Is there action script I can enter in the .swf or .flv to send an email when video is played?
View 24 Replies
Mar 6, 2007
tracking a slider's movement while a dynamic piece of media is playing (audio, video) and recording the time and new location of the slider. So if you were watching a 30 sec video clip, and you were rating it in real time, how to record the position of the slider and the time that you moved it? Ugh, if I should explain this better,
View 3 Replies
Nov 20, 2010
i'm currently using hitTestObject and it kinda sucks, my object doesnt get very close the the second object but the game "thinks" it does. is there a better hit detection?
View 7 Replies
Nov 27, 2009
I need to know how to have an object be recognized when it passes over a point on my stage. Then once that has happened an event happens such as a new screen appares.
View 3 Replies
May 30, 2011
Is anyone familiar with the function of the Flash Media Server where it can detect a user's connection speed and deliver the appropriate quality version of the video on the user bandwidth detection?
View 1 Replies
Feb 7, 2009
I need to detect collision between my bezier curve (drawn using curveTo method) and a object, the curve is dyanamic and hence the equation changes every frame. I am looking for a efficient method to detect collision between curve and the object.
View 1 Replies
Feb 19, 2008
I read the tutorial about Multiple Object Collision Detection. What I want to do is have there be 3 circles and 3 squares. the circles are moving randomly while the squares are stationary. The actionscript would need to be checking to see whenever the moving circles collide with the stationary squares. However, it doesn't seem to be working. I followed the logic of the tutorial pretty closely, by making a separate list for the instance names. Here is the code for the collision detection.
[Code]...
View 1 Replies
Nov 11, 2011
I want to create a function in which I can drag a MovieClip which will bump into other MovieClips on the stage without overlapping them. (i.e. the object cannot be dragged over or through other MovieClips).
function dragHolder01(event:Event):void{
if (mouseDownHolder01 == true) {
for(var m:int = 0;m<blockHolder.numChildren; m++){
[code].....
View 3 Replies
Mar 28, 2012
I'm trying to have an enemy's shell hit my player. I have the logic in place that detects a player's bomb hit an enemy, I tried to edit it slightly and apply the same logic to the enemies shell.
Code:
// check for collisionspublic function checkHits(event:Event)
{
[code]......
View 2 Replies
Mar 30, 2010
I've just been asked to create a video player which automatically chooses the correct bitrate video to stream by detecting the bandwidth.I have no experience creating a video player so I'm looking for links/resources to do some research on the topic.Has anyone here created a video player in Flash? Would it be better to create in Flash or Flex?Once again, I have no prior knowledge in this type of creation and could use an experienced developer's opinion on what the first step is towards progress.
View 3 Replies
Jun 23, 2009
I am creating a game where I have two separate arrays of objects that I need hitTested with each other. I found an old tutorial in AS2 that I modified to come up with this code:
ActionScript Code:
for (var w:Number = 0;w < enemyLaserArray.length;w++) {
for (var R:Number = 0;R < barricade1Array.length-1;R++) {
if (enemyLaserArray[w].hitTestObject(barricade1Array[R])) {
[code]....
This code executes like I believe it should, but along with removing the two objects, and splicing them from their arrays, I get this error
Code:
TypeError: Error #1010: A term is undefined and has no properties.on the line hitTestObject line. I have had similar problems in other areas of my project, but this time no matter what I try using trace statements I cannot fathom quite what the problem is.
View 2 Replies
Oct 14, 2011
I've attached a zip with a few custom classes and a .FLA. Ignore the custom classes. I'm getting repeated
"Error #1009: Cannot access a property or method of a null object reference. at Environment_fla::MainTimeline/hitTest()".
I understand that this error means I'm asking it to reference something that's no longer there. How better to hitTest many objects in an array. My game involves creating a bunch of balls that will fall into buckets. I need to keep track of how many touched the buckets, how many fell off the screen, and remove each accordingly.
Here is the code from my main FLA
ActionScript Code:
var ballTimer:Timer = new Timer(200);
var changeTimer:Timer = new Timer(50000);
ballTimer.addEventListener(TimerEvent.TIMER, throwBall, false, 0, true);
ballTimer.start();
changeTimer.addEventListener(TimerEvent.TIMER, changeColor);
changeTimer.start();
[Code] .....
View 6 Replies
Dec 15, 2011
So i found a code on the adobe site which pics up input from the mic. I need that to trigger a video when it hits a certain volume. I'm a complete novice to AS3 and i need this for a proof of concept in the morning. Here's the code that i'm using to pick up the mic -
[Code]...
View 0 Replies
Nov 28, 2011
I am trying to traverse object tree in AFL (adobe flash lite) engine, to check if there are memory leaks in an event driven application (AS3). The idea is to get object tree dump before and after an event processing and check the object tree dump difference for memory leaks.I believe MMgc is the GC for AFL, I am unable to get a dump of object tree, can anyone help me to point out where in code I can get the alive object info in tamarin.
View 1 Replies
Apr 23, 2011
how to work out the direction of the mouse on stage and say from this:
"if the mouse goes from the left to right (visa-versa) once, add score +1" and "if the mouse speed which is player controlled - slows down - to then display an error graphic"
View 21 Replies
Jul 29, 2010
Is there any as3 based source code that accomplishes pitch detection or beat detection accurately? Doesn't have to be both, if you know of at least one of those,
View 4 Replies
Jun 22, 2010
I have almost everything working except for collision with the bricks. This is based heavily off the "Flash Games University" example although several things are changed. When the game starts with brick collection detection in play, and the ball appears the entire thing freezes. I get this error: Error #1009: Cannot access a property or method of a null object reference. It repeats 28 times - the number of bricks. The error seems to be occurring at "var brickRect:Rectangle", according to debug and observing. It may be a scope issue, but what should I change to fix?
[Code]....
View 5 Replies
Apr 12, 2011
does flash have a way of tracking down every where that an mc is being used?
in my library I have an mc that says it is being used 3 times ... but I can only find two of them ... the mc has a sound in it that i need to get rid of.
View 2 Replies
Nov 19, 2009
Got a question from a fellow designer about the use of Tracking Pixels in Flash. Does anyone use tracking pixels in their Flash creatives? If so, how/where do you embed them?
View 2 Replies
Feb 15, 2011
I'm making a Flash piece consisting of a few different pages and clicks to take you to different chapters. The company I'm making it for have sent me URL's of pages that will track the person on it - what page they're on, what chapters they view etc.
So, where do I put these url's?If I put them in a getURL won't that just redirect the person away from the page with the SWF in it?
View 5 Replies
Mar 11, 2010
I have a bunch an as3 game going. In my game when newCrag hits egg_mc the score gets added.
[Code]....
View 1 Replies
Dec 23, 2010
I have this flash application that opens a socket connection with a server. What I need to do is to read packets sent and received byt he application to write a sort of "history" ( in WIndows). Now, questions are: How is the simplest way to do it? Application hooking? Load the flash application in my application and take control over it? No packet sniffing allowed. Is it possible to do it in C++, or you think it's better to use another programming language? My first choice was java, but it seems that do it is troublesome...
View 2 Replies
Apr 2, 2011
There are cases where shipping javascript code with your flash video is not an option. One of these cases is when you've bought space on a website to place your ad banner. In those cases I want to use the 1x1 pixel image tracking method on Google Analytics or Yahoo Web Analytics to track the amount of views on my banner.I have heard that flash blocks any attempt to load data from a third party host (frankly I don't see why they would do that) which presents a problem. I would love a solution.I can picture several methods and their downsides.I could host the banner on my own server, counting the downloads. Unfortunately this would prove to be a tremendous load on my server when possibly millions of downloads would happen per day.
I could write a PHP script, hosting it on my own server, that when requested tracks a page view in GA or YWA. I could place a crossdomain.xml file on my server allowing the flash banner to request my script using a Loader. Unfortunately, the problem of server load still exists as my private server probably can't handle millions of requests per day.Possible solutions are other tracking hosts that allow for flash cross domain file requests, or perhaps a method I haven't thought of.The challenge here is to be able to track the number of views on a flash video without using any javascript. The problem is the sheer amount of load this would put on my own servers if I were to track using my server as a proxy. The best solution would be a tracking service using crossdomain.xml
View 1 Replies
May 19, 2011
I've got an AS2 flash movie that I need to add Google Analytics tracking into. The only classes I can find are for AS3, do you know of any class method to track in AS2?
View 1 Replies