ActionScript 2.0 :: Control Flash With USB Controller
Feb 7, 2008
How do I create a game that is controlled by a plug-in USB game controller? I already have the scripting done for the game itself. I just want to know how I would script it to be controlled by a USB game controller.
Rather than build a controller for each video on our website, my IT dept wants me to build one controller that all videos can access. How do I do that and do I need a script? I know nothing about scripting and I'm a newbie in video publishing
Can flash video controller control external swf files? It seems it can only control flvs?nyways, I am working on a flash animation with voice over and I need to have a video ontroller so it can rewind, fast forward, pause the swf and turn off the sound....etc....oes anyone know any video controller in AS3 that can control swfs out there that I can download or purchase?I know I could convert the swf to quicktime then flv, but the quality would be degraded because of the conversion from vector graphics to bitmap. I certainly wouldn't want to have that.
I have page in my asp.net mvc website with a flash app on it, and the user can stay on that page for hours, but his auth cookie/session is going to expire, so I'm thinking to create a PingController and to call it using jquery $.post each 20 minutes.
I imported flv flash video file into the Flash and added a controller there. I chose one from the list. I then published the video and got this swf file, which I then put onto the webpage using this code, as I want my page to be XHTML compliant:
HTML Code: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
i am trying to build a site using ruby on rails and flash. i am trying to build a login page and i have my flash component with two text fields for user name and password. when the submit button is pressed, it sends the login info typed in to the text fields to the ruby controller via xml through a URLLoader. the controller then looks at this info and determines if it is correct or not and if it is, then it attempts to redirect the page in the view to another part of the website.
this is where the problem comes in. when the page is being redirected, it gets stuck and just says "transfering data from host" at the bottom but never redirects the page. this is all still on a local machine so it is not some sort of communication problem with the server. also if i replace the flash component with plain html it will redirect just fine. in addition to this, if i make it redirect from withen the flash component using navigateToURL that will work as well. the information is also getting sent correctly because it is setting off a COMPLETE event.
(Flash CS3, Dreamweaver CS3, Mac OSX) I can encode Flash video, and place a nice skin (controller bar) into the file, within Fash, but when I place the final .SWF file into my Dreamweaver page (Insert-->Media-->Flash), and test it in a browser, the vid will play automatically and there is no skin (controller bar). The skin file is residing in the same folder as the .FLV and the .SWF file, but for some reason the skin refuses to allow itself to be seen.
how to add maptype and zoom controller. next step, it's adding a maker on the map. I think it should be easy but I keep getting error said:"1180: Call to a possibly undefined method Maker." weird~ i have import all class into my as, and maker is belonged to com.google.maps.overlay.*; so I assume it should work well.
I have an embedded flash object with a movie parameter that uses a url as a parameter. When this URL is resolved on the client the full friendly url is used and the link to the .swf is then incorrect.Here is the HTML:
I inherited a flash application at work that is basically a bunch of symbols with actionscript inside each of them. There is also an external actionscript file that serves as the application controller, with much of the application logic in various frames of Scene 1. Some of the symbols are supposed to play a sound file on mouse over, which they do just fine, but when I try to get the global sound volume from the controller:
E.g. ActionScript Code: var bVolume:Number = controller.getGlobalVolume();
It doesn't work because it doesn't recognize the controller object. This is strange because the controller is called all throughout the project, but it is not seen within symbols.
I am trying to use a sound controller in a flash movie to play music and I am using loadMovieNum to load the sound controller movie at a particular point in the main timeline. I get the sound player to load up fine and the sound loads fine when a user presses play, but about a minute through the song the sound starts to play again, overlapping the song that is already playing.
This happens with no user interaction...it just takes about a minute. I also noticed that it is only when the sound player is within one of the movies. It doesnt happen when the sound player is all by itself. Is there something in my movie that is making it loop over?
I am trying to find a stand alone flash player/controller to play flash movies on my own computer (windows xp) ideally it would have the usual back stop forward controllers etc and I would if possible be able to change the veiw pane background colour.
So im opening it up to the commuity as a programming challenge!!For something which i assumed would be very simple, writting a robust and solid multi turn spinner handle for flash in as3 has become the bane of my life.Feel free to download my attempts so far (attached), which cover the basics of a single rotation, and make it look like im further ahead than i actually am.The difficulty lies with the very specific things I personally need the spinner to do,and the fact its SO HARD to explain..Its actually used to control a piece of animation that is 72 frames long.I need the first "lap" of rotation to send the playhead to frames in the 1-36 range and the second rotation to send it to frames 37-72. So two full spins would take it to the final frame, one full spin would go half way to frame 36.
Problem is the rotator handle needs to be locked at the initial position, so a user can't drag it backwards to start with but can drag it backwards once theyve moved forwards. (think of turning on a hot water tap, many turns in one direction until it stops fully on, then the same turns back again to reach the original start position of fully off)I also need the rotator to be able to be used in anti clockwise and clockwise modes.The ideal is to be able to set the total number of animation frames to be controlled and the number of rotations required to reach the final frame, then have the spinner work everything else out for me.
Is it possible to control a Flash movie from JS when you have no control over the source? I have decompiled the movie to see its inner workings, but I know nothing about Flash, so I'm mostly in the dark. I found this resource, Interaction with JavaScript, but it's not working for me (probably because I don't know what message to send to the movie).
I have a flex application and have embedded a flash (SWF) file into it using <mx:SWFLoader>. There is an "Exit" button on the Flash file. I want to be able to handle the button click event on the flex application.
So when that button in the flash file is clicked, I want to perform an action in the parent flex application.
I have a controller that receives an event with some data. As a part of the processing this s new data it needs to modify a collection in another controller. Is it a bad idea to inject a controller into another controller to modify this collection?
i'm trying to use org.simplemvc for my first mvc project. i'm getting it piece by piece, but I can't figure out how to get the controller from a class of mine that extends view.I thought it would be as simple as just calling a method from it's super, view, the controller getter. but it tells me the property doesn't exist, so I'm thinking it has something to do with the interface.[code]
I'm using CS4 and encountered an issue that I can't resolve when using the controller. When an audio file (MP3) is on the timeline, I hit play on the controller to listen to audio but when I hit stop, the play head stops while the audio continues to play. I also noticed that when scrubbing the timeline you can't hear the audio.
Has anyone encountered this? This issue doesn't happen in CS3 and since a lot of my work deals with syncing graphics to narration I have to go back to CS3, which I don't want to do.
The first is that when loading an external swf in my main SWF I get this in the output window:
TypeError: Error #1009: Cannot access a property or method of a null object reference. at audio_fla::list_1/frame1() at flash.display::Sprite/constructChildren() at flash.display::Sprite() at flash.display::MovieClip() at audio_fla::MainTimeline() TypeError: Error #1009: Cannot access a property or method of a null object reference. at audio_fla::MainTimeline/frame1()
But it still works. Its an mp3 player. The other problem is that the loaded SWF has a volume controller. When I test the external SWF by itself it works fine. When I load it on my main SWF when I start to drag the handle on my volume slider and MOUSE_UP outside the handle it still keep dragging the handle.
The code of my main SWF is: import caurina.transitions.*; var _currentCategory:String = ""; var percent:String = ""; var loader = new Loader(); loader.name="videoLoader"; [Code] .....
I am working on a flex application which makes calls to an .NET webservice. I am trying to follow the MVC design pattern. I have created a model, which stores all information received from the webservice. The webservice itself is created by actionscript in the controller. The view in my case, consists of various user-defined components (multiple .mxml files).
The Model is a singleton class, and each of the views accesses a getInstance of the model. The question is how do i access the webservice (i.e. controller) from each of these components? Does the controller also need to be a singleton class just like the model? and let each component get an instance of the controller in order to access the webservice?
I'm trying to create an asp.net mvc controller method that will return an image generated by a POSTed bytearray. The post is coming from Flash and has the request header: "Content-type", "application/octet-stream" (although this can be changed if needed).[URL]
var header:URLRequestHeader = new URLRequestHeader("Content-type", "application/octet-stream"); var jpgURLRequest:URLRequest = new URLRequest("jpg_encoder_download.php?name=sketch.jpg");
i need to have a slider over my stage to control the time-line "frame by frame motion"...to drag the slider and move foreword and backward with actionscript 3.0the problem is how to control the slider to reflect in the main time lineand the drag and move action for the slider itself ..
I have an external sound controller that plays 10 tracks. The current way I load the sound controller is with LoadMovie and I do it on the last frame of the movie that is my actual website. However, this slows my whole site down significantly, because when I press stop on the sound controller...everything is at the speed I want it to go. What is the best way to go about preventing this slow down?
I have an external sound controller that plays 10 tracks. The current way I load the sound controller is with LoadMovie and I do it on the last frame of the movie that is my actual website. However, this slows my whole site down significantly, because when I press stop on the sound controller...everything is at the speed I want it to go.
I'm having trouble with a controller I'm using with an FLV. I am a newbie when it comes to actionscripting. I have a project I'm working on that contains a 86:50 minute FLV and towards the end I will have a separate button appear to click on. The code I am implementing was from a different project that utilized the same functions but with a 4:49 minute FLV. I have an example of this at [URL]. As you can see the controller is set up for the 4:49 minute FLV and when the timer gets to 5:00 minutes that button comes in. I need to make the FLV play the whole way through and then at a specific point have the button appear and I can't seem to do it. Below is the only code I can see that pertains to this section.
I have a row of movie clips which act as buttons with an inactive state, active state, selected state etc. What I am seeking is kind of like a controller button which when clicked will activate or de-activate this row when clicked. I thought the best way might be to set frame labels and add a goto sript for the controller button to make each button go to the activate frame when the controller button is clicked.
When I render an .flv by adding the video to the Render Queue in After Effect instead of exporting to .flv the video controller ends up wider than the video itself when imported to Flash.
My video is 495 wide by 360 high. When I render in AE in the Render Queue, and then import to a Flash doc, the video controller is about 15 pixels wider on both the left and right of the video. This looks goofy. Is their a way to resolve this? Is this a Flash challenge or an After Effects challenge?