i have a proyect wich compiles flawlessly in cs5, i decided to ported to cs5.5 because air3 does not get installed in cs5. when i try to compile i get an error... 1119: Access of possibly undefined property COMPLETE through a reference with static type Class.
I have a project that I want to port to mobile platform on Android and iOS.The project uses a v.addEventListener(VideoEvent.COMPLETE, completePlay) handler to detect when video is finished playing and trigger the next action.
The project is running perfecty when publishing for Air or Flash Player 9 and above.However when just changing the target player for publishing to Air for Android or iOS the following error occours:Access of possibly undefined property COMPLETE through a reference with static type Class.
I am using the VideoEvent.COMPLETE trigger to return my user to a selection screen once a video they have chosen to watch has finished... but for some reason the trigger fires 2 or so seconds into the video(45sec videos). The bug seems pretty inconsistent, sometimes it happens and sometimes not on all of my videos
I have made an AIR app that brings in local SWF files and displays them in an interface. One particular local SWF file contains a FLVPlayback component. On this component I've placed some event Listeners.
I have a simple swf which create flvplayback object and load from time to time an flv, replacing the old one.I manage everything in a wrapper class, identified with mdcVC in the code below, with a variable FLVPlayback in it.I notice one strange thing, before loading a new flv, the old one is replaced and the listeners removed. However in the fragment of code where this happens seems that the VideoEvent is not removed.
I have what should be a simple bit of code. I have 25 movie clips laid out in a grid; each is named myVideo1, myVideo2, etc. When a clip is mouseovered, it should start playing and loop until mouseout, whereupon it will stop.
Here is the code:
Code: import fl.video.*; for (var i = 1; i <= 25; i++) { ["myVideo" + i]addEventListener(MouseEvent.MOUSE_OVER, playMovie); ["myVideo" + i]addEventListener(MouseEvent.MOUSE_OUT,stopMovie);
[Code].....
then the listener and function work fine for that particular clip. The two mouse listeners work fine with the dynamic assignation. I was hoping to avoid having to add 25 lines of code to setup the VideoEVent listener for each individual clip and don't understand why ["myVideo" + i] doesn't work as it does for the mouse event listeners.
I'm trying to get a dynamic tex box to go from 0 to100%, 100% would be when videoEvent is ready. I cant think of a way to do this. Any suggestions? I guess I need to know how many bytes it takes for VideoEvent.READY to happen.heres my code as of right now..
import fl.video.*; import fl.controls.ProgressBarMode; // Set Variables
Same codes... work in Flash Player 10.1 but do not work in Flash Player 10.2... Error: 1119: Access of possibly undefined property COMPLETE through a reference with static type Class.
is it flash bug or done intentionally? anyways, is there any way to run VideoEvents on FP 10.2 ??
I made a test where I download a file using URLLoader - something like this:
[Code]....
in the middle of the downloading process I physically disconnect the internet connection. the download stalls - but after aproximately 30 seconds downloadSuccessful is invoked, although only half of the data was downloaded. how can I make sure that the data to be downloaded is complete and correct?
I am loading in binary files with the url class which can be quite large 10mb + and it works fine on my server but another server I am testing on it can sometimes not work. Sometimes it will not load the file and other times it will only load about 20% and it throw a complete event??? Then of course other times it works fine. This server is https maybe that has something to do this it?
how to detect the end of an flv playback. I am loading in a flv to a webpage, using the FlvPlayBack component. Everything is working fine as to be expected. How do I insert a credits image to display once the flv has finished? Users would need to be able to restart the flv playback too. I have been looking at cuePoints etc...
I have embedded a swf into a another swf using Loader & URLRequest methods, which work fine.
To detect whether the swf has ended I define it as a MovieClip. Then I check (using an ENTER_FRAME event listener) if the current frame is equal to the total frames. This works fine for a swf with a simple animation in the timeline (what I was testing on). However:
If I use the same method for a swf with a streaming flv inside it, it gives me a runtime error: Type Coercion failed: cannot convert Play_Intro@20d71b51 to flash.display.MovieClip.
If I define it as a Sprite- it plays without any errors, but then how do I detect when the swf is at the end?
I'm trying to load external swf (with more than one frame and actionscript 3 on every frame - I used there "timeline" coding) from my main swf.code for loading external swf into main swf:
var loader01:Loader; function openGame1(evt:Event):void{ loader01 = new Loader(); var requestSWF01:URLRequest = new URLRequest("game01.swf");
I am using an FLV component dragged to the stage and then bringing in video content. How can I make it visible=false when it has finished playing using the COMPLETE event?
I have a small FLV file I imported into flash that needs to redirect to:upon completion. I have tried numerous ways (yes I checked the whitepages) and end up with compile errors and other errors. The method below is what I was using and I can not get it to work for the life of me. (stop action on first frame, ive tried it all)
import mx.video.*; var listenerObject:Object = new Object(); listenerObject.complete = function(eventObject:Object):Void {
is there a way to detect when the sound is done playing? i want to make something happen but only after the sound is done playing.if i know the length of the sound, can I just wait that many number of seconds, or will it not synch up on slower/faster computers?
I am trying to implement paged recordsets in a datagrid and since I've not been able to find a way as a standard feature of as3 (recordset type was not provided in as3) - I'm cooking my own.The only problem I have is knowing when additional records should be requested. I need to be able to tell when the scroll bar or other method is used to scroll the datagrid down to the end (or near the end).
I'm trying to make this fluid preloader that uses tween classes to change the size of the bar instead of just using something likegotoAndStop(percent)I have the tween class working but need a way for it to detect the change of the percentage variable. Here's what I'm trying to get it to do:Current percentage is at 55, this is set as the "currentPercent" variable. It suddenly jumps to 65%, the "currentPercent" variable would change to 65 while the "prevPercent" variable would stay at 55 so the tween class could have a beginning and ending value.
is it possible to detect if flash is installed using PHP. My aim is, that if it is installed it will play a flv file, and if not it will use another player eg; quicktime?
Basically it's a browser window scaleable flash movie, that most of it's elements move position to each RESIZE event. But a part of it is pretty cpu heavy, so I want that to only update when the user have stopped resizing.
I have not found anything about this in the forums and the solutions I've tried are not working.
- tried MOUSEUP event on stage, but the mouse is off the stage, so it doesn't register.
- tried a timer that measures the stop of movement of the mouse, but mousX/Y is not measured when mouse is off the stage.
UPDATE: mouseX/Y might not work, but stage.stageWidth is updated. But still not a very nice solution
Im having a problem with some rollover code im using for a movieClip, basically if the mouse runs over to fast the rollover animation is played but not the rollout as the mouse has left the SWF area. Is there anyway of telling where the mouse is on the screen so i can run a check to see if its in the swf or not and then run code accordingly.
Im creating a flash projector that opens some other projectors with the fscommand exec command. Is there a way of detecting when the mouse is over one or another to change some values of variables?