[Flashcoders] My Star

2010-03-03 Thread Susan Day
Hi;

I have the following code:

package
{
import flash.display.MovieClip;
 public class Star extends MovieClip
{
public function Star()
{
var startPosX:int = new int();
var startPosY:int = new int();
var factor:Number = new Number();
startPosX = 100;
startPosY = 500;
factor = 0.07;
var star:MovieClip = new MovieClip();
addChild(star);
star.graphics.lineStyle(1, 0xFF);
star.graphics.beginFill(0xFF);
star.graphics.moveTo(startPosX + factor*144, startPosY + factor*277);
star.graphics.lineTo(startPosX + factor*188, startPosY + factor*184);
star.graphics.lineTo(startPosX + factor*288, startPosY + factor*170);
star.graphics.lineTo(startPosX + factor*216, startPosY + factor*98);
star.graphics.lineTo(startPosX + factor*232, startPosY + factor*0);
star.graphics.lineTo(startPosX + factor*144, startPosY + factor*47);
star.graphics.lineTo(startPosX + factor*55, startPosY + factor*1);
star.graphics.lineTo(startPosX + factor*72, startPosY + factor*100);
star.graphics.lineTo(startPosX + factor*0, startPosY + factor*170);
star.graphics.lineTo(startPosX + factor*99, startPosY + factor*184);
star.graphics.endFill();
}
}
}

I created an empty *.fla to test and entered class Star (the name of this
*.as) in the Properties. The stage is 1000*500. It doesn't draw my star!
Now, I tested this in another *.as file before I pulled it out to create its
own class and it worked. I added a trace at the end of the class when it
failed in my test fla and it traced. What gives?
TIA,
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Draw Outline Slowly

2010-03-03 Thread Victor Subervi
Hi;
How do I draw a shape on stage slowly, over time?
TIA,
V
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] My Star

2010-03-03 Thread Ruben Quintana
Hey Susan, this work


Code:
//-- Save as Star.as
--
package {
import flash.display.MovieClip;
public class Star extends MovieClip {

public function Star(where) {

var startPosX:int;
var startPosY:int;
var factor:Number;
startPosX=0;
startPosY=0;
factor=0.07;
var star:MovieClip=new MovieClip;

star.graphics.lineStyle(1,0xFF);
star.graphics.beginFill(0xFF);
star.graphics.moveTo(startPosX + factor * 144,startPosY + factor
* 277);
star.graphics.lineTo(startPosX + factor * 188,startPosY + factor
* 184);
star.graphics.lineTo(startPosX + factor * 288,startPosY + factor
* 170);
star.graphics.lineTo(startPosX + factor * 216,startPosY + factor
* 98);
star.graphics.lineTo(startPosX + factor * 232,startPosY + factor
* 0);
star.graphics.lineTo(startPosX + factor * 144,startPosY + factor
* 47);
star.graphics.lineTo(startPosX + factor * 55,startPosY + factor
* 1);
star.graphics.lineTo(startPosX + factor * 72,startPosY + factor
* 100);
star.graphics.lineTo(startPosX + factor * 0,startPosY + factor *
170);
star.graphics.lineTo(startPosX + factor * 99,startPosY + factor
* 184);
star.graphics.endFill();
where.addChild(star);
}
}
}
//
---   end Code  --

I create a fla whit next code in the first frame.
/-   Code  
import Star;
var este=this;
var estrella=new Star(este);

stop();
/-End Code --

Enjoy It.












On Wed, Mar 3, 2010 at 11:10 AM, Susan Day suzieprogram...@gmail.comwrote:

 Hi;

 I have the following code:

 package
 {
 import flash.display.MovieClip;
  public class Star extends MovieClip
 {
 public function Star()
 {
 var startPosX:int = new int();
 var startPosY:int = new int();
 var factor:Number = new Number();
 startPosX = 100;
 startPosY = 500;
 factor = 0.07;
 var star:MovieClip = new MovieClip();
 addChild(star);
 star.graphics.lineStyle(1, 0xFF);
 star.graphics.beginFill(0xFF);
 star.graphics.moveTo(startPosX + factor*144, startPosY + factor*277);
 star.graphics.lineTo(startPosX + factor*188, startPosY + factor*184);
 star.graphics.lineTo(startPosX + factor*288, startPosY + factor*170);
 star.graphics.lineTo(startPosX + factor*216, startPosY + factor*98);
 star.graphics.lineTo(startPosX + factor*232, startPosY + factor*0);
 star.graphics.lineTo(startPosX + factor*144, startPosY + factor*47);
 star.graphics.lineTo(startPosX + factor*55, startPosY + factor*1);
 star.graphics.lineTo(startPosX + factor*72, startPosY + factor*100);
 star.graphics.lineTo(startPosX + factor*0, startPosY + factor*170);
 star.graphics.lineTo(startPosX + factor*99, startPosY + factor*184);
 star.graphics.endFill();
 }
 }
 }

 I created an empty *.fla to test and entered class Star (the name of this
 *.as) in the Properties. The stage is 1000*500. It doesn't draw my star!
 Now, I tested this in another *.as file before I pulled it out to create
 its
 own class and it worked. I added a trace at the end of the class when it
 failed in my test fla and it traced. What gives?
 TIA,
 Susan
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] web video

2010-03-03 Thread Gustavo Duenas

it might start automatically

Gus
On Mar 2, 2010, at 8:34 PM, Nathan Mynarcik wrote:

Or, you could trigger a timer when it starts and when it hits 45  
seconds call your function.


Are your users pressing play or does it start automatically?


--Original Message--
From: Gustavo Duenas
Sender: flashcoders-boun...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: [Flashcoders] web video
Sent: Mar 2, 2010 6:40 PM

Hi coders I know that I can control  a flv from as3, but there is a
way to do the opposite?
I mean I have a video (flv) in one movie clip, when the video reaches
the second 45, can I trigger an event?
is that possible?, if so there is a tutorial pointing to that in  the
internet?


Regards,


Gus

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] My Star

2010-03-03 Thread Karina Steffens
Hi Susan,

You need to recheck your coordinates - if you remove the line:
star.graphics.moveTo(startPosX + factor*144, startPosY + factor*277);

- you'll see a weird shape on the stage. So your error lies somewhere in the
numbers, not the class structure. 

Cheers,
Karina 

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Susan Day
 Sent: 03 March 2010 2:10
 To: Flash Coders List
 Subject: [Flashcoders] My Star
 
 Hi;
 
 I have the following code:
 
 package
 {
 import flash.display.MovieClip;
  public class Star extends MovieClip
 {
 public function Star()
 {
 var startPosX:int = new int();
 var startPosY:int = new int();
 var factor:Number = new Number();
 startPosX = 100;
 startPosY = 500;
 factor = 0.07;
 var star:MovieClip = new MovieClip();
 addChild(star);
 star.graphics.lineStyle(1, 0xFF);
 star.graphics.beginFill(0xFF);
 star.graphics.moveTo(startPosX + factor*144, startPosY + factor*277);
 star.graphics.lineTo(startPosX + factor*188, startPosY + factor*184);
 star.graphics.lineTo(startPosX + factor*288, startPosY + factor*170);
 star.graphics.lineTo(startPosX + factor*216, startPosY + factor*98);
 star.graphics.lineTo(startPosX + factor*232, startPosY + factor*0);
 star.graphics.lineTo(startPosX + factor*144, startPosY + factor*47);
 star.graphics.lineTo(startPosX + factor*55, startPosY + factor*1);
 star.graphics.lineTo(startPosX + factor*72, startPosY + factor*100);
 star.graphics.lineTo(startPosX + factor*0, startPosY + factor*170);
 star.graphics.lineTo(startPosX + factor*99, startPosY + factor*184);
 star.graphics.endFill();
 }
 }
 }
 
 I created an empty *.fla to test and entered class Star (the name of
 this
 *.as) in the Properties. The stage is 1000*500. It doesn't draw my
 star!
 Now, I tested this in another *.as file before I pulled it out to
 create its
 own class and it worked. I added a trace at the end of the class when
 it
 failed in my test fla and it traced. What gives?
 TIA,
 Susan
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Draw Outline Slowly

2010-03-03 Thread Nathan Mynarcik
Draw it as the starting position and then use its scale properties to animate 
that it is drawing. 

For example, if you draw a thin rectangle that is 1px in height, then animate 
its scaleY prop to a larger number, it looks like its drawing the rectangle as 
slow as your tween is. 


--Original Message--
From: Victor Subervi
Sender: flashcoders-boun...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: [Flashcoders] Draw Outline Slowly
Sent: Mar 3, 2010 8:43 AM

Hi;
How do I draw a shape on stage slowly, over time?
TIA,
V
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] how to reduce CPU usage

2010-03-03 Thread Andrew Sinning
I have a Flash movie that is using 50-70% of CPU.  I've never thought of 
this as unusual, but our partner on this project finds this to be very 
high, so I'm looking into how I can reduce this.


I am using AS2 and authoring for Flash Player 8.  I'm testing under 
Windows using Firefox, but I get similar results using IE.  I have the 
current Flash Player installed.


The first thing that I looked at was any intervals or onEnterFrame 
events.  I commented out all the onEnterFrames and extended the shortest 
interval from 30ms to 300ms.  This had virtually no impact on CPU usage.


Next I looked at my skin movie.  The skin movie is a two frame movie 
containing all the major movie clips in the GUI.  If I load the skin 
movie by itself into the browser, CPU usage is 30-35%, which is high, 
but well under 50-70%.


Then I made a change so that the entire skin movie would remain 
invisible when loaded into the main movie.  This pushed the load back up 
to the 50-70% range.  So, it doesn't appear that the rendering the 
graphics layer is responsible for the high CPU usage.


There's obviously a lot more going on in the project.  Data is loaded in 
from the server.  TextFields and other place holders are created to 
accept data.  Event listeners are created.  I don't know if more detail 
would help here.


Where else should I be looking?

Thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] My Star

2010-03-03 Thread Susan Day
On Wed, Mar 3, 2010 at 10:54 AM, Karina Steffens kar...@neo-archaic.netwrote:

 Hi Susan,

 You need to recheck your coordinates - if you remove the line:
 star.graphics.moveTo(startPosX + factor*144, startPosY + factor*277);

 - you'll see a weird shape on the stage. So your error lies somewhere in
 the
 numbers, not the class structure.


Caught it. Thanks.
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Draw Outline Slowly

2010-03-03 Thread Victor Subervi
On Wed, Mar 3, 2010 at 10:55 AM, Nathan Mynarcik nat...@mynarcik.comwrote:

 Draw it as the starting position and then use its scale properties to
 animate that it is drawing.

 For example, if you draw a thin rectangle that is 1px in height, then
 animate its scaleY prop to a larger number, it looks like its drawing the
 rectangle as slow as your tween is.


Very cool!
Thanks,
V
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Draw Outline Slowly

2010-03-03 Thread Victor Subervi
On Wed, Mar 3, 2010 at 11:10 AM, Victor Subervi victorsube...@gmail.comwrote:

 On Wed, Mar 3, 2010 at 10:55 AM, Nathan Mynarcik nat...@mynarcik.comwrote:

 Draw it as the starting position and then use its scale properties to
 animate that it is drawing.

 For example, if you draw a thin rectangle that is 1px in height, then
 animate its scaleY prop to a larger number, it looks like its drawing the
 rectangle as slow as your tween is.


Wait a minute! How's that work on curves? Can I scale that, too?
TIA,
V
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] web video

2010-03-03 Thread Sam Brown
you can embed cuepoints in the flv and listen for them to cue events. Most
reliable way to embed them is via the Adobe Media Encoder

one way to access them is like:

import fl.video.VideoEvent;
import fl.video.MetadatEvent;

myVid.addEventListener(MetadataEvent.CUE_POINT, doThis);
function doThis(e:Event):void{
}
...
On Wed, Mar 3, 2010 at 9:45 AM, Gustavo Duenas 
gdue...@leftandrightsolutions.com wrote:

 it might start automatically

 Gus
 On Mar 2, 2010, at 8:34 PM, Nathan Mynarcik wrote:

  Or, you could trigger a timer when it starts and when it hits 45 seconds
 call your function.

 Are your users pressing play or does it start automatically?


 --Original Message--
 From: Gustavo Duenas
 Sender: flashcoders-boun...@chattyfig.figleaf.com
 To: Flash Coders List
 ReplyTo: Flash Coders List
 Subject: [Flashcoders] web video
 Sent: Mar 2, 2010 6:40 PM

 Hi coders I know that I can control  a flv from as3, but there is a
 way to do the opposite?
 I mean I have a video (flv) in one movie clip, when the video reaches
 the second 45, can I trigger an event?
 is that possible?, if so there is a tutorial pointing to that in  the
 internet?


 Regards,


 Gus

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 Nathan Mynarcik
 Interactive Web Developer
 nat...@mynarcik.com
 254.749.2525
 www.mynarcik.com
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Draw Outline Slowly

2010-03-03 Thread Ivan Dembicki
Hello Victor,

 Wait a minute! How's that work on curves? Can I scale that, too?

you have one way only: use Bezier package
http://bezier.googlecode.com

demo: http://bezier.ru/wp-content/uploads/2008/06/bezier.swf?demo=1


-- 
iv
http://www.bezier.ru
http://bezier.googlecode.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Draw Outline Slowly

2010-03-03 Thread tom rhodes
are you beno in disguise ;) ?

i would strongly suggest if this is fixed (i.e. you know what you're shape
is and it's not going to change) to do it on a timeline with masks.

if not then you need to get to grips with the drawing api and for curves
maybe some maths too. for a straight line it's easy with teh drawing api,
just remember to clear the graphics between frames and tween the endpoint
of where to draw the line

curves are a lot more complicated...


On 3 March 2010 16:11, Victor Subervi victorsube...@gmail.com wrote:

 On Wed, Mar 3, 2010 at 11:10 AM, Victor Subervi victorsube...@gmail.com
 wrote:

  On Wed, Mar 3, 2010 at 10:55 AM, Nathan Mynarcik nat...@mynarcik.com
 wrote:
 
  Draw it as the starting position and then use its scale properties to
  animate that it is drawing.
 
  For example, if you draw a thin rectangle that is 1px in height, then
  animate its scaleY prop to a larger number, it looks like its drawing
 the
  rectangle as slow as your tween is.
 
 
 Wait a minute! How's that work on curves? Can I scale that, too?
 TIA,
 V
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] web video

2010-03-03 Thread Valentin Schmidt
Sam Brown wrote:
 you can embed cuepoints in the flv and listen for them to cue events. Most
 reliable way to embed them is via the Adobe Media Encoder

there is no need to embedd such end cuepoints into the file, you can as
well add them programmatically at runtime (using the addASCuePoint
method), which results in much higher flexibility.

but actually I don't think you need any cuepoints at all just to detect
the end of your video, for this purpose you can simply use the existing
VideoEvents (and check e.g. for VideoEvent.COMPLETE).

cheers,
valentin

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] web video

2010-03-03 Thread Valentin Schmidt
Valentin Schmidt wrote:
 Sam Brown wrote:
 you can embed cuepoints in the flv and listen for them to cue events. Most
 reliable way to embed them is via the Adobe Media Encoder
 
 there is no need to embedd such end cuepoints into the file, you can as
 well add them programmatically at runtime (using the addASCuePoint
 method), which results in much higher flexibility.
 
 but actually I don't think you need any cuepoints at all just to detect
 the end of your video, for this purpose you can simply use the existing
 VideoEvents (and check e.g. for VideoEvent.COMPLETE).

my bad, for some reason I had thought the OP just wanted know when the
file has reached the end, but actually he asked for reaching second 45.

anyway, it should be no problem to prammatically add a cuepont at second
45 using FLVPlayback's addASCuePoint() method.

cheers,
valentin
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Draw Outline Slowly

2010-03-03 Thread Ivan Dembicki
Hello,

oops, incorrect demo
use 6 and 7 demo as example for end point calculation


-- 
iv
http://www.bezier.ru
http://bezier.googlecode.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] web video

2010-03-03 Thread Gustavo Duenas
I did use the adobe media encoder, I have 3 cuepoints cp1 cp2 and cp3  
those are events,


here is my as and I don't know why this is not working;

import fl.video.MetadataEvent;
import fl.video.VideoEvent;



miMovie.addEventListener(MetadataEvent.CUE_POINT, cp);
function cp(e:MetadataEvent):void {
trace(start);
if (e.info.name==cp1) {
trace(we are cp1);
}
if (e.info.name==cp2) {
trace(we are cp2);
}
if (e.info.name==cp3) {
trace(we are cp3);
}

}
On Mar 3, 2010, at 10:11 AM, Sam Brown wrote:

you can embed cuepoints in the flv and listen for them to cue  
events. Most

reliable way to embed them is via the Adobe Media Encoder

one way to access them is like:

import fl.video.VideoEvent;
import fl.video.MetadatEvent;

myVid.addEventListener(MetadataEvent.CUE_POINT, doThis);
function doThis(e:Event):void{
}
...
On Wed, Mar 3, 2010 at 9:45 AM, Gustavo Duenas 
gdue...@leftandrightsolutions.com wrote:


it might start automatically

Gus
On Mar 2, 2010, at 8:34 PM, Nathan Mynarcik wrote:

Or, you could trigger a timer when it starts and when it hits 45  
seconds

call your function.

Are your users pressing play or does it start automatically?


--Original Message--
From: Gustavo Duenas
Sender: flashcoders-boun...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: [Flashcoders] web video
Sent: Mar 2, 2010 6:40 PM

Hi coders I know that I can control  a flv from as3, but there is a
way to do the opposite?
I mean I have a video (flv) in one movie clip, when the video  
reaches

the second 45, can I trigger an event?
is that possible?, if so there is a tutorial pointing to that in   
the

internet?


Regards,


Gus

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Pop up window locally

2010-03-03 Thread natalia Vikhtinskaya
Hi
I cannot find solution for this small problem
Simple code
getURL 
(javascript:NewWindow=window.open('key16.html','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');void(0););


That opens pop up window when I test it  from the server and does not
open pop up window when I test it locally on computer.
Thanks for any help.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] web video

2010-03-03 Thread Gustavo Duenas
help!!! the events are not working the way they were supposed on the  
tutorial, the first cue point should be always at 0? becuae I have it  
with other value.


Gus
On Mar 3, 2010, at 11:01 AM, Gustavo Duenas wrote:

I did use the adobe media encoder, I have 3 cuepoints cp1 cp2 and  
cp3 those are events,


here is my as and I don't know why this is not working;

import fl.video.MetadataEvent;
import fl.video.VideoEvent;



miMovie.addEventListener(MetadataEvent.CUE_POINT, cp);
function cp(e:MetadataEvent):void {
trace(start);
   if (e.info.name==cp1) {
   trace(we are cp1);
   }
   if (e.info.name==cp2) {
   trace(we are cp2);
   }
if (e.info.name==cp3) {
   trace(we are cp3);
   }

}
On Mar 3, 2010, at 10:11 AM, Sam Brown wrote:

you can embed cuepoints in the flv and listen for them to cue  
events. Most

reliable way to embed them is via the Adobe Media Encoder

one way to access them is like:

import fl.video.VideoEvent;
import fl.video.MetadatEvent;

myVid.addEventListener(MetadataEvent.CUE_POINT, doThis);
function doThis(e:Event):void{
}
...
On Wed, Mar 3, 2010 at 9:45 AM, Gustavo Duenas 
gdue...@leftandrightsolutions.com wrote:


it might start automatically

Gus
On Mar 2, 2010, at 8:34 PM, Nathan Mynarcik wrote:

Or, you could trigger a timer when it starts and when it hits 45  
seconds

call your function.

Are your users pressing play or does it start automatically?


--Original Message--
From: Gustavo Duenas
Sender: flashcoders-boun...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: [Flashcoders] web video
Sent: Mar 2, 2010 6:40 PM

Hi coders I know that I can control  a flv from as3, but there is a
way to do the opposite?
I mean I have a video (flv) in one movie clip, when the video  
reaches

the second 45, can I trigger an event?
is that possible?, if so there is a tutorial pointing to that in   
the

internet?


Regards,


Gus

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Pop up window locally

2010-03-03 Thread kennethkawam...@gmail.com
Browsers such as IE blocks local JavaScript execution from SWF.
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 3 March 2010 16:18, natalia Vikhtinskaya natavi.m...@gmail.com wrote:
 Hi
 I cannot find solution for this small problem
 Simple code
 getURL 
 (javascript:NewWindow=window.open('key16.html','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');void(0););


 That opens pop up window when I test it  from the server and does not
 open pop up window when I test it locally on computer.
 Thanks for any help.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Dynamically superimposing image onto video

2010-03-03 Thread kennethkawam...@gmail.com
Just contemplating the strategy for dynamically superimposing an image
onto a video. A good recent example is: http://en.tackfilm.se/

Any ideas to achieve this? (Just the final video rendering bit, you
can leave the file upload etc. ;)

TIA,

Kenneth
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] cue points problems

2010-03-03 Thread Gustavo Duenas
Hi coders I've been following the tutorials on the net to trigger  
events from cuepoints in a video, but it seems that they are not  
working the only one working is from 0:00:000 the others don't, here  
is my code.



mport fl.video.MetadataEvent;
import fl.video.VideoEvent;



miMovie.addEventListener(MetadataEvent.CUE_POINT, cp);
function cp(e:MetadataEvent):void {
trace(start);
  if (e.info.name==cp1) {
  trace(we are cp1);
  }
  if (e.info.name==cp2) {
  trace(we are cp2);
  }
if (e.info.name==cp3) {
  trace(we are cp3);
  }

}


I did this following a tutorial but so far is not working some help  
needed to understand why?


gus
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: Pop up window locally

2010-03-03 Thread natalia Vikhtinskaya
But if locally I test script like
getURL 
(javascript:NewWindow=window.open('http://www.somename.com/key16.html','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');void(0););
this script  works in IE and opens pop up window


2010/3/3 natalia Vikhtinskaya natavi.m...@gmail.com:
 Hi
 I cannot find solution for this small problem
 Simple code
 getURL 
 (javascript:NewWindow=window.open('key16.html','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');void(0););


 That opens pop up window when I test it  from the server and does not
 open pop up window when I test it locally on computer.
 Thanks for any help.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] how to reduce CPU usage

2010-03-03 Thread Mendelsohn, Michael
Hi Andrew...

Even though you said it might not be the renderer, I wonder if you set the 
stage quality to medium, that might make a difference, as the anti-aliasing is 
processor intensive.  If that degrades the text of your textfields, you could 
see how the fields appear using device fonts.  Just a thought.

- Michael M.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Pop up window locally

2010-03-03 Thread Nathan Mynarcik
When you test locally, are you testing your swf embedded in an HTML file? Or 
are you testing it from when Flash shows you the published swf?


--Original Message--
From: natalia Vikhtinskaya
Sender: flashcoders-boun...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: [Flashcoders] Re: Pop up window locally
Sent: Mar 3, 2010 11:58 AM

But if locally I test script like
getURL 
(javascript:NewWindow=window.open('http://www.somename.com/key16.html','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');void(0););
this script  works in IE and opens pop up window


2010/3/3 natalia Vikhtinskaya natavi.m...@gmail.com:
 Hi
 I cannot find solution for this small problem
 Simple code
 getURL 
 (javascript:NewWindow=window.open('key16.html','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');void(0););


 That opens pop up window when I test it  from the server and does not
 open pop up window when I test it locally on computer.
 Thanks for any help.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] cue points problems (solved)

2010-03-03 Thread Gustavo Duenas
well is working now, apparently the video encoder cs4 was the problem,  
because when I code the cue point targeting for flv flash 8 or higher,  
the events triggers on flash pro cs4...odd, but is working  
now...thanks anyway.


gus

P.s: it looks like a kind of problem for the flash f4v format, when I  
change the format to the flv flash 8 and higher turns out good



On Mar 3, 2010, at 12:55 PM, Gustavo Duenas wrote:

Hi coders I've been following the tutorials on the net to trigger  
events from cuepoints in a video, but it seems that they are not  
working the only one working is from 0:00:000 the others don't, here  
is my code.



mport fl.video.MetadataEvent;
import fl.video.VideoEvent;



miMovie.addEventListener(MetadataEvent.CUE_POINT, cp);
function cp(e:MetadataEvent):void {
trace(start);
 if (e.info.name==cp1) {
 trace(we are cp1);
 }
 if (e.info.name==cp2) {
 trace(we are cp2);
 }
if (e.info.name==cp3) {
 trace(we are cp3);
 }

}


I did this following a tutorial but so far is not working some help  
needed to understand why?


gus
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Pop up window locally

2010-03-03 Thread kennethkawam...@gmail.com
Can you test it from HTML? i.e. a hef=javascript:NewWindow
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 3 March 2010 17:58, natalia Vikhtinskaya natavi.m...@gmail.com wrote:
 But if locally I test script like
 getURL 
 (javascript:NewWindow=window.open('http://www.somename.com/key16.html','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');void(0););
 this script  works in IE and opens pop up window


 2010/3/3 natalia Vikhtinskaya natavi.m...@gmail.com:
 Hi
 I cannot find solution for this small problem
 Simple code
 getURL 
 (javascript:NewWindow=window.open('key16.html','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');void(0););


 That opens pop up window when I test it  from the server and does not
 open pop up window when I test it locally on computer.
 Thanks for any help.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Pop up window locally

2010-03-03 Thread natalia Vikhtinskaya
I test it from html
script language=javascript
if (AC_FL_RunContent == 0) {
alert(This page requires AC_RunActiveContent.js.);
} else {
AC_FL_RunContent(
'codebase', 
'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '550',
'height', '400',
'src', 'test',
'quality', 'high',
'pluginspage', 
'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'test',
'bgcolor', '#ff',
'name', 'test',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','always',
'movie', 'test',
'salign', ''
); //end AC code
}
/script

2010/3/3 Nathan Mynarcik nat...@mynarcik.com:
 When you test locally, are you testing your swf embedded in an HTML file? Or 
 are you testing it from when Flash shows you the published swf?


 --Original Message--
 From: natalia Vikhtinskaya
 Sender: flashcoders-boun...@chattyfig.figleaf.com
 To: Flash Coders List
 ReplyTo: Flash Coders List
 Subject: [Flashcoders] Re: Pop up window locally
 Sent: Mar 3, 2010 11:58 AM

 But if locally I test script like
 getURL 
 (javascript:NewWindow=window.open('http://www.somename.com/key16.html','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');void(0););
 this script  works in IE and opens pop up window


 2010/3/3 natalia Vikhtinskaya natavi.m...@gmail.com:
 Hi
 I cannot find solution for this small problem
 Simple code
 getURL 
 (javascript:NewWindow=window.open('key16.html','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');void(0););


 That opens pop up window when I test it  from the server and does not
 open pop up window when I test it locally on computer.
 Thanks for any help.


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 Nathan Mynarcik
 Interactive Web Developer
 nat...@mynarcik.com
 254.749.2525
 www.mynarcik.com

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Pop up window locally

2010-03-03 Thread natalia Vikhtinskaya
 Mozilla opens pop up correctly. This strange thing happened only on IE

2010/3/3 natalia Vikhtinskaya natavi.m...@gmail.com:
 I test it from html
 script language=javascript
        if (AC_FL_RunContent == 0) {
                alert(This page requires AC_RunActiveContent.js.);
        } else {
                AC_FL_RunContent(
                        'codebase', 
 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
                        'width', '550',
                        'height', '400',
                        'src', 'test',
                        'quality', 'high',
                        'pluginspage', 
 'http://www.macromedia.com/go/getflashplayer',
                        'align', 'middle',
                        'play', 'true',
                        'loop', 'true',
                        'scale', 'showall',
                        'wmode', 'window',
                        'devicefont', 'false',
                        'id', 'test',
                        'bgcolor', '#ff',
                        'name', 'test',
                        'menu', 'true',
                        'allowFullScreen', 'false',
                        'allowScriptAccess','always',
                        'movie', 'test',
                        'salign', ''
                        ); //end AC code
        }
 /script

 2010/3/3 Nathan Mynarcik nat...@mynarcik.com:
 When you test locally, are you testing your swf embedded in an HTML file? Or 
 are you testing it from when Flash shows you the published swf?


 --Original Message--
 From: natalia Vikhtinskaya
 Sender: flashcoders-boun...@chattyfig.figleaf.com
 To: Flash Coders List
 ReplyTo: Flash Coders List
 Subject: [Flashcoders] Re: Pop up window locally
 Sent: Mar 3, 2010 11:58 AM

 But if locally I test script like
 getURL 
 (javascript:NewWindow=window.open('http://www.somename.com/key16.html','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');void(0););
 this script  works in IE and opens pop up window


 2010/3/3 natalia Vikhtinskaya natavi.m...@gmail.com:
 Hi
 I cannot find solution for this small problem
 Simple code
 getURL 
 (javascript:NewWindow=window.open('key16.html','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');void(0););


 That opens pop up window when I test it  from the server and does not
 open pop up window when I test it locally on computer.
 Thanks for any help.


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 Nathan Mynarcik
 Interactive Web Developer
 nat...@mynarcik.com
 254.749.2525
 www.mynarcik.com

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] how to reduce CPU usage

2010-03-03 Thread Fahim Akhter
It depends on a lot of factors, here are some from the top of my head:

-  Frame Rate
-  Image Raster or Vector
-  If using vector images are they cached?
-  How many vector points does the image have?
-  Are the objects on the screen only rendered or are vectors outside the
frame being rendered wating to come in?

Hope it helps :)

regards,
Fahim Akhter
http://www.behance.net/fahimakhter http://twitter.com/fahimakhter


On Wed, Mar 3, 2010 at 11:07 PM, Mendelsohn, Michael 
michael.mendels...@fmglobal.com wrote:

 Hi Andrew...

 Even though you said it might not be the renderer, I wonder if you set the
 stage quality to medium, that might make a difference, as the anti-aliasing
 is processor intensive.  If that degrades the text of your textfields, you
 could see how the fields appear using device fonts.  Just a thought.

 - Michael M.


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Pop up window locally

2010-03-03 Thread Fahim Akhter
Test on different version of IE too, sometimes older version of IE prove to
be a bitch.

regards,
Fahim Akhter
http://www.behance.net/fahimakhter http://twitter.com/fahimakhter


On Wed, Mar 3, 2010 at 11:40 PM, natalia Vikhtinskaya natavi.m...@gmail.com
 wrote:

  Mozilla opens pop up correctly. This strange thing happened only on IE

 2010/3/3 natalia Vikhtinskaya natavi.m...@gmail.com:
  I test it from html
  script language=javascript
 if (AC_FL_RunContent == 0) {
 alert(This page requires AC_RunActiveContent.js.);
 } else {
 AC_FL_RunContent(
 'codebase', '
 http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0
 ',
 'width', '550',
 'height', '400',
 'src', 'test',
 'quality', 'high',
 'pluginspage', '
 http://www.macromedia.com/go/getflashplayer',
 'align', 'middle',
 'play', 'true',
 'loop', 'true',
 'scale', 'showall',
 'wmode', 'window',
 'devicefont', 'false',
 'id', 'test',
 'bgcolor', '#ff',
 'name', 'test',
 'menu', 'true',
 'allowFullScreen', 'false',
 'allowScriptAccess','always',
 'movie', 'test',
 'salign', ''
 ); //end AC code
 }
  /script
 
  2010/3/3 Nathan Mynarcik nat...@mynarcik.com:
  When you test locally, are you testing your swf embedded in an HTML
 file? Or are you testing it from when Flash shows you the published swf?
 
 
  --Original Message--
  From: natalia Vikhtinskaya
  Sender: flashcoders-boun...@chattyfig.figleaf.com
  To: Flash Coders List
  ReplyTo: Flash Coders List
  Subject: [Flashcoders] Re: Pop up window locally
  Sent: Mar 3, 2010 11:58 AM
 
  But if locally I test script like
  getURL (javascript:NewWindow=window.open('
 http://www.somename.com/key16.html
 ','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');void(0););
  this script  works in IE and opens pop up window
 
 
  2010/3/3 natalia Vikhtinskaya natavi.m...@gmail.com:
  Hi
  I cannot find solution for this small problem
  Simple code
  getURL
 (javascript:NewWindow=window.open('key16.html','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');void(0););
 
 
  That opens pop up window when I test it  from the server and does not
  open pop up window when I test it locally on computer.
  Thanks for any help.
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
  Nathan Mynarcik
  Interactive Web Developer
  nat...@mynarcik.com
  254.749.2525
  www.mynarcik.com
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] how to reduce CPU usage

2010-03-03 Thread Andrew Sinning

Thanks!

Mendelsohn, Michael wrote:

Hi Andrew...

Even though you said it might not be the renderer, I wonder if you set the 
stage quality to medium, that might make a difference, as the anti-aliasing is 
processor intensive.  If that degrades the text of your textfields, you could 
see how the fields appear using device fonts.  Just a thought.

- Michael M.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] how to reduce CPU usage

2010-03-03 Thread Andrew Sinning

Thanks Fahim.  Could you please clarify:

We're using vector images.  How do I control if vectors oustide the 
screen are rendered?


For reducing CPU usage, is it better to cache the images or not?  Many 
of them are being cached because we're using a lot of filter effects. 


Fahim Akhter wrote:

It depends on a lot of factors, here are some from the top of my head:

-  Frame Rate
-  Image Raster or Vector
-  If using vector images are they cached?
-  How many vector points does the image have?
-  Are the objects on the screen only rendered or are vectors outside the
frame being rendered wating to come in?

Hope it helps :)

regards,
Fahim Akhter
http://www.behance.net/fahimakhter http://twitter.com/fahimakhter


On Wed, Mar 3, 2010 at 11:07 PM, Mendelsohn, Michael 
michael.mendels...@fmglobal.com wrote:

  

Hi Andrew...

Even though you said it might not be the renderer, I wonder if you set the
stage quality to medium, that might make a difference, as the anti-aliasing
is processor intensive.  If that degrades the text of your textfields, you
could see how the fields appear using device fonts.  Just a thought.

- Michael M.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] how to reduce CPU usage

2010-03-03 Thread Andrew Sinning
Setting the _quality to LOW has no effect on the CPU usage, so would 
this point to some cause other than vector rendering?


The application uses a lot of memory, about 200,000K, but this would 
necessarily require a lot of CPU usage, right?  Lot's of apps use way 
more memory but not use so much CPU.




Mendelsohn, Michael wrote:

Hi Andrew...

Even though you said it might not be the renderer, I wonder if you 
set the stage quality to medium, that might make a difference, as the 
anti-aliasing is processor intensive.  If that degrades the text of 
your textfields, you could see how the fields appear using device 
fonts.  Just a thought.


- Michael M.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] how to reduce CPU usage

2010-03-03 Thread Fahim Akhter
If your application zooms into vectors and has different magnification
levels, I would not recommend caching. In all other situations caching works
out fine for me.

Well for example , lets say you are rendering three building (vector) two of
them are currently on stage ( user can see them ) the third building is
offstage but is being rendered (users cannot see it ) . Its sometimes wise
to just render things that you need on stage and not keep things off stage.

*Fahim Akhter* |* Software Design Engineer | White Rabbit Games* | T:
+92.321.5307672 | akhter.fa...@gmail.com |
http://apps.facebook.com/feline-frenzy/
My profiles: [image: Facebook] http://facebook.com/fahimakhter[image:
LinkedIn] http://linkedin.com/in/fahimakhter[image:
Flickr]http://flickr.com/photos/fahimakhter[image:
Twitter] http://twitter.com/fahimakhter[image:
devianArt]http://degothicangel.deviantart.com
Signature powered by WiseStamp http://www.wisestamp.com/email-install


On Thu, Mar 4, 2010 at 12:17 AM, Andrew Sinning and...@learningware.comwrote:

 Thanks Fahim.  Could you please clarify:

 We're using vector images.  How do I control if vectors oustide the screen
 are rendered?

 For reducing CPU usage, is it better to cache the images or not?  Many of
 them are being cached because we're using a lot of filter effects.
 Fahim Akhter wrote:

 It depends on a lot of factors, here are some from the top of my head:

 -  Frame Rate
 -  Image Raster or Vector
 -  If using vector images are they cached?
 -  How many vector points does the image have?
 -  Are the objects on the screen only rendered or are vectors outside the
 frame being rendered wating to come in?

 Hope it helps :)

 regards,
 Fahim Akhter
 http://www.behance.net/fahimakhter http://twitter.com/fahimakhter


 On Wed, Mar 3, 2010 at 11:07 PM, Mendelsohn, Michael 
 michael.mendels...@fmglobal.com wrote:



 Hi Andrew...

 Even though you said it might not be the renderer, I wonder if you set
 the
 stage quality to medium, that might make a difference, as the
 anti-aliasing
 is processor intensive.  If that degrades the text of your textfields,
 you
 could see how the fields appear using device fonts.  Just a thought.

 - Michael M.


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] how to reduce CPU usage

2010-03-03 Thread Fahim Akhter
Are you using a lot of flex components on top of each other? Is it an
animation? Be a little specific about what your doing so someone might find
a way out :)

*Fahim Akhter* |* Software Design Engineer | White Rabbit Games* | T:
+92.321.5307672 | akhter.fa...@gmail.com |
http://apps.facebook.com/feline-frenzy/
My profiles: [image: Facebook] http://facebook.com/fahimakhter[image:
LinkedIn] http://linkedin.com/in/fahimakhter[image:
Flickr]http://flickr.com/photos/fahimakhter[image:
Twitter] http://twitter.com/fahimakhter[image:
devianArt]http://degothicangel.deviantart.com
Signature powered by WiseStamp http://www.wisestamp.com/email-install


On Thu, Mar 4, 2010 at 12:37 AM, Andrew Sinning and...@learningware.comwrote:

 Setting the _quality to LOW has no effect on the CPU usage, so would this
 point to some cause other than vector rendering?

 The application uses a lot of memory, about 200,000K, but this would
 necessarily require a lot of CPU usage, right?  Lot's of apps use way more
 memory but not use so much CPU.



 Mendelsohn, Michael wrote:

 Hi Andrew...

 Even though you said it might not be the renderer, I wonder if you set
 the stage quality to medium, that might make a difference, as the
 anti-aliasing is processor intensive.  If that degrades the text of your
 textfields, you could see how the fields appear using device fonts.  Just a
 thought.

 - Michael M.


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] how to reduce CPU usage

2010-03-03 Thread Karl DeSaulniers
Yeah, if you have any images animating, remove the caching, as it has  
to cache every time it moves.
Also, if you have any listeners that can be deleted after being  
called, do that as well.



Karl


On Mar 3, 2010, at 1:37 PM, Fahim Akhter wrote:

If your application zooms into vectors and has different magnification
levels, I would not recommend caching. In all other situations  
caching works

out fine for me.

Well for example , lets say you are rendering three building (vector)  
two of

them are currently on stage ( user can see them ) the third building is
offstage but is being rendered (users cannot see it ) . Its sometimes  
wise
to just render things that you need on stage and not keep things off  
stage.


*Fahim Akhter* |* Software Design Engineer | White Rabbit Games* | T:
+92.321.5307672 | akhter.fa...@gmail.com |
http://apps.facebook.com/feline-frenzy/
My profiles: [image: Facebook] http://facebook.com/fahimakhter[image:
LinkedIn] http://linkedin.com/in/fahimakhter[image:
Flickr]http://flickr.com/photos/fahimakhter[image:
Twitter] http://twitter.com/fahimakhter[image:
devianArt]http://degothicangel.deviantart.com
Signature powered by WiseStamp http://www.wisestamp.com/email-install


On Thu, Mar 4, 2010 at 12:17 AM, Andrew Sinning  
and...@learningware.comwrote:



Thanks Fahim.  Could you please clarify:

We're using vector images.  How do I control if vectors oustide the  
screen

are rendered?

For reducing CPU usage, is it better to cache the images or not?   
Many of

them are being cached because we're using a lot of filter effects.
Fahim Akhter wrote:

It depends on a lot of factors, here are some from the top of my  
head:


-  Frame Rate
-  Image Raster or Vector
-  If using vector images are they cached?
-  How many vector points does the image have?
-  Are the objects on the screen only rendered or are vectors  
outside the

frame being rendered wating to come in?

Hope it helps :)

regards,
Fahim Akhter
http://www.behance.net/fahimakhter http://twitter.com/fahimakhter


On Wed, Mar 3, 2010 at 11:07 PM, Mendelsohn, Michael 
michael.mendels...@fmglobal.com wrote:




Hi Andrew...

Even though you said it might not be the renderer, I wonder if  
you set

the
stage quality to medium, that might make a difference, as the
anti-aliasing
is processor intensive.  If that degrades the text of your  
textfields,

you
could see how the fields appear using device fonts.  Just a thought.

- Michael M.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] how to reduce CPU usage

2010-03-03 Thread Henrik Andersson

Karl DeSaulniers wrote:

Yeah, if you have any images animating, remove the caching, as it has to
cache every time it moves.
Also, if you have any listeners that can be deleted after being called,
do that as well.


Animating as in not being just moved around without changing the size, 
rotation or skew.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] how to reduce CPU usage

2010-03-03 Thread Andrew Sinning

Things are looking much better.

I had made a really stupid interface kludge when somebody decided that 
we needed a layered-tab look.  I took the main display layer, duplicated 
it 5 times, and then used depth swapping to change the current display 
item.  We've since dropped the layered-tab look, but the structure is 
still in place.  As a quick test, I got rid of all but the most 
important display layer, and my CPU usage dropped to 12%!


What's odd to me is that all of this CPU is getting used even though 
these movie clips are completely invisible. 

The GUI does use a lot of filters, so in an earlier test I removed all 
of the filters (at runtime).  This didn't have any effect on CPU usage 
at all.


Fahim Akhter wrote:

Are you using a lot of flex components on top of each other? Is it an
animation? Be a little specific about what your doing so someone might find
a way out :)

*Fahim Akhter* |* Software Design Engineer | White Rabbit Games* | T:
+92.321.5307672 | akhter.fa...@gmail.com |
http://apps.facebook.com/feline-frenzy/
My profiles: [image: Facebook] http://facebook.com/fahimakhter[image:
LinkedIn] http://linkedin.com/in/fahimakhter[image:
Flickr]http://flickr.com/photos/fahimakhter[image:
Twitter] http://twitter.com/fahimakhter[image:
devianArt]http://degothicangel.deviantart.com
Signature powered by WiseStamp http://www.wisestamp.com/email-install


On Thu, Mar 4, 2010 at 12:37 AM, Andrew Sinning and...@learningware.comwrote:

  

Setting the _quality to LOW has no effect on the CPU usage, so would this
point to some cause other than vector rendering?

The application uses a lot of memory, about 200,000K, but this would
necessarily require a lot of CPU usage, right?  Lot's of apps use way more
memory but not use so much CPU.





Mendelsohn, Michael wrote:

  

Hi Andrew...

Even though you said it might not be the renderer, I wonder if you set
the stage quality to medium, that might make a difference, as the
anti-aliasing is processor intensive.  If that degrades the text of your
textfields, you could see how the fields appear using device fonts.  Just a
thought.

- Michael M.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Pop up window locally

2010-03-03 Thread natalia Vikhtinskaya
I publish file in CS3. Test it in IE locally. GetUrl does not open pop
up window with url ”file.html” but opens “http://….”. I open source
code and save it as another file. This new file opens pop ups with any
url. What is this?!

2010/3/3 Fahim Akhter akhter.fa...@gmail.com:
 Test on different version of IE too, sometimes older version of IE prove to
 be a bitch.

 regards,
 Fahim Akhter
 http://www.behance.net/fahimakhter http://twitter.com/fahimakhter


 On Wed, Mar 3, 2010 at 11:40 PM, natalia Vikhtinskaya natavi.m...@gmail.com
 wrote:

  Mozilla opens pop up correctly. This strange thing happened only on IE

 2010/3/3 natalia Vikhtinskaya natavi.m...@gmail.com:
  I test it from html
  script language=javascript
         if (AC_FL_RunContent == 0) {
                 alert(This page requires AC_RunActiveContent.js.);
         } else {
                 AC_FL_RunContent(
                         'codebase', '
 http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0
 ',
                         'width', '550',
                         'height', '400',
                         'src', 'test',
                         'quality', 'high',
                         'pluginspage', '
 http://www.macromedia.com/go/getflashplayer',
                         'align', 'middle',
                         'play', 'true',
                         'loop', 'true',
                         'scale', 'showall',
                         'wmode', 'window',
                         'devicefont', 'false',
                         'id', 'test',
                         'bgcolor', '#ff',
                         'name', 'test',
                         'menu', 'true',
                         'allowFullScreen', 'false',
                         'allowScriptAccess','always',
                         'movie', 'test',
                         'salign', ''
                         ); //end AC code
         }
  /script
 
  2010/3/3 Nathan Mynarcik nat...@mynarcik.com:
  When you test locally, are you testing your swf embedded in an HTML
 file? Or are you testing it from when Flash shows you the published swf?
 
 
  --Original Message--
  From: natalia Vikhtinskaya
  Sender: flashcoders-boun...@chattyfig.figleaf.com
  To: Flash Coders List
  ReplyTo: Flash Coders List
  Subject: [Flashcoders] Re: Pop up window locally
  Sent: Mar 3, 2010 11:58 AM
 
  But if locally I test script like
  getURL (javascript:NewWindow=window.open('
 http://www.somename.com/key16.html
 ','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');void(0););
  this script  works in IE and opens pop up window
 
 
  2010/3/3 natalia Vikhtinskaya natavi.m...@gmail.com:
  Hi
  I cannot find solution for this small problem
  Simple code
  getURL
 (javascript:NewWindow=window.open('key16.html','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');void(0););
 
 
  That opens pop up window when I test it  from the server and does not
  open pop up window when I test it locally on computer.
  Thanks for any help.
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
  Nathan Mynarcik
  Interactive Web Developer
  nat...@mynarcik.com
  254.749.2525
  www.mynarcik.com
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] how to reduce CPU usage

2010-03-03 Thread Keith Reinfeld
 
 What's odd to me is that all of this CPU is getting used even though
 these movie clips are completely invisible.


Invisible as in visible = false, or alpha = 0? Rendering alpha at anything
under 100% is quite cpu intensive.

Regards,

Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] how to reduce CPU usage

2010-03-03 Thread Eric E. Dolecki
You could remove from the display tree or do the visible = false thing to
help out.

On Wed, Mar 3, 2010 at 4:09 PM, Keith Reinfeld keithreinf...@comcast.netwrote:

 
  What's odd to me is that all of this CPU is getting used even though
  these movie clips are completely invisible.
 

 Invisible as in visible = false, or alpha = 0? Rendering alpha at anything
 under 100% is quite cpu intensive.

 Regards,

 Keith Reinfeld
 Home Page: http://keithreinfeld.home.comcast.net



 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] how to reduce CPU usage

2010-03-03 Thread Andrew Sinning

as in: _visible = false;

Keith Reinfeld wrote:

What's odd to me is that all of this CPU is getting used even though
these movie clips are completely invisible.




Invisible as in visible = false, or alpha = 0? Rendering alpha at anything
under 100% is quite cpu intensive.

Regards,

Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] how to reduce CPU usage

2010-03-03 Thread Kerry Thompson
I'm glad you found the issue. I was about to make another
suggestion--I will anyway, because it's a nice trick.

Set the frame rate as low as you can, and still get smooth animation.
A frame rate of about 20 fps is often good enough, and the Flash
engine has to process fewer frame events. Movies at your local
ciniplex only run at 24 fps, and American TV runs at just under 30 fps
(29.97, I believe).

Of course, that doesn't work for a lot of movies--sometimes you need
the fastest frame rate you can get, especially for twitch games.

Another technique I've heard of, but haven't experimented with yet, is
to set the frame rate to 1 fps, and do all your rendering with
updateAfterEvent. I've seen that done, and it gets some pretty
impressive results.

Cordially,

Kerry Thompson
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] web video

2010-03-03 Thread Karl DeSaulniers

Hi Gus,
I have this code for mine, and its AS2, but maybe it can help steer  
you in the right direction.


var currentCuePoint:String;
var isPaused:Boolean = false;
var listenerObject:Object = new Object();

listenerObject.cuePoint = function(eventObject:Object):Void {
currentCuePoint = eventObject.info.name;
pauseVideo();
}

myVideo_mc.myVideo.addEventListener(cuePoint, listenerObject);

function pauseVideo():Void {
isPaused = true;
myVideo_mc.myVideo.pause();
}

Karl


On Mar 3, 2010, at 10:42 AM, Gustavo Duenas wrote:

help!!! the events are not working the way they were supposed on the  
tutorial, the first cue point should be always at 0? becuae I have it  
with other value.


Gus
On Mar 3, 2010, at 11:01 AM, Gustavo Duenas wrote:

I did use the adobe media encoder, I have 3 cuepoints cp1 cp2 and  
cp3 those are events,


here is my as and I don't know why this is not working;

import fl.video.MetadataEvent;
import fl.video.VideoEvent;



miMovie.addEventListener(MetadataEvent.CUE_POINT, cp);
function cp(e:MetadataEvent):void {
trace(start);
   if (e.info.name==cp1) {
   trace(we are cp1);
   }
   if (e.info.name==cp2) {
   trace(we are cp2);
   }
if (e.info.name==cp3) {
   trace(we are cp3);
   }

}
On Mar 3, 2010, at 10:11 AM, Sam Brown wrote:

you can embed cuepoints in the flv and listen for them to cue  
events. Most

reliable way to embed them is via the Adobe Media Encoder

one way to access them is like:

import fl.video.VideoEvent;
import fl.video.MetadatEvent;

myVid.addEventListener(MetadataEvent.CUE_POINT, doThis);
function doThis(e:Event):void{
}
...
On Wed, Mar 3, 2010 at 9:45 AM, Gustavo Duenas 
gdue...@leftandrightsolutions.com wrote:


it might start automatically

Gus
On Mar 2, 2010, at 8:34 PM, Nathan Mynarcik wrote:

Or, you could trigger a timer when it starts and when it hits 45  
seconds

call your function.

Are your users pressing play or does it start automatically?


--Original Message--
From: Gustavo Duenas
Sender: flashcoders-boun...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: [Flashcoders] web video
Sent: Mar 2, 2010 6:40 PM

Hi coders I know that I can control  a flv from as3, but there is a
way to do the opposite?
I mean I have a video (flv) in one movie clip, when the video  
reaches

the second 45, can I trigger an event?
is that possible?, if so there is a tutorial pointing to that  
in  the

internet?


Regards,


Gus

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] web video

2010-03-03 Thread Bob Wohl
not to throw you off or anything but you can use the playhead time of
the video as well w/o cue points. If you are getting any stats from
the video then I would just get this from there.

On Wed, Mar 3, 2010 at 3:04 PM, Karl DeSaulniers k...@designdrumm.com wrote:
 Hi Gus,
 I have this code for mine, and its AS2, but maybe it can help steer you in
 the right direction.

 var currentCuePoint:String;
 var isPaused:Boolean = false;
 var listenerObject:Object = new Object();

 listenerObject.cuePoint = function(eventObject:Object):Void {
        currentCuePoint = eventObject.info.name;
        pauseVideo();
 }

 myVideo_mc.myVideo.addEventListener(cuePoint, listenerObject);

 function pauseVideo():Void {
        isPaused = true;
        myVideo_mc.myVideo.pause();
 }

 Karl


 On Mar 3, 2010, at 10:42 AM, Gustavo Duenas wrote:

 help!!! the events are not working the way they were supposed on the
 tutorial, the first cue point should be always at 0? becuae I have it with
 other value.

 Gus
 On Mar 3, 2010, at 11:01 AM, Gustavo Duenas wrote:

 I did use the adobe media encoder, I have 3 cuepoints cp1 cp2 and cp3
 those are events,

 here is my as and I don't know why this is not working;

 import fl.video.MetadataEvent;
 import fl.video.VideoEvent;



 miMovie.addEventListener(MetadataEvent.CUE_POINT, cp);
 function cp(e:MetadataEvent):void {
 trace(start);
   if (e.info.name==cp1) {
       trace(we are cp1);
   }
   if (e.info.name==cp2) {
       trace(we are cp2);
   }
        if (e.info.name==cp3) {
       trace(we are cp3);
   }

 }
 On Mar 3, 2010, at 10:11 AM, Sam Brown wrote:

 you can embed cuepoints in the flv and listen for them to cue events.
 Most
 reliable way to embed them is via the Adobe Media Encoder

 one way to access them is like:

 import fl.video.VideoEvent;
 import fl.video.MetadatEvent;

 myVid.addEventListener(MetadataEvent.CUE_POINT, doThis);
 function doThis(e:Event):void{
 }
 ...
 On Wed, Mar 3, 2010 at 9:45 AM, Gustavo Duenas 
 gdue...@leftandrightsolutions.com wrote:

 it might start automatically

 Gus
 On Mar 2, 2010, at 8:34 PM, Nathan Mynarcik wrote:

 Or, you could trigger a timer when it starts and when it hits 45 seconds

 call your function.

 Are your users pressing play or does it start automatically?


 --Original Message--
 From: Gustavo Duenas
 Sender: flashcoders-boun...@chattyfig.figleaf.com
 To: Flash Coders List
 ReplyTo: Flash Coders List
 Subject: [Flashcoders] web video
 Sent: Mar 2, 2010 6:40 PM

 Hi coders I know that I can control  a flv from as3, but there is a
 way to do the opposite?
 I mean I have a video (flv) in one movie clip, when the video reaches
 the second 45, can I trigger an event?
 is that possible?, if so there is a tutorial pointing to that in  the
 internet?


 Regards,


 Gus

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 Nathan Mynarcik
 Interactive Web Developer
 nat...@mynarcik.com
 254.749.2525
 www.mynarcik.com
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Karl DeSaulniers
 Design Drumm
 http://designdrumm.com

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] web video

2010-03-03 Thread Valentin Schmidt
in case you want to follow my suggestion and simply use programmatical
ASCuepoints of hardcoded cuepopints, here same simple sdemo code that
works fine:

import fl.video.*;

var myFLV:FLVPlayback = new FLVPlayback();
myFLV.source = test.flv;
myFLV.addASCuePoint({time:0.5, name:cp1});
myFLV.addASCuePoint({time:1.0, name:cp2});
myFLV.addEventListener(MetadataEvent.CUE_POINT,
function(e:MetadataEvent):void{
  trace(Cuepoint reached: +e.info.name);
});
myFLV.x = myFLV.y = 0;
addChild(myFLV);
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] web video

2010-03-03 Thread Valentin Schmidt
Valentin Schmidt wrote:
 in case you want to follow my suggestion and simply use programmatical
 ASCuepoints of hardcoded cuepopints, here same simple sdemo code that
 works fine:

I'm sorry, I was very distracted :-)

once more:
... use programmatical ASCuepoints instead of hardcoded cuepoints, here
some simple demo code that works fine:

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Re: Pop up window locally

2010-03-03 Thread Chris Foster
Don't call the 'window.open' method from Flash, write a function in the
HTML page and call that function from Flash.

Here's an example of the function on the HTML page:

loadPopup = function(pageName, width, height) {
var newPopupWindow;
var left   = screen.width/4;
var top= screen.height/4;
var props =
width=+width+,height=+height+,top=+top+,left=+left+,resizable=n
o,status=no,toolbar=no,menubar=no,location=no;
newPopupWindow = window.open(pageName, content1,
props);
} 


...and from AS3 you would call:
ExternalInterface.call(loadPopup(' + myURLStringHere + ', 740,
560));



-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Fahim
Akhter
Sent: Thursday, 4 March 2010 5:58 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Re: Pop up window locally

Test on different version of IE too, sometimes older version of IE prove
to be a bitch.

regards,
Fahim Akhter
http://www.behance.net/fahimakhter http://twitter.com/fahimakhter


On Wed, Mar 3, 2010 at 11:40 PM, natalia Vikhtinskaya
natavi.m...@gmail.com
 wrote:

  Mozilla opens pop up correctly. This strange thing happened only on 
 IE

 2010/3/3 natalia Vikhtinskaya natavi.m...@gmail.com:
  I test it from html
  script language=javascript
 if (AC_FL_RunContent == 0) {
 alert(This page requires AC_RunActiveContent.js.);
 } else {
 AC_FL_RunContent(
 'codebase', '
 http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
 rsion=9,0,0,0
 ',
 'width', '550',
 'height', '400',
 'src', 'test',
 'quality', 'high',
 'pluginspage', '
 http://www.macromedia.com/go/getflashplayer',
 'align', 'middle',
 'play', 'true',
 'loop', 'true',
 'scale', 'showall',
 'wmode', 'window',
 'devicefont', 'false',
 'id', 'test',
 'bgcolor', '#ff',
 'name', 'test',
 'menu', 'true',
 'allowFullScreen', 'false',
 'allowScriptAccess','always',
 'movie', 'test',
 'salign', ''
 ); //end AC code
 }
  /script
 
  2010/3/3 Nathan Mynarcik nat...@mynarcik.com:
  When you test locally, are you testing your swf embedded in an HTML
 file? Or are you testing it from when Flash shows you the published
swf?
 
 
  --Original Message--
  From: natalia Vikhtinskaya
  Sender: flashcoders-boun...@chattyfig.figleaf.com
  To: Flash Coders List
  ReplyTo: Flash Coders List
  Subject: [Flashcoders] Re: Pop up window locally
  Sent: Mar 3, 2010 11:58 AM
 
  But if locally I test script like
  getURL (javascript:NewWindow=window.open('
 http://www.somename.com/key16.html
 ','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,s
 crollbars=No,status=No,resizable=No,fullscreen=No');void(0););
  this script  works in IE and opens pop up window
 
 
  2010/3/3 natalia Vikhtinskaya natavi.m...@gmail.com:
  Hi
  I cannot find solution for this small problem Simple code getURL
 (javascript:NewWindow=window.open('key16.html','newWin','width=400,he
 ight=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,r
 esizable=No,fullscreen=No');void(0););
 
 
  That opens pop up window when I test it  from the server and does 
  not open pop up window when I test it locally on computer.
  Thanks for any help.
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
  Nathan Mynarcik
  Interactive Web Developer
  nat...@mynarcik.com
  254.749.2525
  www.mynarcik.com
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply 

[Flashcoders] Can't share SharedObject

2010-03-03 Thread ktt
Strange SharedObject property error:

//1
if ( loginResult == admin) {

var myConnectedUsersRegistry:Object = {tutoractive:0, useractive:0};

fMSConnection.sharedWObject = SharedObject.getRemote(demo, 
_createfMSConnection.uri, true);
fMSConnection.sharedWObject.connect(_createfMSConn ection);

fMSConnection.sharedWObject.client=this;

fMSConnection.sharedWObject.setProperty(UsersCoun 
terRegister,myConnectedUsersRegistry);

fMSConnection.sharedWObject.data[UsersCounterRegister][tutoractive] = On;
fMSConnection.sharedWObject.setDirty(UsersCounter Register);


}
//2
if ( loginResult == user) {

fMSConnection.sharedWObject = SharedObject.getRemote(demo, 
_createfMSConnection.uri, true);
fMSConnection.sharedWObject.connect(_createfMSConn ection);

fMSConnection.sharedWObject.client=this;

//Problematic row !
fMSConnection.sharedWObject.data[UsersCounterRegister][useractive] = On;
fMSConnection.sharedWObject.setDirty(UsersCounter Register);


}

sharedWObject is defined as public static.

First I log in as admin and create a SharedObject demo, pass the Object to 
it's property, and update it.
Next from other client, I log in as user, and try to update already created 
SharedObject slot.
But Flash player throws an error and points to problematic row:
TypeError: Error #1010: A term is undefined and has no properties.

Why on second log in from different client I can't access a SharedObject?

Thank you in advance,
Kioshin


  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders