Re: [Flashcoders] flash and Arabic

2007-03-29 Thread Yehia Shouman

I once emailed Kevin Lynch and the guy generously replied with this:


Hi Yehia-

Thanks for your note.

Right-to-left text support in Flash Player is an important feature,
and we know it would be a key addition to the platform. Implementing
this feature to deliver the right quality is a fairly big undertaking
-- and we also need to factor in cross-platform support, maintaining
the stability of the player, and keeping the code size small.  All
requests for new features are investigated using these same standards
as we prioritize features for each release. Product Management is
aware of the need for right-to-left text support. Although we cannot
provide an exact date for when it will be supported, it is definitely
under evaluation.

thanks

Kevin



Flash supports unicode, it just isn't RTL supportive. Furthermore to this
issue, if you try to use arabic, you won't be able to get a proper text
wrap. There will be compatibility issues on different Windows versions and
between Mac, worth saying backward compatibility with older Flash players
that knows not of unicode. I seriously hope Adobe 's involvement will be
beneficial. (Wish:Adobe Flash CS3 ME)

Regards,
Yehia Shouman
Senior AS Developer and TL
www.santeon.com


On 3/29/07, Omar Fouad [EMAIL PROTECTED] wrote:


Well the most thing i used is importing arabic written text from freehand
(converted to vectors) and it is just fine... Regarding writing it in
dynamic text boxes at runtime like this:

myTextField.text ولا حاجة it works but you still have to take care
about text wrapping as in flash doesnt recognize the end of a word, and
so,
in multi line cases, sometimes a single word splits.. i used to solve this
problem by adding some extra spaces before the last word in a single
line...
and the same by parsing text from a metadata in xml...

Hope this helps

regards...



On 3/29/07, Shaun Collins [EMAIL PROTECTED] wrote:

 I've worked with Arabic in Flash and yes those are the
 exact problems I experienced. There is an application
 that will allow you to cut and paste arabic to other
 applications without destroying the format. It won't
 work if you're looking for a dynamic solution - if
 anyone knows of one that would be great.

 http://www.layoutltd.com/alrassam.php

 There are arabic fonts you can use in flash but that
 still doesn't solve the problem of getting the arabic
 into flash in the right format if you are cutting and
 pasting.

 Hope that helps some.

 --- Omar Fouad [EMAIL PROTECTED] wrote:

  I work A lot using arabic in flash... I used to
  write arabic text
  dynamically into dynamic textfields, from xml, or
  action script in run
  time... Or by writing the arabic text in Free Hand,
  Than breaking it into
  vector and pasting it into flash as Vector...
 
  On 3/26/07, James Tu [EMAIL PROTECTED] wrote:
  
   We have an approach to deal with a list of 100
  phrases in Arabic.
   When you copy and paste a phrase of Arabic into a
  Flash textbox,
   Flash reverses it!  So, we first reversed the
  characters outside of
   Flash and then copied and pasted the phrases into
  Flash.  Problem
   solved right?
  
   We'll, when someone that can read Arabic read it,
  they told us that
   the characters look funny.  In essence, the
  characters weren't
   connecting to each other correctly!  It's as if
  you took a cursive
   font and laid out the characters and the cursive
  writing was not
   continuous.
  
   Does anyone have any suggestions on handling Flash
  and Arabic?  I did
   some extensive searching and there aren't any
  definitive
   solutions...Some suggested using a special Flash
  Arabic font, which I
   couldn't find.
  
   Help!
   -James
  
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the
  archive:
  
 
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
 
 
 
  --
  Omar Fouad - Digital Emotions...
 
  Love is always patient and kind. It is never
  jealous. Love is never boastful
  nor conceited It is never rude or selfish. It does
  not take offense and is
  not resentful. Love takes no pleasure in other
  people's sins...but delights
  in the truth. It is always ready to excuse, to
  trust, to hope... and to
  endure... whatever comes.
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the
  archive:
 
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman

Re: [Flashcoders] setting a timer in flash 8

2007-03-25 Thread Yehia Shouman

try using undocumented setTimeOut or setInterval instead


say you have a function foo
with setInterval:

var secondsToWait:Number= 20*1000 //20 seconds
var interval_ID:Number=setInterval(this,foo,2)

function foo()
{
clearInterval(interval_ID);
trace(llegamos con setInterval);
}

with setTimeOut

setTimeout(this,foo,1000)
function foo()
{
  trace(llegamos con setTimeOut);
}

On 3/24/07, Gustavo Duenas [EMAIL PROTECTED] wrote:


Hi, I'm trying to set a timer to trigger a event after 20 seconds or
less, but so far i have this code, but with no results
someone help me? .
I don't know how could I got into but some help might be needed


this is the code: is inside the first frame of a movie clip and the 4
frame has: gotoAndPlay(1);


var now = getTimer();
var seconds:Number = now/1000;
var later:Number = seconds+20;
this.onEnterFrame= function (){
if(seconds == later){
trace(llegamos);

}
}
trace(seconds);



Regards


Gustavo Duenas



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
Yehia Shouman
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Component skin path

2007-03-25 Thread Yehia Shouman

use flashVars to pass the path of the skin to the flash object and load it
inside the swf dynamically by using .skin property if it was flvplayback
component.

object src .
param name=flashVars value=pathToSkin=../../whereTheSkinIs/myskin.swf

and in another HTML maybe

object src .
param name=flashVars value=pathToSkin=whereTheSkinIs/myskin.swf

and inside the SWF

myComponent.skin=_level0.pathToSkin;

On 3/23/07, JP [EMAIL PROTECTED] wrote:



Hi All,

I have an educational project that includes several lessons with
several folders.
I'm trying to organize things such that there need only be one player
for everything.
But I'm running into an issue whereby my player doesn't seem to find
it's skin unless
I put a copy of the skin file directly next to the HTML file where
the player is embedded.

Is there a way around this?

The server layout looks something like this::

SERVER
| LESSON 1
|   | HTML for lesson  images folder
|
| LESSON 2... X
|   | HTML for lesson  images folder
|
| VIDEOS - all in here
|
| XML - all in here
|
| PLAYERS
|
| normal player (swf)
| expanded player (swf)
| skin for component (.swf)


Any help would be greatly appreciated.

J

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
Yehia Shouman
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Re: attachMovie vs createClassObject

2007-03-25 Thread Yehia Shouman

createClassObject is defined in UIObject core object. I don't think it can
be called as a method of any movieclip. It also requires that you define

   static var symbolName : String = linkageID;
   static var symbolOwner : Object = com.myclass;


and at the end of the day It calls createObject which basically uses
attachMovie passing on the symbolName. Use it if your host mc is a UIObject
(inheriting from mx.core.UIComponent or mx.core.UIObject).

I use
var myInstance:ClassType=ClassType(mc.attachMovie(ClassType.symbolName
,instanceName,depth))

Sometimes, if there is any pending code in the draw method of the created
class instance, I wait for a frame using doLater.

I hope this helps
Yehia Shouman

On 3/23/07, Andy Herrman [EMAIL PROTECTED] wrote:


Just to amend my previous comment, in the case where I said
`createClassObject()` failed but `attachMovie()` didn't, that ended up
to be not quite true.  `createClassObject()` didn't do anything, but
`attachMovie()` created the visual portions of the clip, but it looks
like none of the component's code was actually loaded, so while it
appeared to be working it really wasn't.

But in the cases where one works the other seems to work as well, so
I'm still wondering what the difference is.

   -Andy

On 3/20/07, Andy Herrman [EMAIL PROTECTED] wrote:
 I'm wondering if there are any significant differences between using
 `attachMovie()` and `createClassObject()` for creating components (I'm
 targeting for Flash 7).  I just ran into a weird issue creating a
 ComboBox where I was using `createClassObject()` to instantiate it,
 but saw that elsewhere in the code it was using `attachMovie()` to
 create one, and both were working.

 Specifically, both this:
 mc.attachMovie(ComboBox, myComboBox, mc.getNextHighestDepth());
 and this:
 mc.createClassObject(ComboBox, myComboBox, mc.getNextHighestDepth());

 seems to give the same results in most cases.  Is there any benefit to
 using `createClassObject()` over `attachMovie()` for components?

 The one situation I ran into where it gives different results is when
 using multiple SWFs from different places.  I have a main movie which
 loads another movie that contains all the UI resources (makes branding
 easier).  The UI resources movie contains the ComboBox in its library.
  If both the movies are on the local filesystem then it works fine,
 but if the resources SWF is on a remote web server the
 `createClassObject()` call fails.  However, if I change it to use
 `attachMovie()` it works fine.  So I'm leaning towards using
 `attachMovie()`, just to make my life easier for testing (don't have
 to upload the main movie every time I want to test it), but I'm
 wondering if that will cause issues later.

-Andy

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Using JSFL with AS files

2007-03-23 Thread Yehia Shouman

I think you can load .as files as (text files) and parse baby parse !

On 3/23/07, Danny Kodicek [EMAIL PROTECTED] wrote:


 What do you mean specifically?

I mean editing AS with JSFL. I'm getting frustrated with not being able to
do a search and replace on multiple files, so I was going to write a tool
to
do it with JSFL - unfortunately, it seems only to work with FLA files, not
AS.

Danny

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] simple math question...

2007-03-02 Thread Yehia Shouman

1) either double click your clip and group everthing and center it manually

OR
2) make sure your graphics inside that clip is at 0,0
and then

inside your MouseMove handler or onEnterFrame handler;
toCenterClip._x = _xmouse - (toCenterClip._width/2);
toCenterClip._y = _ymouse - (toCenterClip._height/2);

Yehia



On 3/2/07, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote:


good people,

how do i move a moviClip to center itself at (_xmouse, _ymouse)...i have
the
onPress part down...i just need to center it on those coordinates

thanks
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] simple math question...

2007-03-02 Thread Yehia Shouman

dont forget updateAfterEvent(); with the MouseMove use. it tells the player
to refresh visuals after the calculated mouse move event you catched even if
it wasn't time to render that frame.

On 3/2/07, Yehia Shouman [EMAIL PROTECTED] wrote:


1) either double click your clip and group everthing and center it
manually

OR
2) make sure your graphics inside that clip is at 0,0
and then

inside your MouseMove handler or onEnterFrame handler;
toCenterClip._x = _xmouse - (toCenterClip._width/2);
toCenterClip._y = _ymouse - (toCenterClip._height/2);

Yehia



On 3/2/07, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote:

 good people,

 how do i move a moviClip to center itself at (_xmouse, _ymouse)...i have
 the
 onPress part down...i just need to center it on those coordinates

 thanks
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Make your own multiuser flash apps

2007-02-16 Thread Yehia Shouman

Great work dude

On 2/16/07, Paul Venton [EMAIL PROTECTED] wrote:


Looks good - had a quick test with a dead cat but ran out of time ... plan
on making a proper visit soon :-)


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] flv playback stalling

2007-01-31 Thread Yehia Shouman

Encoding maybe ?!, Have you updated your FLVPlayback component?  if it was
through FMS, i would have told you to listen to DISCONNECTED event and
re-play!

On 1/31/07, Sam Thorne [EMAIL PROTECTED] wrote:


Hi All,

I have an flv loading into an instance of flvPlayback, all of a
sudden it has started freezing about 2 seconds into the playback, and
just stalls.

The rest of the ui is still interactive, and I can use buttons to
jump to other sections of the site etc. so it's not that flash is
freezing up.
I can also open the flv in quicktime and it plays through fine, so
the video appears to be ok.

The video is playing locally (it will be running from a cd) and is
not the largest video we're using, so it doesn't seem to be any
obvious issue.

Anyone got any clues to help me out?

Thanks a lot

Sam
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Cannot use ns.bytesLoaded and ns.bytesTotal when streaming?

2007-01-27 Thread Yehia Shouman

This one does make sense, since the video isn't cached at the client's. I
have a funnier problem with streaming, sometimes the totalTime when tested
in the ready event listener, reads right and sometimes it read 0 as well. my
FMS is updated to the latest version, and so is the FLVPlayback component.

On 1/26/07, Sam Bou [EMAIL PROTECTED] wrote:


Hi,

I heard that ns.bytesLoaded and ns.bytesTotal only work if the flv is
progressively downloaded and not streamed.  I would like to confirm if this
is really the case.

I've tried using ns.bytesLoaded and ns.bytesTotal in my streaming flv
player but both values are always 0.  So I believe what I heard is true but
I just want to confirm this from some of the experts here.

Thx in advance.

Sam


___
YM - 離線訊息
就算你沒有上網,你的朋友仍可以留下訊息給你,當你上網時就能立即看到,任何說話都冇走失。
http://messenger.yahoo.com.hk
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

[Flashcoders] FLV Encoding at 640x480 Frame dropping

2007-01-27 Thread Yehia Shouman

Hi List,

We've been frustrated with our client trying to bring the best smoothest
experience of playing video at 640x480 (stretched to fullscreen). Does
anyone know what exact encoding settings for a movie with a lot of motion,
to play fullscreen at that resolution without stalling and dropping frames ?

I am streaming over FMS, got the latest updates for FMS, FLVPlayback and
Flash Player.

I know FMS drops frames when the bandwidth is insuffiecient, and I know it
favors Audio then netstream calls and then it may drop video frames based on
whats left of the bandwidth.

But if I even encoded at 640x480 with NO audio at all it still drop frames,
we're currently using On2 VP6. Should we try Sorenson ? Any ideas PLEASE
help !

Thank you
Yehia
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] missing method

2007-01-02 Thread Yehia Shouman

Does your Polygon class has a constuctor?



On 1/3/07, Omar Fouad [EMAIL PROTECTED] wrote:


u should set the class from static to dynamic in order to get acess to
that
method

On 1/2/07, Matt Ganz [EMAIL PROTECTED] wrote:

 hi.

 i'm having a strange problem. i'm getting compile-time errors when i try
 to
 access a public function in a class. i can successfully access other
 public
 methods in this class from the same place in the codebase (verified thru
 traces), but not this one.

 i don't know if it's a weird CVS error or not, but here's what it looks
 like
 when i try to access the method (getArea()):

 if (geom instanceof Polygon) {
 var poly:Polygon = Polygon(geom);
 geomarkup.area = poly.getArea(); // error occurs right here.
 }

 and here's the error i'm getting:

 There is no method with the name 'getArea'. but the method is in there
in
 the class and it looks like this:

 public function getArea():Number{
  if(area != null)
  return area;
 }

 has anyone had similar issues and can point me in a general direction.
i'm
 a
 little at a loss.

 any tips are greatly appreciated. thanks -- matt.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] twilight zone: flvPlayback doesn't work if there are too many functions in the fla!

2006-12-30 Thread Yehia Shouman

You can fix your minor issue by going to the publish settings and beside the
dropdown list of the actionscript version, click the button beside it, I
dont have flash installed on my machine. So you need to click this button
and select to export your code to frame 2.

then make ur preloader in frame 1, and leave frame 2 empty, then put ur
stuff in frame 3
make your preloader jump to frame 3 when all loaded, and Good luck ! You
seem to need some :)


On 12/28/06, me myself [EMAIL PROTECTED] wrote:


PROBLEMS SOLVED

Both problems -- 2nd-video-not-playing and too-many-functions -- were
fixed
when I upgraded to the new flvPlayback component. Using
NetConnection/Netstream also worked, but I'm going to stick with the
component for a while.

ONE MINOR PROBLEM LEFT

When I was using the old version of the component, I set its classes to
load
in frame 2, because frame 1 was a preloader. For some reason, the new
version of the flvPlayback component doesn't work unless I load the
classes
in frame 1. Which screws up the preloader. The actual component isn't on
stage until Frame 2, but I have to load its classes in frame 1. Why?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] 2nd rtmp video doesn't play

2006-12-26 Thread Yehia Shouman

Hi,
1. Switch between indexes if you have alot of sequential movies to play
2. use doLater if you're building on top of mx.core.uicomponent or a
setInterval() with 100 milliseconds and a clear Interval to kill it again
3. Make sure you get the latest FLVPlayback component update
4. I am streaming through FMS and I get the same problem, make sure the flvs
are not corrupted ..etc
5. check the following example, and make sure after you create allow a frame
to pass so that the draw methods of the flvplayback component are done
drawing.
6. MAKE sure you're not assigning an undefined value or a bad link, it
breaks up the thing !! you'll have to use a catch/try if you're not sure or
if statement before you assign.

Here's some code, see if that helps

function createFLVPlayback()
   {

   this.my_FLVPlybk = FLVPlayback (this.attachMovie (FLVPlayback,
my_FLVPlybk, 500));
   this.my_FLVPlybk.autoPlay=true;

   this.my_FLVPlybk.activeVideoPlayerIndex = 1
   this.my_FLVPlybk.visibleVideoPlayerIndex = 1
   this.my_FLVPlybk.progressInterval = 001;

   }
   function switchToAnotherPlayer()
   {
   i=i==1? 2 : 1;
   k=i==1? 2 : 1;
   my_FLVPlybk.closeVideoPlayer(i);
   my_FLVPlybk.ncMgr.close();

my_FLVPlybk.getVideoPlayer(my_FLVPlybk.visibleVideoPlayerIndex).ncMgr.close();
   my_FLVPlybk.activeVideoPlayerIndex = k;
   my_FLVPlybk.visibleVideoPlayerIndex  = k;

   }


On 12/26/06, me myself [EMAIL PROTECTED] wrote:


Join Date: Dec 2006
Posts: 2
  *2nd Video Doesn't Play!*
--
Hi. I'm trying to play two videos in the flvplayback component. The first
one is playing; the second isn't. Both paths are rtmp paths. I've read on
various message boards that you should remove the .flv extension from the
second path, but that doesn't help.

In my move, the component is called flvPlayer. There's a button called
btn.
What's wrong with this code?

//these first two lines work fine.
flvPlayer.load(rtmp://path/to/media1.flv);
flvPlayer.play();

btn.onRelease = function():Void
{
//this doesn't work
flvPlayer.load(rtmp://path/to/media2.flv); //I've also tried without the
.flv
flvPlayer.play();
}

When I click the button, the first flv does stop playing, the skin on the
flvplayback component shows those little barber-pole stripes as if it's
loading a second flv, and then the loading animation stops. And that's it.
No video plays.

Just to be clear, everything works fine if both videos come from http
urls,
but if they come from rtmp urls, only the first video plays.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: Re: [Flashcoders] i want to know how to record the flv with rtmp

2006-12-25 Thread Yehia Shouman

Oh I thought you want to record on the server from a client. to do the
opposite,
You need a screen capture software, check this thread
http://stream-recorder.com/forum/archive/index.php/index.php?t-16.html

or
http://www.wmrecorder.com/


On 12/25/06, hongrizhao [EMAIL PROTECTED] wrote:


the thing i want to do is to record the flv was published  in the web with
rtmp,for example,the max2006 video in adobe's web




hongrizhao
2006-12-25



发件人: Yehia Shouman
发送时间: 2006-12-25 12:01:55
收件人: Flashcoders mailing list
抄送:
主题: Re: [Flashcoders] i want to know how to record the flv with rtmp

What you need to look into is FMS server side actionscript, to catch the
stream and save it

to publish from the client:

http://livedocs.macromedia.com/fms/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0575.html

then save it

http://livedocs.macromedia.com/fms/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0789.html#116659

Hope that helps
Yehia Shouman

On 12/24/06, hongrizhao  [EMAIL PROTECTED]  wrote:

 if i know the rtmp address, how to record the flv to save ?




 hongrizhao
 2006-12-25


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Re: [Flashcoders] i want to know how to record the flv with rtmp

2006-12-24 Thread Yehia Shouman

What you need to look into is FMS server side actionscript, to catch the
stream and save it

to publish from the client:
http://livedocs.macromedia.com/fms/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0575.html

then save it
http://livedocs.macromedia.com/fms/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0789.html#116659

Hope that helps
Yehia Shouman

On 12/24/06, hongrizhao [EMAIL PROTECTED] wrote:


if i know the rtmp address, how to record the flv to save ?




hongrizhao
2006-12-25


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] FLVPlayback question...

2006-12-17 Thread Yehia Shouman

Hi,
1. Switch between indexes if you have alot of sequential movies to play
2. use doLater if you're building on top of mx.core.uicomponent or a
setInterval() with 100 milliseconds and a clear Interval to kill it again
3. Make sure you get the latest FLVPlayback component update
4. I am streaming through FMS and I get the same problem, make sure the flvs
are not corrupted ..etc
5. check the following example, and make sure after you create allow a frame
to pass so that the draw methods of the flvplayback component are done
drawing.
6. MAKE sure you're not assigning an undefined value or a bad link, it
breaks up the thing !! you'll have to use a catch/try if you're not sure or
if statement before you assign.

function createFLVPlayback()
   {

   this.my_FLVPlybk = FLVPlayback (this.attachMovie (FLVPlayback,
my_FLVPlybk, 500));
   this.my_FLVPlybk.autoPlay=true;
   this.play_btn._visible= !this.my_FLVPlybk.playing
   this.pause_btn._visible=this.my_FLVPlybk.playing
   this.my_FLVPlybk.activeVideoPlayerIndex = 1
   this.my_FLVPlybk.visibleVideoPlayerIndex = 1
   this.my_FLVPlybk.progressInterval = 001;
   voloff_btn._visible = false;
   play_btn._visible = false;

   }
   function switchToAnotherPlayer()
   {
   i=i==1? 2 : 1;
   k=i==1? 2 : 1;
   my_FLVPlybk.closeVideoPlayer(i);
   my_FLVPlybk.ncMgr.close();

my_FLVPlybk.getVideoPlayer(my_FLVPlybk.visibleVideoPlayerIndex).ncMgr.close();
   my_FLVPlybk.activeVideoPlayerIndex = k;
   my_FLVPlybk.visibleVideoPlayerIndex  = k;

   }

On 12/16/06, Alon Zouaretz [EMAIL PROTECTED] wrote:


hey, I had the same problem and manage to get around it with adding a
0.1sdelay to the function that load the video, so its not being called
once the
component [or the movieclip that holds it] is attached but once its
already
on the stage.

hth
a


On 12/15/06, Josh Santangelo [EMAIL PROTECTED] wrote:

 I've had similar problems and struggled for weeks to solve them. I
 found that in general, FLVPlayback is much more reliable with RTMP
 streams than HTTP.

 Another thing to mess with is the visiblePlayerIndex and
 activePlayerIndex properties. Instead of playing one file right after
 the other in the same player, switch between a couple of player
 indexes. I think this approach works a bit better.

 -josh

 On Dec 13, 2006, at 10:36a, grimmwerks wrote:

  I've got an instance of the FLVPlayback in an app that is getting sent
  a path; it's contentPath was just being resent the new path.
 
  It's not working 100%, as every so often it decides it doesn't want to
  load that requested video.
 
  What's a better way of using one FLVPlayback object that reloads video
  requested? Birthing a new instance each and every time?
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Looking for Flash Contractor

2006-12-12 Thread Yehia Shouman

Hi I am interested in that. I am a Senior Actionscript 2 Developer located
in Egypt. And I got a team of people whom I call sometimes to carry out
tasks.

Can you let me know of some details

Cheers
Yehia Shouman

On 12/11/06, Eaton, Jason [EMAIL PROTECTED] wrote:


CyberSource is looking for a flash contractor to build a flash
application used for information gathering. Please contact me directly
by email or phone below. Cheers.



Jason Eaton, CyberSource Corporation

Engineering Director, Managed Risk

(650)965-6022





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] FLV video and How did they do it?

2006-12-08 Thread Yehia Shouman

FYI, if the solution involves streaming, Fash Media Server, can serve
different files depending on the client's machine, which really works for
people with low speed connection vs. higher ones

On 12/8/06, Michael Stuhr [EMAIL PROTECTED] wrote:


Berkay Unal schrieb:
 Hi Coders,

 There is an option on the Video2brain's FLV player (
 http://www.video2brain.com/videoplayer.cfm?video_id=1631)  that when you
 click on a icon on the player as shown on the pic below the video's
quality
 changes.It smthing like antializing is turned off or on. I think it's
 smthing with the FLV itself but could not figured out

it's a feature of the video Object :-)


If you're using FLVPlayer you can use it like:


var video = flvplayer.getVideoPlayer (flvplayer.visibleVideoPlayerIndex);
video = video._video; // dirty!
video.smoothing = !video.smoothing;

micha
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] FLV video and How did they do it?

2006-12-08 Thread Yehia Shouman

FYI, if the solution involves streaming, Fash Media Server, can serve
different files depending on the client's machine, which really works for
people with low speed connection vs. higher ones

I didnt and won't open the link !

On 12/9/06, shang liang [EMAIL PROTECTED] wrote:


Myth bustered!

There's no special effect or complicated streaming from FMS. I
downloaded it's flv file and put in my flash. If you scale the video
50%, or anything less than 100%, you will get the aliased effect (are
u sure it's an effect?), if you scale it back to 100%, the thing shows
normal. Wouldn't be hard to figure out what code they are using.

on(release){
if(_xscale==100){
_xscale=_yscale=50;
}else{
_xscale=_yscale=100;
}
}

On 12/8/06, Michael Stuhr [EMAIL PROTECTED] wrote:
 Berkay Unal schrieb:
  The things is that i ahve tested their FLV player with a local flv i
have
  created but it does not work.
 
  Can it be smthing with the encoding of the FLV . A special program
used ?
 
 
 
 
 what isit you want to achieve ?

 micha
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com



--
/*
Bored, sometimes.
*/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Compare Decimal Point Value?

2006-12-06 Thread Yehia Shouman

Math.round(num)*10 ==3
should work

On 12/6/06, T. Michael Keesey [EMAIL PROTECTED] wrote:


Couple of ways.

Round to the nearest tenth.
Math.round(num * 10) / 10

Direct test for 3 in the tenths place:
Math.round(num * 10) % 10 == 3

On 12/6/06, Doug Coning [EMAIL PROTECTED] wrote:
 Is there a better way to get the decimal value if flash is returning
 .299?

 The decimal value will always be either .1, .2 or .3.  It will not
 exceed that.

 I just need to test for a .3 value.

 Any ideas?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of T.
 Michael Keesey
 Sent: Wednesday, December 06, 2006 3:23 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Compare Decimal Point Value?

 In Flash 9, I get this for the traces:
 2.3
 0.2998
 0.3
 false
 false
 true

 Good old-fashioned floating point precision error. Instead of testing
 if they are equal, You could test if the difference between them is
 very small, e.g.:

 trace(Math.abs(num2 - num3)  0.1); // true

 On 12/6/06, Doug Coning [EMAIL PROTECTED] wrote:
  I'm scratching my head over this.  Not sure what I'm doing wrong?  I
  need to compare a decimal value of a numeric field to see if it
 contains
  a specific value of 0.3.  Here is some sample code:
 
  var num:Number = 2.3;
  var num2:Number = num - int(num);
  var num3:Number = 0.3;
 
  trace(num);  // 2.3
  trace(num2); // 0.3
  trace(num3); // 0.3
  trace(num2 == num3);//  false
  trace(num2  num3);//   false
  trace(num2  num3);//   true
 
  Why doesn't 0.3 equal 0.3?  I've replaced int with Math.floor(), and
 it
  still doesn't work.  I need to get the value after the decimal point
 and
  see if it equals 0.3.
 
  Thanks for your help.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Remoting Problems

2006-12-06 Thread Yehia Shouman

http://livedocs.macromedia.com/flashremoting/mx2004/actionscript_api_reference/mx/remoting/debug/NetDebug.html


On 12/6/06, Jeff Thompson [EMAIL PROTECTED] wrote:


Has anyone had problems with remoting working on some machines but not
others? I had friends pull up the site (http://carolinaradiology.com) in
different cities and it worked on some but not others.

The site worked fine during testing but when I pointed the DNS I started
having problems. I had to change the path to the remoting gateway and to
my
cfc¹s but I¹ve triple checked my changes. And again, it¹s works on some
machines but not others.

The site loads a bunch of movies so I¹ll just include the code and path to
one of Œem.

Http://carolinaradiology.com/doctorsText.swf


stop();

import mx.remoting.*;
import mx.remoting.debug.NetDebug;
NetDebug.initialize();

if (initialized == null) {
var initialized = true;

NetServices.setDefaultGatewayUrl(
http://carolinaradiology.com/flashservices
/gateway);
var gw = NetServices.createGatewayConnection();
var doctors = gw.getService(getDocs, this);
trace (connected);
}



function getTheText_Result(result) {
//trace (result.getItemAt(0).thetext);
//trace (result.getLength());
_root.mainText.text = result.getItemAt(0).thetext;

this.onStatus = function(error)
{
trace(Error :  + error.description);
status.text = Error :  + error.description;
}

}



function getFopDetails_Result(result) {
var practice_title:String = result.getItemAt(0).emptitle;
var practice_description:String = result.getItemAt(0).empdesc;
_root.docCard.docName.text = result.getItemAt(0).emptitle;
_root.docCard.contentMain.docDetailTxt.htmlText =
practice_description;

trace (practice_description);

}



function getDocDetails_Result(result) {
var doctor:String = result.getItemAt(0).doctorsname;
var Medical:String = result.getItemAt(0).Medical;
var Residency:String = result.getItemAt(0).Residency;
var Fellowship:String = result.getItemAt(0).Fellowship;
var BoardCert:String = result.getItemAt(0).BoardCertification;
var Extra1:String = result.getItemAt(0).Extra1;
var Extra2:String = result.getItemAt(0).Extra2;
var Extra3:String = result.getItemAt(0).Extra3;
var Extra1title:String = result.getItemAt(0).Extra1title;
var Extra2title:String = result.getItemAt(0).Extra2title;
var Extra3title:String = result.getItemAt(0).Extra3title;

if (docCard._visible == false){
docCard._visible = true;
}

//Set Doctor's Name text
_root.docCard.docName.text = result.getItemAt(0).doctorsname;

//Set Doctor Details
if (Medical != ) {
Medical = font color='#142F60' weight='bold'Medical:  /font
+
Medical + br;
}
if (Residency != ) {
Residency = font color='#142F60' weight='bold'Residency:
/font + Residency + br;
}
if (Fellowship != ) {
Fellowship = font color='#142F60'
weight='bold'Fellowship:  /font
+ Fellowship + br;
}
if (BoardCert != ) {
BoardCert = font color='#142F60' weight='bold'Board
Certifications:  /font + BoardCert + br
}
if (Extra1 != ) {
Extra1 = font color='#142F60' weight='bold' + Extra1title +
/font + font color='#142F60' weight='bold':  /font + Extra1 +
br;
}
if (Extra2 != ) {
Extra2 = Extra2title + :   + Extra2 + br;
}
if (Extra3 != ) {
Extra3 = Extra3title + :   + Extra3 + br;
}

var docDetails:String = Medical + Residency + Fellowship + BoardCert +
Extra1 + Extra2 + Extra3;

_root.docCard.contentMain.docDetailTxt.htmlText = docDetails;
//trace (docDetails);

//trace (result.getItemAt(0).Residency);
//trace (result.length);
}


var docTreeListener:Object = new Object();
docTreeListener.change = function(evt:Object) {

var node = docTreeMC.docTree.selectedItem;
///trace(selected node is: +evt.target.selectedNode);
fopID = node.attributes.fopID;
docID = node.attributes.docID;
doctors.getDocDetails(docID);


if (fopID != undefined) {
docCard._visible = true;
doctors.getFopDetails(fopID);
 trace(fopID);
}


/*if (docID == undefined) {
docCard._visible = false;
} else {
docCard._visible = true;
}*/
}

docTreeMC.docTree.addEventListener(change, docTreeListener);


//doctors.getDocDetails(54);
docCard._visible = false;
_root.doctors.getTheText(12);



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig 

Re: [Flashcoders] components below mask

2006-12-04 Thread Yehia Shouman

use scrollRect if it is possible for you/if you want a rectangular area, I
remember it didnt require any additional embedding, not sure though

On 12/4/06, learner [EMAIL PROTECTED] wrote:


Hello all,

I have kept few components on the stage, like buttons, label etc.

And have assigned a label text and button label to them.

But when I keep a mask on them, I can not see the labels there.

Also the datagrid's content which is populated with the dataprovider is
not
visible.
I know that for dynamic text filed we need to embed the font to display
them
under the mask but what would be the solution in case of component.

Regards,
PS
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] hints for arabic (rtl) text

2006-12-04 Thread Yehia Shouman

http://www.newhive.com/work/flaraby/

check this, might work for you, it takes a little bit of time to reconstruct
the glyphs, not for long texts

hope it helps
Yehia Shouman

On 12/4/06, Matthias Dittgen [EMAIL PROTECTED] wrote:


Hello,

has anyone a working solution to display arabic text that comes out of
a xml correctly with flash? I've found http://www.flashrtl.com/;, but
it seems not to work for me. I can't read any arabic. I have a correct
formatted word document as draft only, which I want to convert into
flash.
Any ideas?

Thanks,

Matthias
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] onFrameReached {do something}

2006-12-02 Thread Yehia Shouman

function fireEventOnFrame(frameNumber:Number){
   //backup older enterframe handler
   var oldEnterFrame=(this.onEnterFrame==undefined|this.onEnterFrame==null)?
this.onEnterFrame : null;
   this.onEnterFrame = function(){
   oldEnterFrame();
   if(this._currentframe==30){
   // broadcast onFrameReached
   broadcaster.dispatch({type: onFrameReached});
   //if there was no old enterframe handler delete this handler
   if(oldEnterFrame==null)
   {
   delete this.onEnterFrame;
   }
   }

   }
}

On 12/2/06, Seb L [EMAIL PROTECTED] wrote:


why can't you just use this on the first frame :

this.onEnterFrame = function(){

   if(this._currentframe==30){
   // do something
   }

}


cheers!

Seb Lee-Delisle
www.sebleedelisle.com

On 02/12/06, Ray Chuan [EMAIL PROTECTED] wrote:
 Hi,

 afaik there's no such thing.

 If you want to, in the frame that you are looking for you can put a
 dispatch call, eg at frame 30:

 trace(frame reached);
 broadcaster.dispatch({type: onFrameReached});

 I made that up, there's no event by the name onFrameReached.

 Even if you do that or use onEnterFrame you may not get what you want
 since the player can choose to skip that frame/not call onEnterFrame
 for performance reasons.

 On 12/1/06, Wendy Richardson [EMAIL PROTECTED] wrote:
  Hi All,
 
  I'm looking for some suggestions for the best way to know when a
certain
  frame has been reached or plays.
 
  Barring checking for that frame-by-frame on each onEnterFrame, is
there
  a way to listen for a swf reaching or playing a certain frame?  Some
  event to listen for?
 
  Code will be 1st frame only or via new classes.
 
  Thanks for any ideas!
 
  Wendy
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 


 --
 Cheers,
 Ray Chuan
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] onFrameReached {do something}

2006-12-02 Thread Yehia Shouman

this is better to ensure you're not overriding an old handler and also to
delete it after its purpose is no longer needed

function fireEventOnFrame(frameNumber:Number){
   //backup older enterframe handler
   var oldEnterFrame=(this.onEnterFrame==undefined|this.onEnterFrame==null)?
this.onEnterFrame : null;
   this.onEnterFrame = function(){
   oldEnterFrame();
   if(this._currentframe==frameNumber){
   // broadcast onFrameReached
   broadcaster.dispatch({type: onFrameReached});
   //if there was no old enterframe handler delete this handler
   if(oldEnterFrame==null)
   {
   delete this.onEnterFrame;
   }
   }

   }
}


On 12/3/06, Yehia Shouman [EMAIL PROTECTED] wrote:


function fireEventOnFrame(frameNumber:Number){
//backup older enterframe handler
var oldEnterFrame=(
this.onEnterFrame==undefined|this.onEnterFrame==null)? this.onEnterFrame :
null;
this.onEnterFrame = function(){
oldEnterFrame();
if(this._currentframe==30){
// broadcast onFrameReached
broadcaster.dispatch({type: onFrameReached});
//if there was no old enterframe handler delete this handler
if(oldEnterFrame==null)
{
delete this.onEnterFrame;
}
}

}
}

On 12/2/06, Seb L [EMAIL PROTECTED] wrote:

 why can't you just use this on the first frame :

 this.onEnterFrame = function(){

if(this._currentframe==30){
// do something
}

 }


 cheers!

 Seb Lee-Delisle
 www.sebleedelisle.com

 On 02/12/06, Ray Chuan [EMAIL PROTECTED] wrote:
  Hi,
 
  afaik there's no such thing.
 
  If you want to, in the frame that you are looking for you can put a
  dispatch call, eg at frame 30:
 
  trace(frame reached);
  broadcaster.dispatch({type: onFrameReached});
 
  I made that up, there's no event by the name onFrameReached.
 
  Even if you do that or use onEnterFrame you may not get what you want
  since the player can choose to skip that frame/not call onEnterFrame
  for performance reasons.
 
  On 12/1/06, Wendy Richardson  [EMAIL PROTECTED] wrote:
   Hi All,
  
   I'm looking for some suggestions for the best way to know when a
 certain
   frame has been reached or plays.
  
   Barring checking for that frame-by-frame on each onEnterFrame, is
 there
   a way to listen for a swf reaching or playing a certain frame?  Some
   event to listen for?
  
   Code will be 1st frame only or via new classes.
  
   Thanks for any ideas!
  
   Wendy
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
 
 
  --
  Cheers,
  Ray Chuan
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] __DATE__ or similar in AS2 ?

2006-12-01 Thread Yehia Shouman

I think the JSFL offers a great solution if you can have a command to
publish which will alter a variable __DATE__ (perhaps a counter) on the root
of the swf before calling publish document. Not sure if this is possible,
but thats how I'd think of it theoritically

Y Shouman

On 12/1/06, Michael Stuhr [EMAIL PROTECTED] wrote:


Stefan Thurnherr schrieb:
 Hi flashcoders,

 I am looking for an easy way to indicate an SWF's version on the stage
 (i.e. via a textfield). I guess the easiest way would be if there was
 a compiler literal like __DATE__ (indicating the time/date of
 compilation) available within ActionScript. But I couldn't find any
 such thing neither in the livedocs, nor with the help of the almighty
 G.

 I'd prefer a solution that also works offline (i.e., not involving a
 call to a server-side script that gives the SWF access to its own
 time/date of creation).

 How do other flashcoders solve this problem?


i've created a not-even-near-perfect serial-builder with jsfl.

i'd always wanted to make this an os-version, but haven't had the time to
do this.

but before offering you my crappy code, i'd like to hear what others do
have.


micha

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Attach sub class to swf which is loaded via attachMovie()?

2006-12-01 Thread Yehia Shouman

function Square(){}
Square.prototype=new MovieClip();
Square.prototype.changeColorTo=function (clr:Number)
{
   var tempClr:Color=new Color(this);
   tempClr.setRGB(clr);
   delete tempClr;
}
var linkageID_str:String=exportedClip;
//associate the linked clip with sub class
Object.registerClass(linkageID_str,Square);
//attach
var mc:MovieClip= attachMovie(linkageID_str,mc,1);
//then prohibit further association of linked clip to class
Object.registerClass(linkageID_str,null);
//when you call the method it should work
mc.changeColorTo(0xFF);

Same idea if you're working with Actionscript 2.0

Y Shouman




On 12/1/06, Micky Hulse [EMAIL PROTECTED] wrote:


Just curious if it is possible to extend/apply a sub class to a swf
which is loaded via attachMovie()?

TIA,
Cheers,
M

--
  Wishlist: http://snipurl.com/vrs9
Switch: http://browsehappy.com/
  BCC?: http://snipurl.com/w6f8
My: http://del.icio.us/mhulse
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Attach sub class to swf which is loaded via attachMovie()?

2006-12-01 Thread Yehia Shouman

You're welcome Micky



EKA,
I've been really confused by the garbage collection and how it sometimes
sits their coldly not doing the job ! I read somewhere the garbage
collection won't fire unless the application is in a still state. In an
application, that I had some interval process happening, the garbage
collection never worked and the memory usage kept going up. I've watched a
presentation by G Skinner, read some articles, but never found a way to fire
that garbage collector other than minimizing the application (and that works
in IE, it doesnt with firefox). So its an act of anxiety ! Can you point us
to links where the garbage collection work ?, Perhaps with a new message

Thanks for your comment,
Yehia

On 12/1/06, eka [EMAIL PROTECTED] wrote:


Hello :)

the __proto__ solution is a good solution :

/**
* Constructor of the class
*/
function Square()
{
this.draw() ;
}

/**
* Square extends MovieClip
*/
Square.prototype.__proto__ = MovieClip.prototype ;

/**
* Draw the square shape.
*/
Square.prototype.draw = function()
{
this.beginFill(0xFF, 100) ;
this.lineTo(100,0) ;
this.lineTo(100,100) ;
this.lineTo(0,0) ;
this.lineTo(0,0) ;
this.endFill() ;
}

/**
* Sets the color of the movieclip.
*/
Square.prototype.setRGB = function ( color:Number )
{
(new Color(this)).setRGB(color) ;
}

// test attachMovie

var mc1:MovieClip = attachMovie(myID, myClip, 1) ;
mc1.__proto__ = Square.prototype ; // change the prototype reference
Square.call(mc2) ; // launch the constructor of the Square class
mc1.setRGB(0xFF) ; // ok

// test with createEmptyMovieClip

var mc2:MovieClip = createEmptyMovieClip(myClip2, 2) ;
mc2.__proto__ = Square.prototype ; // change the prototype reference
Square.call(mc2) ; // launch the constructor of the Square class

mc2.setRGB(0xFF) ; // ok

@Yehia Shouman : your delete in your changeColorTo method is useless
because all local variables with a var in a method is remove by the
Garbage
collector at the end of the call function.

EKA+ :)


2006/12/1, Yehia Shouman [EMAIL PROTECTED]:

 function Square(){}
 Square.prototype=new MovieClip();
 Square.prototype.changeColorTo=function (clr:Number)
 {
 var tempClr:Color=new Color(this);
 tempClr.setRGB(clr);
 delete tempClr;
 }
 var linkageID_str:String=exportedClip;
 //associate the linked clip with sub class
 Object.registerClass(linkageID_str,Square);
 //attach
 var mc:MovieClip= attachMovie(linkageID_str,mc,1);
 //then prohibit further association of linked clip to class
 Object.registerClass(linkageID_str,null);
 //when you call the method it should work
 mc.changeColorTo(0xFF);

 Same idea if you're working with Actionscript 2.0

 Y Shouman




 On 12/1/06, Micky Hulse [EMAIL PROTECTED] wrote:
 
  Just curious if it is possible to extend/apply a sub class to a swf
  which is loaded via attachMovie()?
 
  TIA,
  Cheers,
  M
 
  --
Wishlist: http://snipurl.com/vrs9
  Switch: http://browsehappy.com/
BCC?: http://snipurl.com/w6f8
  My: http://del.icio.us/mhulse
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Attach sub class to swf which is loaded via attachMovie()?

2006-12-01 Thread Yehia Shouman

No don't worry man about your english.
Thanks alot eka,

Yehia



On 12/1/06, eka [EMAIL PROTECTED] wrote:


Hello :)

a delete in a function failed to destroy a variable ;)

My french article about this subject :

http://www.ekameleon.net/blog/index.php?2006/06/10/34--as-ssas-delete-un-peu-capricieux

Used google translator or bablefish if you want read my article in english
(sorry .. i speak english very bad...)

delete method returns false if the variable isn't clear on memory
(protected
with a ASSetPropFlags or if the variable is undefined too)

function test() {
var a = 1 ;
trace( a :  + a) ; //  a : 1
trace(i remove the variable 'a' :  + delete(a)) ; // output false
trace( a :  + a) ; //  a : 1 // the value isn't deleted !
}

trace(++ delete sur une variable dans une fonction) ;
test() ;

.. you can read some good articles about Garbage collector (in FP8 and FP9
the garbage is better...)

- http://www.tekool.net/flash/benchmark/garbage_collector/ (french)
-

http://weblog.shaoken.be/index.php?2005/09/23/17-gestion-du-garbage-collector-sous-flash8(french)

- http://www.blog.lessrain.com/?p=237 (benchmark)
-

http://www.kaourantin.net/2005/09/garbage-collection-in-flash-player-8.html(english)
-
http://www.adobe.com/devnet/flashplayer/articles/fp8_performance.html(english)
-
http://www.informit.com/guides/content.asp?g=flashseqNum=344rl=1(english)

- http://www.gskinner.com/blog/archives/2006/09/garbage_collect.html(search
the key work Garbage collector in this blog)

EKA+ :)

2006/12/1, Yehia Shouman [EMAIL PROTECTED]:

 You're welcome Micky



 EKA,
 I've been really confused by the garbage collection and how it sometimes
 sits their coldly not doing the job ! I read somewhere the garbage
 collection won't fire unless the application is in a still state. In an
 application, that I had some interval process happening, the garbage
 collection never worked and the memory usage kept going up. I've watched
a
 presentation by G Skinner, read some articles, but never found a way to
 fire
 that garbage collector other than minimizing the application (and that
 works
 in IE, it doesnt with firefox). So its an act of anxiety ! Can you point
 us
 to links where the garbage collection work ?, Perhaps with a new message

 Thanks for your comment,
 Yehia

 On 12/1/06, eka [EMAIL PROTECTED] wrote:
 
  Hello :)
 
  the __proto__ solution is a good solution :
 
  /**
  * Constructor of the class
  */
  function Square()
  {
  this.draw() ;
  }
 
  /**
  * Square extends MovieClip
  */
  Square.prototype.__proto__ = MovieClip.prototype ;
 
  /**
  * Draw the square shape.
  */
  Square.prototype.draw = function()
  {
  this.beginFill(0xFF, 100) ;
  this.lineTo(100,0) ;
  this.lineTo(100,100) ;
  this.lineTo(0,0) ;
  this.lineTo(0,0) ;
  this.endFill() ;
  }
 
  /**
  * Sets the color of the movieclip.
  */
  Square.prototype.setRGB = function ( color:Number )
  {
  (new Color(this)).setRGB(color) ;
  }
 
  // test attachMovie
 
  var mc1:MovieClip = attachMovie(myID, myClip, 1) ;
  mc1.__proto__ = Square.prototype ; // change the prototype reference
  Square.call(mc2) ; // launch the constructor of the Square class
  mc1.setRGB(0xFF) ; // ok
 
  // test with createEmptyMovieClip
 
  var mc2:MovieClip = createEmptyMovieClip(myClip2, 2) ;
  mc2.__proto__ = Square.prototype ; // change the prototype reference
  Square.call(mc2) ; // launch the constructor of the Square class
 
  mc2.setRGB(0xFF) ; // ok
 
  @Yehia Shouman : your delete in your changeColorTo method is useless
  because all local variables with a var in a method is remove by the
  Garbage
  collector at the end of the call function.
 
  EKA+ :)
 
 
  2006/12/1, Yehia Shouman [EMAIL PROTECTED]:
  
   function Square(){}
   Square.prototype=new MovieClip();
   Square.prototype.changeColorTo=function (clr:Number)
   {
   var tempClr:Color=new Color(this);
   tempClr.setRGB(clr);
   delete tempClr;
   }
   var linkageID_str:String=exportedClip;
   //associate the linked clip with sub class
   Object.registerClass(linkageID_str,Square);
   //attach
   var mc:MovieClip= attachMovie(linkageID_str,mc,1);
   //then prohibit further association of linked clip to class
   Object.registerClass(linkageID_str,null);
   //when you call the method it should work
   mc.changeColorTo(0xFF);
  
   Same idea if you're working with Actionscript 2.0
  
   Y Shouman
  
  
  
  
   On 12/1/06, Micky Hulse [EMAIL PROTECTED] wrote:
   
Just curious if it is possible to extend/apply a sub class to a
swf
which is loaded via attachMovie()?
   
TIA,
Cheers,
M
   
--
  Wishlist: http://snipurl.com/vrs9
Switch: http://browsehappy.com/
  BCC?: http://snipurl.com/w6f8
My: http://del.icio.us/mhulse
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http

Re: [Flashcoders] RE: swf and referring domain

2006-11-16 Thread Yehia Shouman

there's a ready state for the External interface you might need to check,
the ready state fires when the page has done loading and the javascript is
ready for you to call , check the ExternalInterface class in flash 8 for
that

On 11/16/06, Dave Segal [EMAIL PROTECTED] wrote:



Thanks for the response Joey. I actually tried a similar method before
that
almost worked. From Flash I did this -

getURL(javascript:document.mySWF.SetVariable('referringDomain',
document.loc
ation.host));

The problem I ran into was that in IE as soon as this line executes the
page
stops rendering. This is especially problematic when the swf begins before
the page is done loading. The page never completes. Also, several sites I
am
targeting, like mySpace, restrict javascript. I'm not sure what would
happen
if I tried writing javascript at runtime to a mySpace page.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] FLVPlayer and seek() flips out

2006-11-13 Thread Yehia Shouman

I suggest you put a trace beside your seekSeconds call , and see how many
times it is called.
also if you have the autoPlay property set to true, just call seeSeconds and
dont call play after (the second one is something that made me pull my hair
out last week)


On 11/13/06, Michael Stuhr [EMAIL PROTECTED] wrote:


when i'm trying to do a seek seekPercent or seekSeconds the FLVPlayer
totally flips out. it seeks endlessly.

what is the 'correct'  way to do this ?

micha
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Remoting bytesLoaded/bytesTotal

2006-11-13 Thread Yehia Shouman

If there's a way for the server people to add a content header with content
length, it might work

On 11/13/06, Janis Radins [EMAIL PROTECTED] wrote:


hye ppl!

I'm in a situation that remoting calls get slow at some point for users
with
slow connection, hence client asked for loading progress display.
As far as i know there is no sutch thing as bytesLoaded /total for
remoting
calls, I just serched help docs and that only confirmed that.

I just would like to know if anyone have hacked/found the way to do that
for
AS2 and remoting calls or confirmation that it is impossible.

tnx in advance

jānis

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

[Flashcoders] Remoting Issue

2006-11-13 Thread Yehia Shouman

Hey People/Remoting Experts,

I am using mx remoting (the actionscript 2.0 version) with fash 8, calling
ColdFusion method(s) over remoting . For some unknown reason(atleast to me),
when the Flash app runs in any browser (Firefox/IE), it just keeps on
growing in memory (The process of firefox.exe kept going up from 30MBs to
450MBs), and I can't figure out why. I traced down every
setInterval/onEnterFrame/Event dispatch in my code, reduced memory usage by
40% to reach the 30MBs however it is still going up.

I tried publishing the app to a projector and its working with no reported
slow downs.

One of my components use setIntervals to load a banner info every 5 seconds
from CF over remoting, but i traced that one as well, it's not over calling.

I also found another developer with almost the same problem here

http://www.sephiroth.it/phpBB/showthread.php?t=2394

Does this have anything to do with the Garbage Collection process failing to
fire ? Any tricks out there ?

Please help!

Yehia Shouman
Actionscript Developer
www.santeon.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] loading external movie, then attachMovie items of IT's library?

2006-11-04 Thread Yehia Shouman

in Flash 9  with actionscript 3, yes. but with flash 8 I doubt that, anybody
?

On 11/4/06, grimmwerks [EMAIL PROTECTED] wrote:


Is it possible to load in an external swf using loadMovie into a main
movie, and then creating new movies on the fly using attachMovie with
ids of the loaded movie?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Scaling problem while loadingexternaljpeg'sin theMovie Clip

2006-11-02 Thread Yehia Shouman

function loadImage(image){
 this.holder.loadMovie(image);
 var imageLoaded:Boolean=false;
 this.onEnterFrame = function() {
 imageLoaded=this.holder.getBytesLoaded()==
this.holder.getBytesTotal();
 if (this.holder._width0  this.holder._height0  imageLoaded)
{
 resizeHolder();
 delete this.onEnterFrame;
 }
 };
}
function resizeHolder()
{
 var aMMbasedComponentInstance:Boolean=false;
 var availableWidth:Number = aMMbasedComponentInstance? this.__width :
this._width;
 var availableHeight:Number = aMMbasedComponentInstance? this.__height :
this._height;
 //to keep scale use the following line, to strech remove the following
line
  var biggerDimension=availableWidthavailableHeight? availableWidth :
availableHeight;
  this.holder._width=availableWidth;
  this.holder._height=availableHeight;
}

all you need to do is call loadImage(someimage.jpg);

On 11/2/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


I did not write out the entire solution because I was focusing on the
specific functionality.

When you use a holder clip, you're going to be creating it and removing
it on the fly.

this.holder.removeMovieClip();
this.createEmptyMovieClip(holder, 10);
this.holder.loadMovie(some.jpg);

Easy peasy.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash video multiple streams...

2006-10-25 Thread Yehia Shouman

If I think of doing this, I'd do it using the following ways:
1. if I have Flash Media Server (Streaming method)
Use it with server side actionscript to server streaming video, with server
side actionscript to play the first 10 seconds, and I'd catch with the
progress listener on an unskinned FLV player that the movie has reached the
first 1 second, thats when I'll pause the video, until I rollover it thats
when I need to play it again

2.If I dont have flash media server
Using a FLV slicing thumbnail creator, like FLVKnife, with a little server
side script code to created the shorter videos on upload, and another tool
to extract an image for a thumbnail, bearing in mind that usually on users
videos, the first 10 seconds may include titles, or black screens (Mr. X
presents), You know the users love to get cool with their home made
videos, so a progressive load wont be of equal quality to this solution,
Also this solution will help you with the 1 by 1 sequential loading
technique, for you're to load only what you'd show (I recommend this one)

3. (Progressive loading)
If I dont have flash media server and I hate to waste my time on server
side scripting but I can bear performance issues, I'd have multiple
unskinned instances of the FLVPlayback, and i'd catch using the progressive
listener the first frame (frames per second/playHeadTime) and pause, and
when rollover happens play (and create a new listener waiting for the 10th
second to restart video again), and on Rollout restart and pause


Hope if this doesnt help atleast would highlight some other possible
solutions or act as thought provoking to the other list members


Regards
Yehia Shouman
[EMAIL PROTECTED]

---


On 10/25/06, Jason Ross [EMAIL PROTECTED] wrote:


Hi,

I have a problem where multiple video streams, which are slowing a page
down (download time) ... see here:
http://www.fotoko.com/?str=1N%3D%2A%5C%3BKLP6R%3DT3%5BB%2E1R%0Dpy%1B

The video does load ... eventually, and then works fine on subsequent
visit due to caching ... my issue is with the loading times on the first
visit.

So, I need to control the way video is streamed to the page. Bearing in
mind that the video only needs to show a preview in thumbnail mode and
stream only when the thumbnails are clicked, I thought the following
process would be best ... and I was wondering how to achieve step 2 as I
am fine with the rest.

1) Start streaming (progressive) video into a Video symbol (using
netConnection() etc)
2) Detect when the first frame has loaded  HOW!?
3) Once the first frame has loaded, draw the video into a Movie Clip
(using draw() etc)
4) Stop streaming the video (until the thumbnail is clicked).

Any other suggestions are of course welcome!

Note: I am loading in the images one by one to reduce simultaneous open
streams, but the video's will potentially be too big to wait for to use
this approach.

Thanks,

Jason.

Legal Disclaimer:
This email message (including any attachments) is strictly confidential
and is intended only for the person(s) or organisation(s) named above.  The
unauthorised use, disclosure, distribution and/or copying of the email
message, or any information it contains (including any attachments), is
strictly prohibited and could in certain circumstances constitute a legal
offence.  If you are not an intended recipient, please contact the sender
immediately by return email and delete the email from your system.

Internet email communications are not always secure and may be susceptible
to data corruption, interception and unauthorised amendment, and therefore
View does not accept legal responsibility for the contents of this message
for any such corruption, interception or amendment or the consequences
thereof nor any delay in its receipt.

Although this email message and any attachments are believed to be free of
any virus or other defect that might affect any computer system into which
it is received and opened, it is the responsibility of the recipient to
ensure that it is virus free.  No responsibility is accepted by View for
any loss or damage in any way arising from its use.

Any views expressed by the sender of this message are not necessarily
those of View.
_
This message from View has been checked for all known viruses by the
MessageLabs Virus Control Centre.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http

Re: [Flashcoders] Re: simulating mouse clicks

2006-10-19 Thread Yehia Shouman

Hi,
what you wanna do is to send Windows messages, this is not supported in
flash, and I know nothing of a workaround.

Sorry
Yehia

On 10/19/06, Vishal Kapur [EMAIL PROTECTED] wrote:


I'll ask the question a different way: what are all the ways that a
mouse click event can be handled in a flash movie?  (other than
defining an onPress/onRelease callback)

-- Vishal


On 10/17/06, Vishal Kapur [EMAIL PROTECTED] wrote:
 I'm trying to solve the problem of generically simulating mouse clicks
 in a running flash movie.   So, I'd like to be able to write a
 function that when invoked with the targetPath of the flash object to
 be clicked, would be able to simulate a mouse click on that object as
 if a user had actually clicked it.  I should also mention that the
 technique needs to work with arbitrary 3rd-party flash movies (so I
 don't have control to change the code).

 The simplest thing to try is just to try to invoke the
 onPress/onRelease callbacks on the target object.  This works
 sometimes.  However, in some cases it doesn't quite simulate a real
 mouse click.  In particular, I seem to have trouble simulating clicks
 on components (in a List component, for example, the selected row will
 get highlighted but the handler that does further processing and
 refreshes the UI doesn't seem to get called).

 Currently I am (sort of) working around this by getting the
 coordinates of the center of the target object and using the Win32
 api's to move the mouse pointer and simulate the windows mouse down/up
 events.  As you can imagine this is not truly generic (doesn't handle
 scrollbars, movielclips obscured by other objects, etc).

 Any thoughts on this?  Anyone with previous experience with this or
 ideas on a better way to generically simulate a click event in flash?

 Thanks,
 Vishal

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Delegate Help

2006-10-02 Thread Yehia Shouman

You have different ways to do that, Highlighted in red what I added to your
code in the 2 styles:

1) If you plan to do it clean, here it goes.

import mx.utils.Delegate;
private var xml:XML= new XML();
private function playFlv(file:String){
   trace(file);
}

private function getFLV(id:String):Void{
   xml= new XML();
   xml.onLoad = Delegate.create(this,this.handleLoad);
   xml.load(id);
}

private function handleLoad(ok)
{
if(ok){
//xml will be available now because you have declared it above as a class
//private variable.
var node:Array = xml.firstChild.childNodes;
   etc...
 playFLV(test);
 }
}


2) If you plan to not use that xml anywhere anymore, use this fast way, by
declaring a ref private variable inside the getFLV function scope which
points at the class.


private function playFlv(file:String){
   trace(file);
}

private function getFLV(id:String):Void{
   var xml:XML = new XML();
   var ref=this;
   xml.onLoad = function(ok){

   if(ok){
   var node:Array = xml.firstChild.childNodes;
   etc...

   ref.playFlv(test);
   }
   };

   xml.load(id);
}


Good luck with both ways
Yehia Shouman



On 10/2/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


i need to call playFlv() inside another function, but this ain't
working... and i have never used Delegate class or some other workaround


private function playFlv(file:String){
trace(file);
}

private function getFLV(id:String):Void{
var xml:XML = new XML();
xml.onLoad = function(ok){

if(ok){
var node:Array = xml.firstChild.childNodes;
etc...

playFlv(test);
}
};

xml.load(id);
}

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Fwd: Flash 9 AS3 Classpath

2006-07-07 Thread Yehia Shouman

Dear List members,
I have downloaded Flash 9 Public Alpha, and I can see I can write
actionscript 3 in that.

The thing is, Everybody knows that the autocompletion system of the flash
IDE sucks

If I want to use FlashDevelop or SE|PY actionscript IDEs, I will need to
point at the classpath for the actionscript 3 classes.

Does anyone know where that is ? I am running Windows 2003 (Should be like
XP and 2000).

Please help !
Regards,
Yehia
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Flash 9 AS3 Classpath

2006-07-06 Thread Yehia Shouman

Dear List members,
I have downloaded Flash 9 Public Alpha, and I can see I can write
actionscript 3 in that.

The thing is, Everybody knows that the autocompletion system of the flash
IDE sucks

If I want to use FlashDevelop or SE|PY actionscript IDEs, I will need to
point at the classpath for the actionscript 3 classes.

Does anyone know where that is ? I am running Windows 2003 (Should be like
XP and 2000).

Please help !
Regards,
Yehia
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Fw: Senior Actionscript Developer

2006-05-07 Thread Yehia Shouman



Hi,
I know this isn't the right group to post this on to. But I am also taking 
advantage of the exposure of this group.


I am looking for a fulltime job as a Senior Multimedia Developer in UK, 
Canada or UAE.

If you have a good offer for me please let me know.


I have 4 years working experience in this field. I am excellant at 
Actionscript (2.0 and 1).  I have done some projects for a UK-based clients 
as well as for a US-based one.  I also have designed alot of Technical 
Specifications for several projects in UML. I have been able to even create 
scripts and tools to smooth the jobs of entry team. I also have several 
different experiences in XML, XSL, XSD, C# and VB.net. I also have 2 years 
of experience as a Graphic Designer in Print, so I have a classy sense of 
arts, colors and layouts.


I am currently working as a Multimedia Division Manager in a company located 
in Egypt specified in the field of E-Learning called eKnowledge.


Resume can be sent upon request. Please feel free to give me an assignment 
so I can proof my coding style and abilities for you.


Kind Regards
Yehia Shouman
Senior Actionscript Developer
[EMAIL PROTECTED]

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Fw: Senior Actionscript Developer

2006-05-07 Thread Yehia Shouman
Thank you Karthik. You don't have to read or comment to every message that 
is posted on the group (Always check the subject). :)


Have a nice Sunday K,
Yehia

- Original Message - 
From: Karthik [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, May 07, 2006 4:39 PM
Subject: Re: [Flashcoders] Fw: Senior Actionscript Developer



Hi,
I know this isn't the right group to post this on to. But I am also taking
advantage of the exposure of this group.


You have just 'proofed' to us that you have no respect for rules and
regulations. Nobody is going to trust you with a job now.

This would continue to be a great list if everybody 'took advantage of
its exposure', right? Sunday Spammers :/

-K
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] red5 recording viedo streams

2006-05-01 Thread Yehia Shouman

Sorry, but what's the address of the red5 mailing list ?

Also can anyone point me to a tutorial that can help me with the following:

I need to be able to send a command from a broadcasting client to all the
subscriber clients
so that there would be a nice switch case at the subscribers clients that
would handle these commands ? commands like sendFocus, close ... etc

Yehia

On 5/1/06, jim [EMAIL PROTECTED] wrote:


Try the red5 mailing list  www.osflash.org/red5

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 01 May 2006 17:35
To: 'Flashcoders mailing list'
Subject: [Flashcoders] red5 recording viedo streams

can anyone point me in the direction of being able to record video streams
with
red5. It says on osflash that you can. just looking for a direction to go.
or
maybe an example or tutorial or something. without having to read all of
the
docs on it.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] red5 recording viedo streams

2006-05-01 Thread Yehia Shouman

Applied and awaiting authorization

Thanks Jim and John.

Yehia Shouman

On 5/2/06, jim [EMAIL PROTECTED] wrote:


Sorry, should have put that on,

http://osflash.org/mailman/listinfo/red5_osflash.org

HTH
Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Yehia
Shouman
Sent: 01 May 2006 18:55
To: Flashcoders mailing list
Subject: Re: [Flashcoders] red5 recording viedo streams

Sorry, but what's the address of the red5 mailing list ?

Also can anyone point me to a tutorial that can help me with the
following:

I need to be able to send a command from a broadcasting client to all the
subscriber clients
so that there would be a nice switch case at the subscribers clients that
would handle these commands ? commands like sendFocus, close ... etc

Yehia

On 5/1/06, jim [EMAIL PROTECTED] wrote:

 Try the red5 mailing list  www.osflash.org/red5

 Jim

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
 [EMAIL PROTECTED]
 Sent: 01 May 2006 17:35
 To: 'Flashcoders mailing list'
 Subject: [Flashcoders] red5 recording viedo streams

 can anyone point me in the direction of being able to record video
streams
 with
 red5. It says on osflash that you can. just looking for a direction to
go.
 or
 maybe an example or tutorial or something. without having to read all of
 the
 docs on it.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash to excel?

2006-03-31 Thread Yehia Shouman
You can use flash to collect your data into a CSV string, then you can pass
this (in a web scenario) to a server side script to write it, or if you are
using a projector like SWF Studio you can use its FileSys plugin.

On 3/31/06, Flash guru [EMAIL PROTECTED] wrote:

 Is it possible for a flash projector file to write to an excel file?
 Maybe someone wrote a class for this? or maybe this isn't possible, who
 knows?
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Multiuser A/V Chat Server ? Something .net ?

2006-03-27 Thread Yehia Shouman
Thank you list,

My Problem
I have checked UserPlane and red5, but ultimately I would need a dotnet
based server, preferrably .net I hope. There are a few servers out there,
however, they are java-based. Unfortunately and to my grief, my company is a
MS partner.

Alternative Solutions
And even if I thought of getting a plan from media temple or userPlane (both
of which are using Flash Media Server), they are still very expensive. As
you all know Flash Media Server itself is licensed for $4,500 (that figure
makes me cry)

Best Scenario Solution
Need a .net A/V Relay server that is opensource,
OR help with RTMP protocol (the protocol that Flash M Server uses) and how
we can implement that using C#, furthermore, more information about how the
stream is sent , is it binary ? in what format whatsoever ? All info is
really appreciated, I might end up building a server myself.

Thank you again, for whatever contribution you come up with

Many Thanks in Advance

Yehia Shouman


On 3/27/06, Rich Rodecker [EMAIL PROTECTED] wrote:

 its not a server per se, but maybe you can check out some of the
 solutions over at userplane.com

 On 3/26/06, Julien Vignali [EMAIL PROTECTED] wrote:
  You may try the open source Red 5 stream server :
  Red5 is a server that not only streams content to the Flash plugin, but
  it can push calls and information to the Flash client! It can also
  receive video/audio/data from a flash client and either save or
  rebroadcast that content.
 
  http://osflash.org/red5
 
  Be careful, AFAIK it's still in alpha stage ...
 
 
  Yehia Shouman a écrit :
   Dear Coders,
  
   I have to create an Audio/Video Flash multiuser Chat, with text
 messaging.
  
   What are my options as for the server ? I don't want to use any of
   Macromedia's Servers. I would love to hear there is an open source
   dotNet server as well. Are there any ?
  
   Please advice me on which way to go
  
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Multiuser A/V Chat ? Which Server?

2006-03-26 Thread Yehia Shouman

Dear Coders,

I have to create an Audio/Video Flash multiuser Chat, with text messaging.

What are my options as for the server ? I don't want to use any of 
Macromedia's Servers. I would love to hear there is an open source dotNet 
server as well. Are there any ?


Please advice me on which way to go

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [OT] Sparx Enterprise ArchitectgeneratingActionscript

2006-03-23 Thread Yehia Shouman
I am using this tool and its really great, two things that suck however 
about this tool is that:
1. the interface is not user friendly, you can't copy methods from a class 
to another .. etc

2. Not all the AS data types are included.

but then again, it does generate good code and is muchly extensible

Yehia Shouman
___
Mutlimedia Division Manager


www.go-eknowledge.com


- Original Message - 
From: Jim Tann [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, March 23, 2006 11:43 AM
Subject: RE: [Flashcoders] [OT] Sparx Enterprise 
ArchitectgeneratingActionscript



David,

Thanks, I am always interested in the way Actionscript is interpreted
into byte-code. But what I am really looking for is some help with the
sparx systems enterprise architect tool itself. I figured as it is a UML
tool with inherent Actionscript generation that people on this list
would be using it and know what I mean. I actually found what I was
looking for last night anyway so no biggie.

Jim
p.s. is anyone using this tool? I just started and it looks fantastic.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Rorex
Sent: 23 March 2006 02:29
To: Flashcoders mailing list
Subject: Re: [Flashcoders] [OT] Sparx Enterprise Architecht
generatingActionscript

On 3/22/06, jim [EMAIL PROTECTED] wrote:


Hi all,

I started playing with EA getting it to generate Actionscript. I need

to

know how to place an import statement into a class like:

import com.something.MyClass;

I see it can handle doing this as I have reverse engineered one of my
projects and on regenerating the code the import statements are still
there
but I cannot see where it is in EA.

Any help would be great.
Jim



I don't know what Sparx EA is, but I know this about import statements:
When your movie is compiled, 'import' statements do not actually
generate
any code.

The following two examples will produce exactly the same swf bytecode:

1:
import com.something.MyClass;
x = new MyClass();

2:
x = new com.something.MyClass();

So you don't really need import for anything, it is just to make the
typing
easier when writing classes.

FYI: Just because you import a class, does NOT mean it will be compiled.
You
actually have to reference it somewhere, either via a new statement, or
referencing it directly.

hope this helps,
-David R
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [OT] Sparx Enterprise Architecht generatingActionscript

2006-03-23 Thread Yehia Shouman

To get an import statement in your generated code,

Create a diagram, on which you will draw the relationships between classes

Use the Aggregate or compose under Class Section in the Toolbox on the left.

When you describe a compose or aggregate relationship between 2 classes, the 
one that is aggregating the other will get an import statement in its 
generated code.


- Original Message - 
From: David Rorex [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, March 23, 2006 4:29 AM
Subject: Re: [Flashcoders] [OT] Sparx Enterprise Architecht 
generatingActionscript



On 3/22/06, jim [EMAIL PROTECTED] wrote:


Hi all,

I started playing with EA getting it to generate Actionscript. I need to
know how to place an import statement into a class like:

import com.something.MyClass;

I see it can handle doing this as I have reverse engineered one of my
projects and on regenerating the code the import statements are still
there
but I cannot see where it is in EA.

Any help would be great.
Jim



I don't know what Sparx EA is, but I know this about import statements:
When your movie is compiled, 'import' statements do not actually generate
any code.

The following two examples will produce exactly the same swf bytecode:

1:
import com.something.MyClass;
x = new MyClass();

2:
x = new com.something.MyClass();

So you don't really need import for anything, it is just to make the typing
easier when writing classes.

FYI: Just because you import a class, does NOT mean it will be compiled. You
actually have to reference it somewhere, either via a new statement, or
referencing it directly.

hope this helps,
-David R
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [OT] Sparx Enterprise ArchitechtgeneratingActionscript

2006-03-23 Thread Yehia Shouman
I dont know anything about Mac, but if you been ok with Java, then I would 
recommend ArgoUML + CodeAlloy's plugin for Actionscript generation

http://www.codealloy.com/argoumlforactionscript.htm

Also check www.osflash.org there has to be somethin out there I think
Yehia

- Original Message - 
From: Sam Thorne [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, March 23, 2006 4:16 PM
Subject: Re: [Flashcoders] [OT] Sparx Enterprise 
ArchitechtgeneratingActionscript




A bit more OT than the original.

Does anyone know of an equivalent application for Mac OS X?
I've come across Visual Paradigm for UML and MagicDraw UML, both Java 
apps which would be great as we're a mixed platform outfit.
The thing that's missing is code generation for Actionscript, a  feature 
of EA that I can't seem to find anywhere else.


On 23 Mar 2006, at 13:03PM, Yehia Shouman wrote:


To get an import statement in your generated code,

Create a diagram, on which you will draw the relationships between 
classes


Use the Aggregate or compose under Class Section in the Toolbox on  the 
left.


When you describe a compose or aggregate relationship between 2  classes, 
the one that is aggregating the other will get an import  statement in 
its generated code.


- Original Message - From: David Rorex [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, March 23, 2006 4:29 AM
Subject: Re: [Flashcoders] [OT] Sparx Enterprise Architecht 
generatingActionscript



On 3/22/06, jim [EMAIL PROTECTED] wrote:


Hi all,

I started playing with EA getting it to generate Actionscript. I  need 
to

know how to place an import statement into a class like:

import com.something.MyClass;

I see it can handle doing this as I have reverse engineered one of my
projects and on regenerating the code the import statements are still
there
but I cannot see where it is in EA.

Any help would be great.
Jim




Regards,

Sam Thorne
Interaction Design

Web: http://www.native.com/
Tel: +44 (0)207 588 7970
Fax: +44 (0)207 588 7971


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Using a string to declare a function?

2006-02-16 Thread Yehia Shouman
Try

this[a]=function()
{
  trace(hi:+arguments);
}

or more neat
var newFunc= this[a];
newFunc=function()
{
}

and later on you can access the newFunc variable
or use this[a]();

you will only have to define that function in your class constructor (if it
is a component class) or any other function that is called automatically by
mx.core.UIComponent (CreateChildren/draw ...etc).


On 2/16/06, Ryan Luce [EMAIL PROTECTED] wrote:

 Is there any way in flash to using a string to declare a function name.
 Here's an example:
 class test {

  var a = hello;
 function get this[a]() {
trace(hi);
  }
 }

 i've tried this[a] and taht doesn't work... i'm not sure how it would
 otherwise be done.
 Thanks,
 Ryan.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Does an swf know its own file name?

2006-02-10 Thread Yehia Shouman
inside it
this._url

On 2/11/06, Troy Rollins [EMAIL PROTECTED] wrote:

 Can I get the file name of an swf which is loaded?

 --
 Troy
 RPSystems, Ltd.
 http://www.rpsystems.net


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] saving bitmapData

2006-01-26 Thread Yehia Shouman
In my humble opinion, I think you'll have to use an enterframe event Or 
setInterval with a bitmapData.getPixel(x,y) call, to retrieve the data from 
the bitmapData and then send that as a string using LoadVars class (with a 
flash parser class- when loading it back) or in XML format. Also check out 
AMF for a smaller sized packet sending.


but I think there is no way you can dump the data from bitmapData other than 
the getPixel method which is unfortunately very slow.


Can any body else advice us if there's a better way to do it ?

Yehia Shouman

- Original Message - 
From: ivan valadares [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, January 26, 2006 5:13 PM
Subject: Re: [Flashcoders] saving bitmapData


if is as web application, you can use php to write de data to a file, if 
is an apllication you can use zink.
in the two ways, you can get data from flah and write it to a file. (like 
. myimage.egf)

you can use flash. loadvariables to retrived it!
i dont know very well bitmapData, but if bitmapData gives you data and a 
header. tou can make a jpg ou a bitmap file.


Maxime wrote:

Is there a way to save a bitmapData created in flash on the user local 
disk or on a server ?


Maxime
Thanks


___
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] getting the name of an object

2006-01-23 Thread Yehia Shouman
Oh guys,
this reminds me of

var a:Object=new Object();
var b:Object=new Object();
a.b=b;
b.a=a;

trace(a.b.a.b.a.b.a.b.a  until I die)


On 1/23/06, Andreas Weber [EMAIL PROTECTED] wrote:

  shouldn't there be a === or !== in there somewhere to make
  sure you're talking about _exactly_ the same object rather
  than one which just has the same value..?

 Good question...
 In my understanding - i.e. please correct me if I'm wrong! - when
 testing objects for equality the simple and the strict equality operator
 are completely interchangeable.

 We are not comparing values, which can be of different types (and thus
 provoke 'false positives' with the simple equality operator), but
 references, which have a simple, 'binary' quality: either they do point
 at the same place in memory or they don't.
 And two objects - by definition? - always occupy two distinct locations
 in memory, completely independent of wether they are of the same type
 and contain the same values.

 trace({} == {});// output: false

 That's why I think that when testing objects for equality, the simple
 and the strict oprator will always return the same result.

 --
 Andreas Weber
 motiondraw.com



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Ian
 Thomas
 Sent: Montag, 23. Januar 2006 16:38
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] getting the name of an object


 Andreas,
   Just sight-reading the code rather than testing it - shouldn't there
 be a === or !== in there somewhere to make sure you're talking about
 _exactly_ the same object rather than one which just has the same
 value..?

 Cheers,
Ian

 On 1/23/06, Andreas Weber [EMAIL PROTECTED] wrote:
 
  If you have a weakness for kludgy solutions, try the 'getObjNames'
  function below.
  Otherwise: don't 'forget' the names of the objects: store the name in
 the
  same object, as an additional property.
 
 
  // 'don't try this at home!'
 
  a = {someProp:'someValue'};
  b = {someProp:'someOtherValue'};
  c = a;
 
  arr = [a, b];
 
 
  // later, when we have 'forgotten' the names of the objects
 
  for(var i=0, len=arr.length; ilen; i++){
  trace(getObjNames(arr[i]) + '   - someProp: '+
 arr[i].someProp);
 
  // Output:  c,a   - someProp: someValue
  //  b   - someProp: someOtherValue
 
  }
 
 
  // kludgy, poorly tested and a waste of processor cycles function
  getObjNames(o:Object, timeline:MovieClip){
  var names:Array;
  var o2 = arguments[1] ? arguments[1] : _level0;
  if(!names){names = []}
  for(var p in o2){
  if(typeof(o2[p]) == 'object'){
  if(o2[p] != o){
   getObjName(o, o2[p]);
  }else{
  names.push(p);
  }
  }
  }
  return names;
  }
 


 ___
 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] BitmapData dump ?

2006-01-21 Thread Yehia Shouman
Thank you Ralph,

I think I'll use onEnterFrame with a progress bar showing the status of the
saving process progress. It'll look a bit lame being slow, but if thats what
we can do now then i hope it'll look ok
the problem is that I am saving off 400x200 bitmapData instance multiplied
by X layers !

Thanks again man
Yehia

On 1/21/06, Ralph Caraveo [EMAIL PROTECTED] wrote:

 Try this:
 http://www.ifbin.com/news/2005/09/flash-8-webcam-snapshot-by-robert-m.ht
 ml  Costs money :(

 Or this:

 http://www.m3style.lv/bo/experiments/flash2jpg/


 Sorry, I just should have posted this in my last email.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Yehia
 Shouman
 Sent: Friday, January 20, 2006 2:59 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] BitmapData dump ?

 Hi all,

 I just don't believe its true, so I thought I'd ask here as a last
 resort.

 Is there any way I could store or get the data inside the bitmapData
 instances ? I dream of a way I could save locally several bitmap layers.

 I wouldn't go for getPixel because its too freaking slow ! I don't know
 what use is it if we can't have it scan the bitmap quickly,

 is there a Dump bitmap data anything like this, something I could use to
 reconstruct the bitmapData instance when the flash movie runs again on
 the client's machine ?

 thanks for your help in advance
 Yehia
 ___
 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] ComboBox not firing change event when selectedIndex set

2006-01-16 Thread Yehia Shouman
use this instead (attach ur function to an object)

var Listener_obj:Object= new Object();
Listener_obj.change=function(evt:Object)
{
  trace(new Selected Index=+evt.target.selectedIndex);
}
myCmb.addEventListener(change,Listener_obj);
myCmb.selectedIndex=2;

the reason behind this, is that you can attach more than an event listener
to that Listener_obj and finally in 1 line of code use it with the combobox.

Good luck
Yehia Shouman


On 1/16/06, Steven Sacks [EMAIL PROTECTED] wrote:

 function change() {
 trace(change);
 }
 MyCmb.addEventListener(change, this);

 MyCmb.selectedIndex = MyCmb.selectedIndex + 1;

 Does not fire a change event.  How do I detect when the combo box has
 changed from code not from direct user interaction with the
 component?  This
 seems completely stupid to me because the combobox WAS CHANGED so it
 SHOULD
 FIRE A CHANGE EVENT.

 ___
 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] Flash 8 statistics

2006-01-13 Thread Yehia Shouman
http://www.macromedia.com/software/player_census/flashplayer/penetration.html

shows that in June 2005 there were 645 Million users having installed the
flash player on their systems, in Sep 2005 it increased to 663 Millions,
663-645=18 million increase over 2 months/60 days = 0.3 million, but i think
0.5 is an average over the whole era of flash.
Yehia Shouman


On 1/13/06, Joakim Carlgren [EMAIL PROTECTED] wrote:

 Are there any statistics on flash player 8.



 I haven't seen any stats on macromedias site but I read somewhere that

 The Flash 8 audience is now growing by five million people a day.



 Does anyone know anything about this?



 Source: http://www.dmxzone.com/ShowDetail.asp?NewsId=11107



 Kindly



 Joakim Carlgren



 .
 Joakim Carlgren Fröding
 Flash Developer

 Framfab Sverige AB
 Lilla Bommen 1
 SE-411 04 Gothenburg
 SWEDEN

 E-mail: [EMAIL PROTECTED]
 Direct: +46 31 760 05 15
 Mobile: +46 709 73 79 15
 Phone:  +46 31 760 00 00
 Fax:+46 31 760 05 50
 Web:www.framfab.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] MM Scrollpane issue/constraint

2006-01-10 Thread Yehia Shouman
Hi Martin

try using

myScrollPane_sp.setScrollProperties(1024,1,585,1);

you might have to make that method public if it was private, check the
ScrollPane.as class in your

c:\documents and settings\[userName]\local settings\application
data\macromedia\flash 8\en\configuration\classes\mx\containers

its conceptual, but I think it could work ! try it
good luck,
Yehia Shouman http://www45.brinkster.com/chaoschaos/


On 1/10/06, Martin Baltzer [EMAIL PROTECTED] wrote:

 Hi,

 I am using the Scrollpane component in a flash 8 movie and it works
 fine.
 My scrollpane size is set equal to the Stage size everytime its being
 resized.

 If stage size gets below 1020*585 I've set it up to show the scrollbars
 because I know for sure that my content requires that minimum size.

 My question is:

 Event though the visible content area is 1020*585 the content itself may
 be way larger due bigger material that have been masked off etc, and
 then the scrollpane detect that size and scrolls way to much.

 When the scrollbars are turned on I only want to scroll up to max
 1020*585 even if my content is 10 times that size.

 Is this possible and if not does anyone knows of another way to handle
 this without spending many days on building a new scrollpane component?

 Thanks in advance

 /Martin
 ___
 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