ActionScript 2.0 :: Custom Player Is Now 99% Complete, Just One Details Is Missing?
Apr 1, 2007
The one thing that is not working is that the video starts automatically and it shouldn't. I might be wrong but i think the problem lies in the play/pause edit panel, here is a screenshot:Even in the tutorial the teacher put a stop script so that playback is initiated by the audience. That's what the "stop" script is about but the movie still plays automatically when I test it
View 3 Replies
Similar Posts:
Dec 10, 2009
I use WebOrb and RemoteObjects to communicate between my Flex app and some .NET libraries.
I use this to determine what happens on result and faults:
Code:
var responder : mx.rpc.Responder = new mx.rpc.Responder( onResult, onFault );
Where onResult and onFault are
Code:
private function onResult( e : ResultEvent ) : void
{
responder.result( e );
[Code]......
where 100 is a custom error code. I would like to access this error code in my Flex application.
View 0 Replies
Nov 11, 2011
I have created an animation that loads several SWF files that are supposed to reside in the same location. I will be giving the animation to another individual for them to show to customers.Given the chance that over the course of use that individual, or some downstream individual, may forget to include the SWFs with the executable, I want to create a dynamic textfield that will be presented on the stage indicating that they are missing the SWFs.What type of code do I use that can specify the missing SWFs? It would look something like this:
PHP Code:
var missingSwf:String;if (<swf is missing>) missingSwf = "<missing swf filename>"; errorTextField.text = "You need to include " m
[code]......
View 1 Replies
Mar 16, 2010
I am working with google maps in flash, and i would like to know how to serve up my own image tile for the "we have no imagery at this zoom level..." error. I dont want to serve up an entire map of images - just for the times when google has no image does the tile layer base dispatch an event? (i couldnt find any in the api) is there a method that can be overridden by extending the tilelayerbase class
View 1 Replies
Jun 24, 2010
I have just created a Flash movie with a .flv file in flash cs4 when playing the .swf file we can see the controls of the player, when I use the html code the player controls are missing.[code]...
View 1 Replies
Dec 13, 2010
I am creating a custom flash video player for my friend's wife's surprise 40th birthday party. I was progressing through and everything was working fine, but now the seekbar and volume bar handles are completely gone. I was working on doing some buttons to load each video segment when I realized the missing handles. My actionscript is below:
import fl.video.*;
var flvPlayer:FLVPlayback = new FLVPlayback();addChild(flvPlayer);
flvPlayer.playButton = playbtn; flvPlayer.pauseButton = pausebtn; flvPlayer.seekBar =
[code].....
View 5 Replies
Jun 16, 2009
I wrote a class with directory is listing recursive in async mode all file and subdirectories, sub subdirectories...
The problem is that i can not find the solution to dispatch the custom Complete Event then the all files and directories are listened and added to array.
package flashmaster.classes.application
{
import flash.filesystem.File;
import flash.events.Event;
[Code].....
View 1 Replies
Nov 30, 2010
I need to make an auto complete component in flex that fetches the auto complete results from a remote database using a webservice. I have the webservice and querying part worked out. I've already made custom components in action script by extending VBoxes. However I cannot figure out how to generate the popup window that is supposed to show under the text input in my auto complete text box.
[Code]...
View 2 Replies
Feb 11, 2010
How do you return data from a custom class, and only when something in the custom class has completed something. For example, let's say I have this code in the custom class[code]...
This, of course, doesn't work. I need the whatever.getLoadedObject() method to wait until the loading has finished inside the custom class then do whatever with the image loaded.
View 2 Replies
Nov 15, 2011
I have an FLA that "erases" an image to reveal something below, at which point the cursor (an eraser bitmap) needs to be released in order for the user to use it to click a print button. You can click the print button with the erase function cursor, but I feel like it is not good user interface. The AS below should delete the eraser cursor and advance to another frame but it isn't.
Code:
stop();
Mouse.hide();
this.createEmptyMovieClip("maskMC_mc", this.getNextHighestDepth());
floorLogoPic_mc.setMask(maskMC_mc);
[Code]....
View 1 Replies
Aug 4, 2009
I have a custom AS3 component in a very simple MXML file. The custom component just loads an external SWF using SWFLoader.If you look at the output (below) you'll see it's actually loading the SWF only once, but it instantiates it twice!! What the?Main.mxml is just the Application tag and then this:
Code:
<myComponent:SlideViewer title="SlideViewer" swfName="slides/productInfo" />
SlideViewer.as has this:
[code].....
View 3 Replies
Jun 14, 2011
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?
View 2 Replies
Feb 17, 2011
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?
View 0 Replies
Aug 24, 2009
I'm currently building a custom flv player and need some help. Maybe I'm missing something, I'm not sure. The main problem is that the FLV doesn't load/play, which most likely causes the secondary problems, such as the bufferClip always visible and no way to test the video and audio scrubbers.
[Code]...
View 9 Replies
Jul 13, 2011
working on a project with a custom flv player.Everything works as it should However, the flv's don't seem to be caching, if I play the video once, close the player, and replay again, the video has to cache -load entirely again before the video starts playing.
View 1 Replies
Aug 9, 2011
I know how to create a FLV player in FLASH - But how do I add other features in the right click menu when a visitor hovers over the player? Like my own domain name & a toggle full screen and more.
View 2 Replies
Mar 27, 2008
So I have a copy of the actionscript 3.0 cookbook... trying to figure out the scrubby code ...using the actionscript 3.0 cook book I come up with:
Code: Select all
import flash.display.Sprite;
import flash.net.NetStream;
[code]....
Returns no compiler errors.... I get the scrub bar... but it doesnt work... it just slides back and forth. I know its problaby something simple that is missing and one of you advanced flash coders are snickering and making fun of me under your breath but thats fine..
View 6 Replies
Jan 20, 2009
i did the Video Basic Tutorials and the XML Playlist, because this was a chance to insert more than one videos. Altouhgh, i customized the skin of the Videoplayer.
When i'm finished, the videoplayer shoud look like this:
Okay, so i took the functions shown in the tutorial. So i've got an XML-Playlist, play/pause button, replay button, mute button.
But as you see in the screenshot there should be some more
First of all i want to stop the "Autoplay-system" and "Autoreplay-System". I want to show the preview-picture and if i klick on "play" i want the TV to start. If one video is finished, there should be the "screenshot" again.
Screenshots -> Because i want to use the player with a lot of movies, i want to write down screenshots next to the videourl (XML Datei), something like this
Code: Select all<?xml version="1.0" encoding="ISO-8859-1"?>
<videos>
<video url="videos/rundengewinner08.flv" desc="Giga Homepage Award Runde 8" thumb="preview.jpg" />
</videos>
Than there are some "Arrowkeys" like this », so i want to switch between the screenshots to choose your video. Because i want this as "navigation", i don't need the Playlist next to the player (if i delete the layer i cannot use the player anymore).
Third: I would love the "minutes"-display (shown on the screenshot).
View 3 Replies
Mar 16, 2009
I've been following the tutorials for building a custom flv player and have come across a few problems, the player can be seen online here: [URL]. I'm having a few issues with the scrubber and the load bar, they loadbar starts in the middle and stretches out towards the sides and the scrubber starts in the middle and runs off the end? I'm pretty new to actionscript as have only really used flash for simple animations before, i have attached the source file and the actions are listed below.
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);[Code] .....
View 1 Replies
May 10, 2009
I'd like to add a little thing to the Lee's flv player : i want to allow user to click wherever on the progress bar to contol the video, and not only by dragging the playhead (like in the vlc player in fact)...
For the moment, I'm trying to modify this part of code, but unsuccessfully, video still remains to beginning
PlayHeadFunction :
loader.scrub.onPress = function() {
clearInterval(videoInterval);
scrubInterval = setInterval(scrubit,10);
[Code].....
View 2 Replies
Nov 17, 2007
I'm building a portfolio web site. In the portfolio part, where actual examples of my work are to be displayed, I have it set up via an XML function from a tutorial I found on building a slideshow. On the stage is an empty movieclip called "myHolder". When you click on the portfolio button in the main movie, a submenu appears with several headings(movieclip buttons), such as print, design, direct mail, etc. When you click on, say, print ads, external thumbnail jpgs are loaded into the lower portion of the main stage, while the first external large size example of the group is loaded into the upper part of the main stage. This is all fed into the main movie from an external xml document. Each time you click on one of the thumbnails, that thumbnai's corresponding larger swf is loaded into the upper portion of the main stage in the "myHolder" movieclip. As I mentioned, I've made all of the larger examples into swfs. And each group of thumbnail jpgs and corresponding larger swf examples, are all kept in separate directories.
Everything works fine, except for the videos. I've made a custom player with the proper code calling the NetConnect and NetStream. When I run the main movie locally, the video player loads fine and the videos play as they should. But when I upload everything to the server, the flv doesn't play. The button rollOvers function, but I don't think the actual functions I placed on the buttons(which are movieclips) are working.Oddly enough, when I use the built-in video player component that comes with Flash within the individual swfs that are to be loaded dynamically, the video plays remotely in the main movie, however I then also lose the included controls that come with the component. So obviously that won't work, plus I would rather use my own player.I know this is an addressing problem, but I haven't been able to decipher it for two days. Obviously, I'm not a real Flasher; I'm just trying to do something nice for my little freelance business.
View 2 Replies
Oct 28, 2010
Which product do I need in order to create a customized flash player (and that is all I need to do)? I have a VP6 Alpha Channel.flv movie (transparent background). I would like to create a custom flash player for my website to display and control this movie.The player needs the following properties:
1. Play the movie transparently (using "wmode"?)
2. Play, pause, volume and exit buttons on the control bar
3. Autohide control bar
4. Logo / text on the control bar
5. Ability to unload itself after the movie ends
Which is the right product for me? Any links on how to create this player would be useful.
View 3 Replies
Sep 8, 2010
i have the custom flv player which reads an XmL and draws circles on Flv video. Postion and time is specified in the XML. I did calculation with as3 getTimer() function. It works fine, no matter how long u pause and then play again. Circles are shown at right time.Now i have two problems
1- How getTimer can be reset?? it is required when user is allowed to play another swf..
2- Is there any other way besides getTimer calculation. I am not using Timer Class as it is Dependant on Frame-Script Execution time and may yield wrong result so this is not as accurate as getTimer() function.
3- As i am using Custom Slider , so i have to do calculations each time when user click or drag slider w.r.t getTimer() function and then subtracts seconds and all that. but again it goes very hard when user plays another swf as my calculations are based on getTimer() Funtion.
View 1 Replies
Sep 13, 2011
This is a Flash MP3 Player I have found on internet, and I was looking for his .fla file so I can modify it and add some text on it.
View 1 Replies
Feb 17, 2009
I'm working on building a custom FLV player and I'm having issues with my scrubber. When I drag and drop it, the spot in which it falls and plays is inconsistent. Example, if I drop it in one spot, the video will pick a spot a second or two past. Then when you mouse over the scrubber it wiggles when your on an edge. [URL]
My scrubber code is:
ActionScript Code:
//---Handle Code---//
scrubbar.mcHandle.onPress = function() {
this.startDrag(true, 0, this._y, 455, this._y);
delete this.onEnterFrame;
trace(this);
[Code] .....
View 0 Replies
Jul 10, 2010
I followed a tutorial on youtube on how to make a custom flash player but the guy never uploaded continuing videos. Here's the link to the video: www(dot)youtube(dot)com/watch?v=_8q3NuboKQI So all I have now is a 3.0 Action Script file with a layer that has this code in it:
[Code]....
View 3 Replies
Mar 17, 2011
All I want to ask is that, can I use netStream and its functions for like resume(); or play(); to control playback of swf files. more importantly, can i use netStream for swf files?
View 9 Replies
Oct 27, 2008
I have this custom flv player and now I want to add cue points to it, but I don't know how. I've been doing research online. I know that if I use the component flv playback I can use addASCuePoint to add cue points in actionscript, but what about custom flv player?
View 3 Replies
Mar 18, 2009
I've created a custom video player which links to a specific Video with:
theVideo.attachVideo(ns);
ns.play("videoName.flv");
I have a client who wants multiple players on a page, each playing a different video. The tricky part is that they want to be able to add videos to their website with this custom player on their own, without having to go into the flash file.
Anyone have an idea or where I can find out how to do this? I dont' think XML would work, because it would still have to call a specific node inside flash...and this one swf should be able to work with any .flv they want.
View 2 Replies
Aug 24, 2009
I am trying to get this dragger to work on the play head of my audio player. I get it to drag but when i let go it jumps back to the place it was before. You may need to change the sound file to get it to work but I have attached all other files needed to get it to work.
var XMLLoaded:XML = new XML();
XMLLoaded.ignoreWhite = true;
var timesLoaded:Number = 0;
this.createEmptyMovieClip("sound_mc", this.getNextHighestDepth);
var sound_mc:Sound = new Sound();
[Code] .....
Attachments: AudioPlayerOnline.zip (14.2 K)
View 3 Replies