I don't know if the topic describes the problem correctly, but here's the situation:I created a folder structure so I could work with packages, which I named com/gamistry/someproject"Then I created several .as files. "EggLoader.as", "Main.as", "Egg.as"EggLoader is a class that shows a basic progress bar, and is also the Document class. It is defined as being in the package "com.gamistry.someproject". Once it's done loading the swf, it creates an instance of "Main" (not having imported anything), and passes its stage property as the only argument. This all works perfectly.
Then the Main class starts running, and attempts to create an instance of "Egg", not having imported anything just like the previous example. It attempts to pass the single argument (defined as floor:int in Egg's constructor), but for some reason I get a compilor error 1136 "Incorrect number of arguments. Expected 0."It furthermore seems to know of none of Egg's public functions. Has anybody come across something like this before? Perhaps I am misunderstanding the purpose of packages?I've tried importing com.gamistry.someproject.*, but to no effect. If I explicitly define the myEgg instance as a "com.gamistry.someproject.Egg", and then call the new operator as a "new com.gamistry.someproject.Egg( floor )", the error disappears, but the program still does not execute as expected. No instance is visibly created on the stage, as it was when I was working with the exact same code base from the root package.Here's code samples (I omitted a lot of irrelevant code):
I have tried to add a button a .fla and code it with a packaged class (Main.as).is it possible to use a button from the GUI and code it with a external imported packaged class?
I have an android tablet. I made a swf file with mouse events, it rotates images to right and left. I wanted to put it on Android and run it as an .apk file which consists of the swf file embeded within it. I tried running the swf file through webView it works perfectly fine. But i wanted to make it as an application.
Firstly, I've created with Adobe Captivate an SWF file which I have been able to reference in an aspx page and when I view the website, it runs fine (no other file is referenced to run this). Example of the below code in the aspx page I have created:
My objective is this. I have a final edited FLV video file. I also have Flash Professional. What I want to do is create a single SWF file (like with the Adobe Captivate example), which will include the video and the skin for the progress bar, volume etc and then reference this in another aspx page for the website.
I want to be able to have the same 'packaged' SWF file, as in the captivate, created from this FLV video. In Flash Proffessional, I've imported the FLV into the 'stage' and added a skin through the wizard. But trying to publish or other options, I've not been able to get this single 'packaged' SWF file to run correctly in the website, via the same apsx code as above.Am I missing a trick here? I would presume it would be fairly simple as I don't want to edit the video, more I want to embedded it with a skin in the one SWF file.
I have a Flex application that builds and runs from Eclipse without any problems. I've created an Ant build based on the sample provided by Adobe and builds the application and packages it up into an AIR application. No errors occur during the build process and an AIR file is created.The problem is that when I install the AIR application and run it, there is no UI at all. The process is running because I can see it in Task Manager but I can't see the app window. I've commented out all of my initial code so just the first window should appear but still nothing.
I have a built a mobile application using flash builder burrito and when i export the app from the builder the size of the apk file is say 1180KB,but when i try packaging the same application from the command line the size increases dramatically(to 2679KB).In both the cases if we see the size of swf file it is 2679KB only.So the builder is using some compression techniques to reduce the file size.Is there any options available in command line to do the same compression technique??.I have used the following command to package the swf file..
I have this online poker game that i play often.I'm curios now, i wxit the game, restart the browser, change my ip,and it still recognizes me next time i come to the site.If necessary i will provide a link (if it's allowed).
I am trying to develop a module for voice recognition that could be integrated with a pre-existing flash website. I don't need the full speech recognition functionality, but a limited set of it (only specific commands like next, go etc). I looked at some functionality available like speechapi.I did try to do a bit of flash training by myself since i got into this project. So anyway, if I have to go ahead, will I have to do this in Actionscript?
I'm looking for handwriting recognition solution. I've found one here, which is a flash application. What's the principle of how it works? Does it make any queries to db to find the character?
I'm developing a web user interface to enter some information that is not very complex but needs to be loaded in real time. I think that the application could make use of speech recognition to facilitate the task.
Te core of the interface is being built with Javascript and jQuery, but can easily include a flash or silverlight component. I believe thatīs probably the way to go. I don't need to recognize everything that the user says, but only a few prerecorded commands. Also, I don't want the user to click on a button to specify the begining and the end of the spoken command. It should be detected live.
Is there anything that does this? I would be grateful if anyone tells me about a complete solution, free or commercial, as well as any advice on capturing a sound stream from the mic and process it with flash or sliverlight.
How to implement Online Speech Recognition through a Web Browser Interface.
Is it possible to implement this without using any Streaming Server (completely browser-based application)? Without building any own plug-ins, is it possible to implement Speech Recognition using Flash ...
can some guide me that how i can make speech recognition software in flash, for e.g if i speech letter "A" than letter A appear on page and start animated, this is my project i need help.
is that possible that flash can develop voice recognition application? if user says "A" then flash can call movieclip "A", or in the application e-learning, user just say "next" then the application going to the next page.
I am working on an augmented reality project and I cannot use FLARToolkit because the marker I tracking is a company logo, The logo is a black T-shape with white writing inside and I cannot use any part of it to create a marker that FLARToolkit will recognise. I decided to implement my own tracking / bitmap recognition which follows the following process...
1) Convert to B&W 2) Color all possible regions in different colors 3) Find the best candidate from the colored regions
Here is the tracking code so far: [URL]. It works but it is suffering form a few problems; It's slow, sometimes a dark area is mistaken for the logo, it isn't aware of orientation, it is affected by different lighting conditions.
i am currently working on a audio visualizer in flash but is stuggling to get flash to detect sound off my onboard sound card. Is it even possible now with flash 10? Something like an audio fft but in flash.
Has anyone worked on gesture recognition? I want to know how to proceed on comparing two similar gestures. E.g. : If A draws a circle on the screen, B should draw the same and the program should compare both the circles.
I need to create an application to get input from a webcam or camera connected to a computer and detect certain 3d objects.I could do this from a .3ds file or something else? I'm not quite sure.I am pretty sure it is possible with flash as3? I have been looking into openCV but i can't find any examples of this kind of thing.
URL..which should be recognized via a webcam. So this image is the original which should be included into the swf. If a person show this image in the webcam, an overlay of a video should added and played (augmented reality).How can I do this? I found FLARToolkit, but it is not possible because I need a black border which the original image does not has.Are there other libraries which have this functionality?
I want to implement an flex application using actionscript 3: with the camera and the virture buttons(like a image) in the camera, one can move his hand to pass over the virture button field in order to fire the button. Now my solution is following this way: capture the button field in every frame to get a bitmapdata, and calculate the gray-scale summation of the bitmapdata, if the difference between the two frames is greater than a given value, then fire the button. Actually, it could work, but it is very sensible to the lighting condition of the background, worse, when there are more than one buttons, people often fire the button by mistake.
currently I am coding a android mobile app in Flex with the Flash Builder. I am tring to get the Voice Recognition of the Android Platform working but it seems to be complicated. I managed to write a Native Extension that at least displays the Android style voice recognition that asks for speech input. I found out that for the android system the speech input dialog represents an activity where you can wait for the activity's response and overwrite the onActivityResult function. And there is the problem. Since I have to call the Activity "Voice Recognition" in the FREContext the response of the Voice Recognition Activity gets lost.
I'm after a Voice Recognition Library in ActionScript. I need to the software to be able to respond to simple english responses only. Yes & No type of responses.
I have two movie clips on stage, each with the same code, I have another movie clip that comes along and interacts with the two of them and changes properties to its speed and such. The problem is, it only seems to work one at a time, for instance I can't have both of the movie clips changing its speed, it works with one and then ignores the others code. *EDIT* I just ran a trace on the two mcs, I can confirm both of them know when the main one hits it, but because I'm trying to change a _root.mc.speed property in each one, it only accepts one of them and ignores the other for some reason :S If I use different properties in each it allows that.
I am trying to develop a simple game for kids in which an Alphabet will be spoken and the kid will have to choose the correct alphabet being displayed on the screen. What I have tried to do is that I have saved each of the sound in a seperate movieclip.
how can I develop the code that randomly choose a movieclip to play the sound and then when the kid click on the correct alphabet, it adds the point and if wrong alphabet is clicked, it gives error.
I'm having some problems importing a class, the message that Flash gives me is this; The class being compiled, 'ImageLoader', does not match the class that was imported, '[URL]'. The only line of code in my flash movie is this: import com.martijndevisser.*; And yes, the class is in that folder The class is from here: [URL] I've used the class before and it works fine, I just dont know what to do?
I'm new to Flash AS3. I started making a game and I am a bit confused. Let's assume that I want to create a game that has multiple levels/modes, how can I do this in an object orientated way?
When i create games in other languages e.g. XNA C#, i create a separate class then create an object of that class within the main class and run the game based on a simple statement.