Skip to main content
Participating Frequently
May 23, 2013
Question

How to free video memory ?

  • May 23, 2013
  • 1 reply
  • 865 views

Hey,

I'm making a simple presentation, lets say with 2 slides.

In each slide, i've embeded a video from an external link, lets say video1 and video2.

In slide 1 i have :

video1.seek(0);

video1.play();

In slide 2 i have :

video2.seek(0);

video2.play();

I use the keyboard to go back and forth the slides.

My problem is when i go back and forth several times between two slides, the memory used keeps increasing.

Any solution ?

Thank you.

This topic has been closed for replies.

1 reply

Inspiring
May 23, 2013

i've embeded a video from an external link

Is the video embedded or external? Can`t be both.

Anyway, it depends on what you use to show your videos:

if you have  flvPlaybackComponent instead of having two players use only one and set the source-property via Actionscript

_magestikAuthor
Participating Frequently
May 23, 2013

My bad, external.

I have a flvPlaybackComponent.

_magestikAuthor
Participating Frequently
May 23, 2013

I'm making a simple presentation, lets say with 2 slides.

If by slides you mean "scenes", don`t use scenes, they are redundant/pointless in actioscript 3

Anything you can do with scenes, you can do with frames better.

In this case by using scenes you prevent yourself from being able to use one videoplayerinstance in your whole movie.


I think i'm using frames, i'm still a newbie with flash

How do i set the source-propoerty via ActionScript ?