ActionScript 3.0 :: Removing Loaders And Listeners - Scrub Thumbs For Video Player Load And Unload Repeatedly

Sep 1, 2010

I need to have scrub thumbs for video player load and unload repeatedly. Something isn't getting cleared. Every time the thumbs are removed, there's a slight increase in the cpu baseline - something is piling up in memory.

[Code]...

View 4 Replies


Similar Posts:


ActionScript 3.0 :: Removing Thumbs Stored With Loaders In Arrays?

Mar 15, 2010

I'm loading an xml and creating thumb buttons from it. I loop through the xml list and add thumb clips to a container clip and add the loaders as children to the thumb clips. I store the loaders and thumbs in arrays. When I need to remove the thumb clips, do I just remove the thumb clips? Or do I need to unload the loaders first, then remove the thumbs?

View 3 Replies

ActionScript 3.0 :: Removing Loaders And Listeners?

Sep 1, 2010

I need to have scrub thumbs for video player load and unload repeatedly.

Something isn't getting cleared. Every time the thumbs are removed, there's a slight increase in the cpu baseline - something is piling up in memory.

Below is the relevant code:

Code:

function showScrubThumbs():void {
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
xmlLoader.load(new URLRequest("testThumbs.xml"));
}

[Code].....

View 1 Replies

ActionScript 1/2 :: Flash Video Player With Thumbs - Get The File Name From The Xml?

Dec 20, 2009

I would like to know how to reference something in my xml. Im adding thumbnails and would like to know how to get the file name in from the xml using the attributes method. The videos are loaded in an list component I want to use "trace" to get an property or attibute from the xml file. I tried trace(videos[i].attributes.thumb+"thumbnail"); but it didnt work. The XML file is also posted

[Code]...

View 1 Replies

ActionScript 3.0 :: Load / Unload Vimeo Player Set Up?

Aug 26, 2009

I'm trying to set up a flash page that, via buttons, loads/unloads videos hosted on Vimeo(a YouTube competitor) into the page.

I've got the biggest hurdle down... getting the videos into flash.

Now I just have to figure a way to load/unload different videos.[code]...

View 0 Replies

ActionScript 3.0 :: Removing Movie Clips That Have Loaders?

Apr 8, 2009

I have 3 buttons layed out in my design (more to come ultimately). Once you click on any of these buttons, they will add their corresponding movie clips to the stage (button 1 will add movieclip 1 to the stage, etc). Each of these movie clips are details of a project (I'm building a portfolio). Some of these movie clips will have Loader classes in them, loading external images into them for a slideshow.My problem comes in removing any previous movie clips from the stage when a new button is clicked (eg. click button 2 - movie clip 2 shows, click button 3 - remove movie clip 2 before adding movie clip 3 to the stage). I got it to work sorta, but the biggest problem comes with movie clips that have these Loader classes/images in them. When you click back to that project, you still see the last image loaded in that movie clip (like it was not cleared or reset when removed from the stage). How do I remove movie clips and all of their loaded children dynamically, while controlling them with buttons. Here is my sample code (the "showclip" function is where I need to fix my logic).

//Add the Nav Buttons to the stage
var btns_mc:MC_Btns = new MC_Btns();
btns_mc.x = 0;

[code].....

View 3 Replies

Actionscript 3.0 :: Load Unload External SWFs Slows Down Flash Player 10?

Jul 6, 2010

I have written a basic piece of code to load and unload different swfs, now on their own they're pretty smooth (opened independently) , but when you load and unload them a couple of times in the main fla, just like as a user would navigate through a website, it causes the whole flash player and the movies to slow down quite dramatically and looks very bad as if about to crash. Now i know this problem was reported in FP 9, but anyone else has encountered this in FP 10 as well ?

Here's how i load and unload the external SWFs using buttons :

Code: Select allbt1.addEventListener(MouseEvent.CLICK,onLoadClick);
function onLoadClick(evt:MouseEvent):void
{

[code]....

View 1 Replies

ActionScript 2.0 :: Flash8 Add A Scrub Bar To MP3 Player

May 10, 2009

I am trying to find out how to make a flash mp3 player. I have downloaded the source codes from the following website : [URL] (Slim version 0.2.3) and have made some minor modifications to fit my needs.

However, I am still clueless as to how to add a "scrub bar" (or progress bar) that would move as the file is playing and go to the location (minute) where i click on.

View 1 Replies

Actionscript 3.0 :: Scrub Bar For Custom FLV Player?

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

ActionScript 2.0 :: MP3 Player - Scrub Bar Not Working Properly

Jun 13, 2008

I am creating an MP3 player, populated by xml. Everything works great, except the scrub bar. I can make the bar dragable, it is keeping the length etc fine, but when drag it, it goes back to its current position as opposed to where I want it to go. I can upload source file(s) if they are needed....

ActionScript Code:
stop();
playlist = new XML();
playlist.ignoreWhite = true;
playlist.load("playlist.xml");
playlist.onLoad = function(success) {
[Code] .....

View 3 Replies

ActionScript 3.0 :: Mp3 And Video Player - Load External Video Gallery Or Mmedija.swf

Oct 25, 2011

I make my base swf in which I load external swf's. In my base swf I have mp3 player. Everything works fine until I need to load external Video gallery or mmedija.swf. In video gallery I have

import flash.media.SoundMixer;
SoundMixer.stopAll();

to stop my mp3 player sounds and play video files.... But then when load some other files I want to stop playing video files and restart mp3 player.

[Code]...

View 0 Replies

ActionScript 3.0 :: Can Scrub A MP3 Sound Like With A Video

Oct 21, 2009

are you able to scrub an mp3 sound with a slider bar? im looking through the Sound class but there appears to be no properties that would aid in that (like NetStream.time())

View 0 Replies

ActionScript 3.0 :: Best Way To Repeatedly Load Random Commercials?

Nov 25, 2009

Here's my end goal: I want to display commercials on a screen at my wife's bakery. The script should load one commercial, play it, then unload it, randomly load another, and so on. I am completely new to as3 and have unsuccessfully been following several online tutorials. My first attempt had code in each commercial file (swf), that randomly called up another commercial, which in turn called up another file, and so on--but this became a memory hog and crashed the program after a few minutes.

Since then I have created one main swf file that loads an xml file, which holds all the information for the commercials. However, when the swf commercials are loaded according to the xml file, they don't play properly: when the first commercial finishes playing, the next one is already partially done. Obviously it started playing earlier. The swfs should unload and load the next according to a timer, with the length of the timer being different for each swf according to the xml data.

Even with this, the first swf didn't always stop when it should. My code is getting complicated and the display looks sloppy. Would it be better to convert the swf to flv and create an flv player that has 'continuous play' and 'shuffle' features? Would it be better to convert each swf into movieclips and put them all into one swf? (I like the manageability of using an external xml file; I will be adding and removing commercials frequently and want to keep this as simple as possible.)

View 6 Replies

ActionScript 3.0 :: Audio Hits During The Video Scrub

Jun 29, 2011

I've made a video scrubber for a couple of external F4Vs in my movie. I'm using 2 setIntervals for the scrub function: 1 to move my video playhead as the video plays, and 2 to seek to the correct video frame as the user drags the playhead.

This seems to be working ok. I wish it was a little bit more fluid in the scrub action, but I'll take what I can at this point.

But, one thing I'd like to work on is the audio hits during the video scrub. As the netstream seek is happening, the audio is hitting while I scrub. I'd like to temporarily kill the audio as I scrub, and then bring it back on at the MOUSE_UP.

I'm pretty sure that SoundMixer.stopAll(); will get rid of my audio, but what will make it come back?

View 2 Replies

Php :: Flex Video Player Dynamically Load Video?

Nov 3, 2010

I need to load dynamiclly video in flex video player on the web,I'm using standard video player component,when page load a want to load a video in it.I'm not flex programmer

View 1 Replies

ActionScript 2.0 :: Scrubber Won't Scrub Correctly While Video Is Loading

Jun 29, 2008

For some reason my scrubber won't scrub correctly while the video is loading, but once it has completed it scrubs just fine. [code]...

View 11 Replies

ActionScript 2.0 :: Flash - Scrub Itself Video Starting Out In The Middle Of The Loadbar

Feb 14, 2011

I'm making a working scrubber on a video, but having problems. The scrub itself it starting out in the middle of the loadbar. I've looked everywhere, trying to find out what is wrong with it.

[Code]...

View 4 Replies

ActionScript 2.0 :: Xml - Scrub Back Through The Video To Any Point The Correct Subtitle Appears

May 8, 2008

i want it so that if you scrub back through the video to any point, the correct subtitle appears. I'm thinking something like...

[Code]...

View 1 Replies

ActionScript 3.0 :: Removing All Event Listeners

Dec 16, 2009

If you have multiple event listeners running, is there any way to remove all of them at once rather than one at a time?

View 3 Replies

AS3 :: Flash - Removing The Event Listeners?

Dec 17, 2010

I have a basic question about manually removing event listeners in actionscript 3.If I have a function like:

private function doStuff(event : Event):void
{
//let them save
var f:FileReference = new FileReference();

[code]...

How do I remove the event listeners when the saveDone function is called? Normally I just change the "add" to "remove" like:

f.removeEventListener(Event.COMPLETE,saveDone);

However, f is a local variable, and I can't get to it after the doStuff function ends.

private function saveDone(ev:Event){
f.removeEventListener(Event.COMPLETE,saveDone);
}

View 3 Replies

ActionScript 2.0 :: Unload Movie Stuff - Current Swf To Unload And The New One To Load Only After A Transition Occurs

Jun 16, 2003

I want the current swf to unload and the new one to load only after a transition occurs. Is there a more efficient way to do this than if. switch()?

View 2 Replies

ActionScript 3.0 :: Unload The Previous Loaded .swf And Load The New .swf Without Having A Separate Button To Unload

Aug 9, 2008

I am working on a school project that requires me to load external .swf or .jpg files. I currently have all of the buttons working and are loading an external .swf file on to the screen. The problem I am having is that when I go from one button to the next the loaded .swf stays on the screen and the next .swf gets loaded on top of it. I know that I need to unload the file but I am not sure where to put the code for the unload or what code exactly to use. I would like when the button is pressed to unload the previous loaded .swf and load the new .swf without having a separate button to unload.

[Code]...

View 3 Replies

ActionScript 3.0 :: Unload Not Unloading - Unload An External SWF On _root To Load A New One Instead

Jul 23, 2009

I'm trying to unload an external SWF on _root to load a new one instead. I've tried (almost) everything but can't figure it out... I get this error : "Error #1010: A term is undefined and has no properties."

[Code]....

View 3 Replies

ActionScript 3.0 :: Adding Or Removing Event Listeners All At Once?

Jul 1, 2010

I'm trying to do something that I'm not sure if it's possible. I have to add or remove multiple listeners that will trigger the same three methods (onComplete, onError and showProgress). I was trying to do something like this:

[Code]...

Is there anyway to solve this? It seems that after passing through the addListeners method, the loader instance gets lost.

View 2 Replies

Removing Event Listeners And Null Objects?

May 14, 2009

I was just wondering--and it's probably an obvious question really--if I make an object null and that object had one or more event listeners registered, are the listeners removed?

for example:

Actionscript Code:

object.addEventListener(Event.SOME_EVENT,callBack);
function callBack(evt:Event):void
{
object = null;

[Code].....

In this case have I removed 'object''s listener when I made the object null?

View 1 Replies

ActionScript 3.0 :: Adding/Removing Event Listeners?

Apr 21, 2011

ive made a flash website containing 5 pages all accessed via flash buttonson one of the page ive tried loading a external swf file and then added event listeners to each of the buttons so when a new page is selected the swf file doesnt continue to play in the background on the other pagesthis works, however when i then try to change page again this error is displayed:ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.at flash.display:isplayObjectContainer/removeChild()atValleyViewingWebsite_fla::MainTimeline/btnClick()below is the code im using:

var Xpos:Number = 110;
var Ypos:Number = 170;
var swf:MovieClip;

[code].....

View 2 Replies

ActionScript 3.0 :: Removing Loader Event Listeners?

Nov 9, 2003

What is the correct way to refer to the dispatcher listeners in the following code so that I can remove them within completeListener()?

Code:
private function createLoader():void {
// Create the Loader

[code]....

View 1 Replies

ActionScript 3.0 :: Removing Listeners In Child Objects?

May 1, 2010

I'm moving two objects accross the stage at different rates using the same function:

Code:
function moveClip(clip,speed){
clip.addEventListener(Event.ENTER_FRAME,moveIt);
function moveIt(event:Event) {

[Code]....

In AS2 I'd just use dot notation as above and it would work from anywhere or perhaps _root.red....

I've tried root. stage. childbyname Not sure where to from here.

View 2 Replies

ActionScript 3.0 :: Removing Listeners That Only Exist On Child?

Apr 2, 2012

I am trying to have a single parent class that a wide variety of classes can extend. Each of them has the exact same event listeners and remove function so I thought I would try to write the function a single time in the parent class.Parent Class:

Code:
public function removeMe():void {
/* REMOVE EVENT LISTENERS */

[code].....

View 6 Replies

ActionScript 3.0 :: Removing Event Listeners From Movieclips In Class

Mar 21, 2011

I'm creating a class for a game, and I'm having a problem removing event listeners from movieclips in that class.In the class file I have an enterFrame event which puts the movieclips into motion - I want to remove that event listener when the movieclip is removed from the stage.I made the function 'public' in the class file and tried to target it as follows (animal is the movieclip)animal.removeEventListener(Event.ENTER_FRAME, animal.onEnterFrameHandler)

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved