Re: [Flashcoders] Load centered images in movie clip - Heeelp!

2006-02-15 Thread Ramon Tayag
The problem lies in loadMovie.  Locally, the picture is already
loaded, so when you ask for the pic properties, the computer can give
it to you already.

Online, however, you'll be downloading the picture while trying to
find out its dimensions.

Use MovieClipLoader, and use the listener onLoadInit.  In that
listener you can put the code to center your image, resize it, etc.

Goodluck,
--
Ramon Miguel M. Tayag
___
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 window coming out small on some IE browsers

2006-02-15 Thread Ramon Tayag
Hey guys,

This is really strange, and is kinda OT coz it's not actionscript
related.  It's more about the Flash Player Detection Kit.

http://test.quirkworks.net/skin/ comes out small only in some IE
browsers (15% of the people i've asked), and I can't seem to figure
out why.

If you see the source code of the site I'm using the detection kit
Macromedia made.

Client is waiting for the fix and.. gah.. I can't seem to find a fix! 
Problem is that it works fine in all the computers here in the office.

If it comes out small (window looks like it shrank), what is ur IE
version and OS?

Thank you,
--
Ramon Miguel M. Tayag
___
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] A nice whiteboard/scribble/drawing thing

2006-02-09 Thread Ramon Tayag
Hey everyone,

Are there nicely free, coded, neat, and object oriented
whiteboard/scribble programs out there?  If there aren't, are there
ones that are close to what I described?

I looked around in the Flashkit applications and downloaded about half
a dozen..  I'm hoping there are more out there though.

I want to make my own and I think it'll make a world's difference if
there's something I can study.

Thanks!
--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] A nice whiteboard/scribble/drawing thing

2006-02-09 Thread Ramon Tayag
Jobe,

Thank you :)

I plan to do mine using AMFPHP.  It's not so much the backend I'll
have to study, but more the Flash aspect of it.  The sample I'm
looking for does not have to be multi-user.

Thanks,

On 2/9/06, Jobe Makar [EMAIL PROTECTED] wrote:
 Hi Ramon,

 I'm not aware of a free whiteboard that fits your description. But I do know
 of a basic free multi-user whiteboard. Go here and scroll down:
 http://www.electro-server.com/live_examples.aspx

 That is a pretty basic whiteboard example. The source is installed with
 ElectroServer. ElectroServer is free for up to 20 simultaneous connections.

 Jobe Makar
 http://www.electrotank.com
 http://www.electro-server.com
 phone: 919-609-0408
 mobile: 919-610-5754
 fax: 919-341-8104


--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] A nice whiteboard/scribble/drawing thing

2006-02-09 Thread Ramon Tayag
James,

Sorry, I'm not sure what you mean by sharing the work.  You want me to
append it to a current project so that you can share the sourcecode
with me? :o

If that's the case, please mail me privately.

Thanks!

On 2/9/06, James Deakin [EMAIL PROTECTED] wrote:
 I have one which I wrote. I have to amend it for a project I am working on
 at the moment. Do you fancy sharing the work?

 James Deakin

 Definition
 T: +44 (0)7977 006 887
 E: [EMAIL PROTECTED]

 www.justdefine.com

--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Outsourcing

2006-02-08 Thread Ramon Tayag
To all those in developed countries:

Do you outsource your work to developing countries?  Is there such a
high demand for Flash overseas that there is a need to outsource?

Thank you,
--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Audio Chat

2006-02-07 Thread Ramon Tayag
Thank you!  Will do much reading now.

On 2/8/06, Chris Allen [EMAIL PROTECTED] wrote:
 You can also use Red5 http://osflash.org/red5 or Flash Media Server for
 this.

 -Chris
--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] EventDispatcher.removeEventListener

2006-02-06 Thread Ramon Tayag
yup, check out gDispatcher by Mr. Skinner.  You can google it.

On 2/6/06, Simen Brekken [EMAIL PROTECTED] wrote:
 I'm having some issues with EventDispatcher, specifically removeEventListener
 and delegates. The problem arises when I want to remove an existing event
 listener but the target function no longer exists, is there any way to remove 
 an
 event listener without specifying the callback function?

 On a side note, are there any improved alternatives to EventDispatcher?

 --
 Regards,
 Simen Brekken


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



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How do you code your Flash applications?

2006-02-02 Thread Ramon Tayag
Hey Anggie,

Hello from a neighbor.

I'm no guru, but I am OC (obsessive compulsive) when it comes to
keeping my code clean.

1) If I can help it, I keep all my code in one place.  All in one
frame, all the better.  All in one swf?  Better yet.
2) I don't keep the actual code in the FLA but I import it via #include.
3) I use classes whenever I can - and I keep them as modularized as possible
4) If I can't use classes, I put all my code in functions, even if it
is not in a class.  It becomes easier this way when you have an AS
editor that can collapse functions.
5) Comment, a lot!

Goodluck,
--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Naming conventions for AS2.0 ...

2006-02-01 Thread Ramon Tayag
I use

oListener:Object;
bIsReady:Boolean
sText:String;
tf:Textfield;
mcHolder:MovieClip;
mcl:MovieClipLoader;

Yeah I don't think prefixes are recognized elsewhere but it takes a
bit of effort to type _ (underscore) because it's out of the way for
me

Mon

On 2/2/06, Bjorn Schultheiss [EMAIL PROTECTED] wrote:
 listener_obj
 answer

 I hate mcImage, I don't think that prefix is recognized in any dev app.
 I know image_mc works in Flash and I think sepy for code hinting


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Ford
 Sent: Thursday, 2 February 2006 12:53 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Naming conventions for AS2.0 ...


 Does anyone have an opinion, or a preferred method, in regards to
 naming conventions for AS2.0 objects ?

 For example, Macromedia recommends:

 clip_mc (movie clip)
 comm_lc (local connection)
 names_array (array)
 beep_sound (sound)
 field_txt (text field)
 etc, etc, etc

 but what if I wanted to use an generic object or a boolean datatype:

 listener_???:Object = new Object();
 answer_???:Boolean = false;

 These are just two datatypes Macromedia doesn't list in terms of
 suffixes (search for 'About using suffixes to trigger code hints' in the
 official Flash help documentation built into Flash).

 So another technique I have seen is prefixing variables, like:

 mcClip (movie clip)
 lcComm (local connection)
 aNames (array)
 etc, etc, etc

 Someone must have a foolproof way to do this, there must be
 a technique that covers all possibilities for naming variables ???

 Thanks,
 Stephen.

  ___
 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



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Can AttachedVideo be Controlled by a Class?

2006-01-30 Thread Ramon Tayag
You'll have to attach the video manually on the stage.. but that also
mean u won't need the video holder mc anymore.

Just reference the video object when you creat ethe class

var foo = new foo(video);

On 1/31/06, Steven Loe [EMAIL PROTECTED] wrote:
 Can attachedVideo be controlled by a class? I have scrubbed that archives and
 Googled...

 Is it possible to do something like this? (This Dosen't work). I don't want to
 use a media component because this will be controlled by a keyListener (no on
 screen video controls).

 class Foo {
   var video_container:MovieClip;
   var my_video:Video;
   var my_nc:NetConnection;
   var my_ns:NetStream;

   function Foo(target:MovieClip, x:Number, y:Number, depth:Number) {
 var my_nc = new NetConnection();
 var my_ns = new NetStream(my_nc);

 video_container = target.createEmptyMovieClip(video_container, depth);
 video_container.attachMovie(video_mc, video_mc, 1);
 my_video = video_container.video_mc.theVideo ;
 trace(my_video:   + my_video);
 //_level0.video_container.video_mc.theVideo

 my_nc.connect(null);
 my_video.attachVideo(my_ns);
 my_ns.play(flvs/preview.flv);
   }
 }

 On the timeline: var myFoo:Foo = new Foo(this, 4);

 Any Thoughts/Ideas Greatly appreciated!
 Thanks! -Steven


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



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] setInterval interfering with Sound

2006-01-27 Thread Ramon Tayag
Try commenting out the line that makes the light flash - but still
fire the interval.  If it doesn't interfere anymore, then that means
it's the drawing of the light that interferes.

On 1/28/06, Jack H [EMAIL PROTECTED] wrote:
 Has anyone experienced an interval stopping sounds?

 I made a basketball game where I have an interval
 which creates random flashes of light on the stage.
 When the user misses or gets a ball in, a sound is
 initiated, which is totally unrelated to the interval.
 Gradually the flashes of light gets faster and faster
 -- in other words, I first clear the flash interval
 and then reset the interval with a smaller millisecond
 value. As this value approaches 1 millisecond (I know,
 that's pretty fast), this interval starts interfering
 with the sounds, which are unrelated to this interval.
 The sounds would be initiated by the user's shooting
 of the ball and almost as soon as the sound starts, it
 prematurely stops.

 What's happening here? Why is this happening?

 thanks in advance!

 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] fscommand('exec', 'myprogram.exe') WITHOUT a projector?

2006-01-27 Thread Ramon Tayag
I suppose it's because when a user runs an exe, they are supposed to
understand the risks.  A swf was designed for the web, and allowing a
swf from a browser to do all those System calls would be dangerous.

On 1/28/06, John Grden [EMAIL PROTECTED] wrote:
 I guessed as much.  it's interesting to me:  why allow for the creation of a
 projector that can do it, when you can play the SWF IN a Flash player.exe?

 make sense?  I mean, if it takes an EXE to run the SWF (whether it's in the
 IDE in a panel or in the standalone player or created projector), what's the
 diff?  I mean, the criteria's the same - Local, exe running a SWF.

 On 1/28/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  doing so would be a breach of security.
 
   Is it possible?  I can't seem to make it work UNLESS I load the swf into
   the FLash player, then do a save as projector.
  
   any possible way that the player could handle this without the
   projector?
  
   --
   John Grden - Blitz
   ___
   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
 



 --
 John Grden - Blitz
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FLash 8, standAlone shows getBytesTotal undefined, IDE ok

2006-01-26 Thread Ramon Tayag
How does your own loader load?  What does it use to load?

Thanks,

On 1/26/06, Martin Weiser [EMAIL PROTECTED] wrote:
 Hello guys,

 strange thing,
 I use my own loader class, not MovieClipLoader
 in flash 8 IDE it works ok, because it is controled by the
 getBytesLoaded/getBytesTotal ratio,

 but in standAlone and in webpage it doesn;t work, it shows getbytesloaded
 and getbytestotal as undefined,

 When i used movieCLipLoader class it loads ok, even can determine the end of
 loading, how come?.
 Why i cannot see bytes methods output, and how can MovieCLipLoader work if
 these are not working in standAlone?


 thanks
 Martin W

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



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] LoadMovie Problem with JPEGs

2006-01-22 Thread Ramon Tayag
You'll need a holder of sorts:

ImageHolder movieclip that holds all the info including the ImageMC
which actually displays the picture

On 1/23/06, Robert Sandie [EMAIL PROTECTED] wrote:
 Having a problem loading in an image within an AS2 class and LoadMovie with
 jpegs. It loads the image perfectly but as soon as it does this it
 automatically deletes all existing variables that are running within the
 class. Instead of it losing all information  upon loadMovie would like to
 keep it.



 class ui.overlay extends EventClip {



 .



 public function showImage(url:String, text: String):Void{

 this.loadMovie(url);

 this.text=text;

 _delegate = EventDelegate.create(this, onHitDataGrid);

 datagrid.addEventListener(datagrid, _delegate);

 }



 private function onHitDataGrid(e:Object):Void{

 trace(text); //works when don't load the jpeg.. does not work
 when I do load the jpeg.

 ..

 }





 I have tried loading the movie into another movieclip inside of this class
 and still no success. This is a little unusual and really my first time
 loading in Images dynamically.



 Been struggling with this one for a while. Anyone know what might be going
 on?





 -Rob



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



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] LoadMovie Problem with JPEGs

2006-01-22 Thread Ramon Tayag
sorry! disregard my post..

On 1/23/06, Ramon Tayag [EMAIL PROTECTED] wrote:
 You'll need a holder of sorts:

 ImageHolder movieclip that holds all the info including the ImageMC
 which actually displays the picture

 On 1/23/06, Robert Sandie [EMAIL PROTECTED] wrote:
  Having a problem loading in an image within an AS2 class and LoadMovie with
  jpegs. It loads the image perfectly but as soon as it does this it
  automatically deletes all existing variables that are running within the
  class. Instead of it losing all information  upon loadMovie would like to
  keep it.
 
 
 
  class ui.overlay extends EventClip {
 
 
 
  .
 
 
 
  public function showImage(url:String, text: String):Void{
 
  this.loadMovie(url);
 
  this.text=text;
 
  _delegate = EventDelegate.create(this, onHitDataGrid);
 
  datagrid.addEventListener(datagrid, _delegate);
 
  }
 
 
 
  private function onHitDataGrid(e:Object):Void{
 
  trace(text); //works when don't load the jpeg.. does not work
  when I do load the jpeg.
 
  ..
 
  }
 
 
 
 
 
  I have tried loading the movie into another movieclip inside of this class
  and still no success. This is a little unusual and really my first time
  loading in Images dynamically.
 
 
 
  Been struggling with this one for a while. Anyone know what might be going
  on?
 
 
 
 
 
  -Rob
 
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 


 --
 Ramon Miguel M. Tayag



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Stolen content

2006-01-19 Thread Ramon Tayag
Sorry I really don't understand what you mean..

Someone got your links?

On 1/19/06, franto [EMAIL PROTECTED] wrote:
 sure, you right, it was not my examples,
 it's content of my blog, link which i collected from many sites,
 digging, storing, writing then to the post, 1 update of post when I
 add 1 link last 30 mins, because there were many sites linking to that
 post

 I dont tell examples is mine...  my Collected examples are not same as
 Collected my examples :)

 Hopefully you know what I mean

 Franto

 On 1/19/06, erixtekila [EMAIL PROTECTED] wrote:
 
  Le 19 janv. 06, à 11:50, franto a écrit :
 
   I just want to know, that there are such practics, i know you know :)
   but i hate it
   so just want to let you know thieves :)
  
   http://www.franto.com/blog2/stolen-content-collected-links-to-
   maelstrom-examples
 
 
  Well, franto, did you really said : my content ?
  It's sad, i've found my content on other sites. Do not know about
  other content, but it seems that my Collected links to Maelstrom
  examples
 
  I thought it was examples of the new features developped by others.
  Could you clarify a bit ?
 
  Thanks.
  ---
  erixtekila
  http://blog.v-i-a.net/
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 


 --
 -
 Franto

 http://blog.franto.com
 http://www.flashcoders.sk
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] BitmapData question

2006-01-19 Thread Ramon Tayag
Here, force to bitmap class that I made:

http://www.flashkit.com/board/showthread.php?t=659163highlight=force+bitmap

On 1/20/06, Matt Muller [EMAIL PROTECTED] wrote:
 Hi, does anyone know if its possible to use getPixel or something like that
 to take a snapshot of a movieclip that contains some vectors and dynamic
 text fields and return that as a bitmap image to use elsewhere in the site,
 say as a reflection?

 Thanks

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



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] my old problem... with big loads of swf's

2006-01-18 Thread Ramon Tayag
I don't believe there is any way to fix this - just like if you launch
Photoshop while playing an animation, it's gonna stutter.

I wanted to do something like this before.  I had to search through a
large XML, and I didn't want the computer to freeze while the search
took place because the search took about 5 seconds.  I asked around
and came to a conclusion that Flash hogs all the resources of a
computer to do a certain task, and releases it only after it's done.

To fix this it would be better if you further break down the swfs to
smaller files so it only loads when it needs to.

Goodluck

On 1/18/06, julian atienza [EMAIL PROTECTED] wrote:
 At least somebody helps me...
 I posted my problem here several times, about swf's and big loads in
 projector but no solutions. Some helpful and patient words, but i was
 beleaving i was going crazy (everybody tolds me here that it wasn't a normal
 success)

 I posted my question in Creative Cow:
 

  Hello. I posted my problem several times in several forums (but this is my
 first post here)

 I haven't found a solution and the time for my project is running so fast
 (i'm working hard, mornings, evening, nights, but no solutions for this
 problem)

 The Scene:
 i'm programming a Projector-Flash Project that loads contents in local. It
 uses _levels, AS2, and a MovieClipLoader to load contents in each _level
 through navigation in the app.
 There is some big swf (5Mb) to load, but size must not be a problem in a
 local-project (Kiosk CD or DVD project)

 The Problem:
 when i Load the swf's in the appropiate _level, the previous _level goes
 frozen (even a simple animation of time to wait during load).
 I also tried a preloader technique in the swf that is being loaded with two
 scenes, but the animation of the first scene also is frozen until the
 complete load is made.

 The Cause:
 I think the cause of the problem has the following reason...

 When i load in remote (flash web projects), there is a portion of
 memo/processor free. So i can make anything during this time.

 When i load in local, all the resources are taken to make the load, so
 anything is frozen till the load is complete.


 DESPERATE:
 I've tried all kind of methods (Preloaders, MovieClipLoader (It only gives
 me 0% and 100% in events to control load), and so on... no solutions.

 Can anybody solve this problem?
 Thank u in advance

 ---
 In Creative Cow one person post me the following:
 --
  My experience with the projector is it doesn't do a progressive download
 like SWFs do on the internet. I've never used the projector to dynamically
 load SWFs, but I've made projectors of very large SWFs (20-75MB) and it
 seems to me that when you run them, they need to load the full file into
 memory before the projector app starts running (except for FLVs, which still
 seem to stream fine). It wouldn't surprise me if it were the same for the
 dynamically loading assets, which would only be an issue when you have large
 files. The fact that it freezes things that are already loaded and running
 is somewhat surprising to me, but not entirely unexpected.

 
 I'm still with the same problem. But i hope that it helps to people to NEVER
 try to build a big application developed in flash and actionscript (even
 Flash 8) without considering that advertisement...

 thanks to all people...
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] 2 Issues Optimizing JPGs and Memory Problem?

2006-01-13 Thread Ramon Tayag
Hi Loren,

On 1/13/06, Loren R. Elks [EMAIL PROTECTED] wrote:
 OK.  Here's the first one.  I know if you try to compress an already
 compressed image (like a jpg), that artifacts will result.  So, when
 using jpgs in Flash, should you first optimize as much as possible in
 Photoshop then place in Flash and compress more, or keep the image at
 it's original resolution and just let Flash handle the compression by
 adjusting the JPEG Quality slider under SWF - Publish Settings?

When you choose Flash's compression settings, it renders it when you
publish it AFAIK - so it doesn't really matter (swf-wise) where you do
the optimization (however, it affects the publish time).

The bigger the resolution the more it takes for Flash to render it.  I
learned that jpegs with high resolutions (huge dimensions), and low
quality (high compression settings) more of than not come up with the
best quality/file size ratio.  If you want, you can play around with
this class I wrote that forces an object to stay as a bitmap (read
http://www.flashkit.com/board/showthread.php?t=659163 for more
details).  That way, you can load a jpg with large res, cache it as a
bitmap so that when Flash handles it, it handles it as a small
picture.

 Number two.  I'm working on a small simulation (the FLA file is about
 2.5MB).  There is no video or audio used.  When I publish, it takes a
 long time for the Publishing progress bar to move.  When I look at my
 Task Manager in Windows, it tacks out at 100% and it shows Flash.exe is
 using ~172MB of memory!  What do you think is the problem (Flash,
 computer memory)?

That's probably some corruption in the Flash file.  It shouldn't take
long to move, unless your computer is slow.  If it's like this with
this file only, try copying all frames and pasting it in a few FLA.

 Thanks,
 Loren

Goodluck,
--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] priority for downloading content

2006-01-12 Thread Ramon Tayag
   Question #1:
   I'd like to set some kind of priority for content, sound etc. so
   if, say, there's a need to download important content, less
   important content won't start loading?
   Note: I know about queues, but need smth different.

Question #2:
Is there a way to stop downloading (of less important) content and
start again later?


   Thanks in advance.

I made this SupreLoader class that loads different files that are
listed down in an xml.  It's relies on the fact that the user's
computer will cache it, so when the user actually requests that file,
it needn't be downloaded anymore.

It can be told to halt() when the downloading should be stopped (like
you need to download something more imp't).  However, telling it to
stop for everything you want to prioritize, then telling it to
continue when ur done downloading is rather tedious.  Furthermore, you
cannot stop a download that has already started (save for closing the
flash movie) - so the SupreLoader will only not continue downloading
the next item in the queue.

I tried to make it automatic, but unfortunately, there is no way to
find out if you wish to remain within Flash.  Outside of Flash, I
wouldn't know.



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] onSoundComplete

2006-01-12 Thread Ramon Tayag
It works just fine with me.  Before I start, I make sure I fill up the
TLEN of all the songs.  I use TLEN for another reason but that's the
only thing I can think of that I do to all my files.

It might work.

Goodluck

On 1/13/06, Lance Massey [EMAIL PROTECTED] wrote:
 onSoundComplete does not seem to be firing. I've noticed others have
 had the same issue. Has anyone come up w/ a solution?

 Thanks,

 L


 
 GorillaPop - Connecting People Through Music
 http://www.gorillapop.com/

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



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] priority for downloading content

2006-01-12 Thread Ramon Tayag
No problem :)

I tried deleting the host movieclip, deleting the movieclip loader,
unloading the movie that contains the movieclip loader.  Somehow it
transfers the actual loading to the root movieclip.

If ever, you could have a separate embedded Flash movie in the website
and you can make the two movies talk to each other.  That might work. 
But it would be very bloody and almost not worth it.

I have the feeling that deleting the sound object won't yeild the
result you want.  But try it, I might be wrong.

If you want the SupreLoader class just let me know. I can email it to you

Goodluck

On 1/13/06, GregoryN [EMAIL PROTECTED] wrote:
 Thanks for your answer, Ramon.

 I was thinking of writing such class myself...
 But, in fact, I need some different solution rather than superb loading
 queue :-).

 Maybe I'll try to delete sound object which is downloading the mp3
 track, - what do you think ?
 Yes, it's the most common case in this project: some music is
 downloading and this prevents/slow loading more imp't content.
 Ideally, I'd like to cancel loading music in this case.

 --
 Best regards,
  GregoryN
 
 http://GOusable.com
 Flash components development.
 Usability services.



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Keypoints in a .mp3

2006-01-04 Thread Ramon Tayag
If you want to know the length of the song (because duration only
gives you how much has been downloaded), you can put it into the TLEN
of the ID3 V2 tag.  You can use onID3 of the sound object to find out
when the ID3 tags have been downloaded.  Please note that if you have
ID3 V2 and ID3 V1, onID3 will be called twice.  ID3 V2 is at the start
of the song.  So the first onID3 will be ID3 V2.  ID3 V1 is at the end
of the song.

On 1/4/06, Dimitrios Bendilas [EMAIL PROTECTED] wrote:
 Hi there.

 A sound Object in Actionscript has a .duration and a .position property.
 You can monitor the position and do stuff when the position has reached
 a certain number of seconds or a percentage of the total duration.

 var s:Sound = new Sound(sound_mc);
 s.attachSound(song);
 s.start();

 _root.onEnterFrame = function() {
 // check s.position and act accordingly
 }

 Regards,
 Dimitrios Bendilas

 - Original Message -
 From: Marcelo Wolfgang [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Wednesday, January 04, 2006 3:17 PM
 Subject: [Flashcoders] Keypoints in a .mp3


 Hi list,

 Happy new year for all :)

 I'm little rusty in my coding, and I'm developing a site which it will
 have a 'mp3 player' - the user click on a button, it load the mp3 to
 the flash media player.

 But I need to have some key points, or a way to check how much time of
 the music has elapsed so that at certain points it will display
 different info on the screen.

 Like when the music reach 2 minutes it will show the song artist, when
 it reaches 4'38'' it will show another info

 Is it possible ?

 How should I do something like this ?

 TIA
 Grillo
 ___
 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



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] help! class in external swf retains its interval even after close

2005-12-13 Thread Ramon Tayag
Hey everone,

I have a movie that uses loadClip to load an external swf to, let's
say, mcBlank. That external swf uses a class that furthermore uses
several other classes. One of those classes has intervals that
continually dispatch an event.

Now, to close that popped up window, I 1) unloadClip mcBlank, then 2)
removeMovie the host movieclip.

When I load the movieclip again, the event is still being dispatched.

How do I solve this?

I basically have a VideoPlayer that has internal classes that dispatch
onPlaying so that the progress bar gets updated. When I close the
movie then load it again, the progress bar is still moving..

Thanks
--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] help! class in external swf retains its interval even after close

2005-12-13 Thread Ramon Tayag
I see, so intervals are located, in some sense, in the root clip?


On 12/13/05, eugen pflüger [EMAIL PROTECTED] wrote:
 you have to delete the interval explicit:

 intervalName = setInterval();
 clearInterval(intervalName);





 Am 13.12.2005 um 10:58 schrieb Ramon Tayag:

  Hey everone,
 
  I have a movie that uses loadClip to load an external swf to, let's
  say, mcBlank. That external swf uses a class that furthermore uses
  several other classes. One of those classes has intervals that
  continually dispatch an event.
 
  Now, to close that popped up window, I 1) unloadClip mcBlank, then 2)
  removeMovie the host movieclip.
 
  When I load the movieclip again, the event is still being dispatched.
 
  How do I solve this?
 
  I basically have a VideoPlayer that has internal classes that dispatch
  onPlaying so that the progress bar gets updated. When I close the
  movie then load it again, the progress bar is still moving..
 
  Thanks
  --
  Ramon Miguel M. Tayag
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 








 plugisto
 ...
 eugen pflüger

 alexanderstr. 109
 70180 stuttgart

 fon +49.711.6739797
 mobil   +49.177.6428272
 e-mail  [EMAIL PROTECTED]
 ...
 http://www.plugisto.net
 http://itself.pmalc.de
 http://www.lifeperformance.net


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



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] help! class in external swf retains its interval even after close

2005-12-13 Thread Ramon Tayag
great thanks everyone!

I will read up on that interval manager. it should help.

I didn't like the solution (sometimes i get anal as a programmer) but
I just put a manual clearInterval when the button close is pressed. 
It shouldn't be the case, but, oh well.


On 12/13/05, eugen pflüger [EMAIL PROTECTED] wrote:
 yeah,

 they are pretty nasty sometimes. they even stay active when you load
 a new swf in root.

 sometime ago i got this link from jim:
 http://www.kennybunch.com/index.php?p=16


 Am 13.12.2005 um 11:33 schrieb Ramon Tayag:

  I see, so intervals are located, in some sense, in the root clip?
 
 
  On 12/13/05, eugen pflüger [EMAIL PROTECTED] wrote:
  you have to delete the interval explicit:
 
  intervalName = setInterval();
  clearInterval(intervalName);
 
 
 
 
 
  Am 13.12.2005 um 10:58 schrieb Ramon Tayag:
 
  Hey everone,
 
  I have a movie that uses loadClip to load an external swf to, let's
  say, mcBlank. That external swf uses a class that furthermore uses
  several other classes. One of those classes has intervals that
  continually dispatch an event.
 
  Now, to close that popped up window, I 1) unloadClip mcBlank,
  then 2)
  removeMovie the host movieclip.
 
  When I load the movieclip again, the event is still being
  dispatched.
 
  How do I solve this?
 
  I basically have a VideoPlayer that has internal classes that
  dispatch
  onPlaying so that the progress bar gets updated. When I close the
  movie then load it again, the progress bar is still moving..
 
  Thanks
  --
  Ramon Miguel M. Tayag
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
 
 
 
 
 
  plugisto
  ...
  eugen pflüger
 
  alexanderstr. 109
  70180 stuttgart
 
  fon +49.711.6739797
  mobil   +49.177.6428272
  e-mail  [EMAIL PROTECTED]
  ...
  http://www.plugisto.net
  http://itself.pmalc.de
  http://www.lifeperformance.net
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
  --
  Ramon Miguel M. Tayag
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 








 plugisto
 ...
 eugen pflüger

 alexanderstr. 109
 70180 stuttgart

 fon +49.711.6739797
 mobil   +49.177.6428272
 e-mail  [EMAIL PROTECTED]
 ...
 http://www.plugisto.net
 http://itself.pmalc.de
 http://www.lifeperformance.net


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



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] external jpg resize script

2005-12-07 Thread Ramon Tayag
Hi,

You can resize the stage real time?  I wasn't aware of that.  If you
mean you want to resize the picture when it loads to whatever the
stage is, use MovieClipLoader.

Read up on it, and pay particular attention to onLoadInit - that's
where you put your resize code.

Mon

On 12/7/05, Brumm, Mike [EMAIL PROTECTED] wrote:
 Hello,



 I'm probably missing something very simple here. I would like to load an
 external jpg into a movieclip. When the user resizes the stage, the width
 and height of the jpg match that of the stage. The below script does not
 seem to be working. I can't seem to figure out what's missing. Any ideas?



 Thanks in advance,

 Mike





 //SET STAGE PROPERTIES

 Stage.showMenu = false;

 Stage.scaleMode = noScale;

 Stage.align = LT;



 //RESIZE EXTERNAL JPG

 var tmp:MovieClip;

 tmp = this.createEmptyMovieClip(bgExpand_mc, 1);

 tmp.loadMovie(images/background/bg_image1.jpg);



 tmp.onResize = function(){

 this._width = Stage.width;

 this._height = Stage.height;

 }



 Stage.addListener(tmp);







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



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XML question

2005-12-07 Thread Ramon Tayag
use Delegate
-
import mx.utils.Delegate;

var a:Array = new Array();
..
..
main.onLoad = Delegate.create(this, populateXML);

function populateXML():Void
{
  trace(a);
}

Goodluck,

On 12/7/05, Flash guru [EMAIL PROTECTED] wrote:
 Hey all,

 here's the code i'm working with:

 var main:XML = new XML();
 main.ignoreWhite =true;
 main.onLoad =function(success:Boolean){
  if (success) {
 var developers:Array = this.firstChild.childNodes;
 var siteUrl:Array = new Array();
 var stanceUrl:Array = new Array();
 var introUrl = new Array();
 for (var i=0; idevelopers.length; i++){
 siteUrl.push(developers[i].attributes.site );
 stanceUrl.push(developers[i].attributes.stance);
 introUrl.push(developers[i].attributes.intro);
 }
  }
  else{ trace(xml not connected);}
 }
 main.load(main.xml);

 The problem:

 Why can't access the arrays out side the onload function? I want the onload
 to just populate the arrays, so i can use their contents somewhere else.
 Is this an xml thing or am i doing something wrong.  If i trace any of the
 arrays out side the onLoad function i get undefined.

 Fyi ~ i've already tried making the arrays global, no go that way.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] urgent

2005-12-07 Thread Ramon Tayag
Sorry, I don't understand what you mean.  The code doesn't seem like
it'll even execute.

What's your question?

Mon

On 12/6/05, Mohammad Sajid [EMAIL PROTECTED] wrote:
 in flash how to cordinate moive name with variable like

   trace(_root[box_m add i].d+(j).txt1)


--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash Audio stream

2005-12-07 Thread Ramon Tayag
mpeg... layer 3? that's mp3.  Yes, flash can do that quite simply.

Mon

On 12/7/05, Fredrik Lantz [EMAIL PROTECTED] wrote:
 Hi i have an easy question, i am trying to play a music stream from the web,
 the stream is in mpeg format.

 Is it possible for flash to play this or should i just drop it?



 I am using an ordinary sound object to load the stream  a onLoad callback
 function to start it.



 Regards



 //Fredrik





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



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] xml, atomic values, special chars

2005-12-01 Thread Ramon Tayag
Hey everyone,

How do I properly render text that was pulled from an atomic value?

For example, here's the node:
a attrib=name1This is the atomic value.  It's so cool./a

Getting the child node of that node a and tracing it in flash gives me:
This is the atomic value.  Itapos;s so cool.

How do I get it to print out the normal apostrophe?

Thanks,
--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Navigate through XML

2005-12-01 Thread Ramon Tayag
You mean something like XPath?

http://www.xfactorstudio.com/ActionScript/AS2/XPath/

On 12/2/05, Mike Boutin [EMAIL PROTECTED] wrote:
 Does anyone have any good links for explaining how to navigate through
 an xml object?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] xml, atomic values, special chars

2005-12-01 Thread Ramon Tayag
Still doesn't work :o

I'm not putting it in a textfield yet tho; just tracing it for now.  I
know I can fix this by making the text an attribute and changing all
illegal chars to their codes but there's a lot of text.. :s

Thanks

On 12/2/05, Søren Christensen [EMAIL PROTECTED] wrote:

 Well,

 - make sure your xml file (dynamic or 'physical') is utf-8 encoded.
 - And make sure your textfield uses a typeface that supports your desired
 special characthers.
 - And if the typeface is being embedded make sure that you embed the special
 charaters as well.

 Cheers,
 B) Søren


 On 1/12/05 17:58, Ramon Tayag [EMAIL PROTECTED] wrote:

  Tried it just now - strange.. I read before that using those tags
  forces the text to stay the way it is.  Any other suggestions?
 
  Thank you!
 
  On 12/2/05, Mike Boutin [EMAIL PROTECTED] wrote:
  Have you tried somethign like
 
  a attrib=name1![CDATA[This is the atmoic value. It's so cool]]/a
 
  Ramon Tayag wrote:
 
  Hey everyone,
 
  How do I properly render text that was pulled from an atomic value?
 
  For example, here's the node:
  a attrib=name1This is the atomic value.  It's so cool./a
 
  Getting the child node of that node a and tracing it in flash gives me:
  This is the atomic value.  Itapos;s so cool.
 
  How do I get it to print out the normal apostrophe?
 
  Thanks,
  --
  Ramon Miguel M. Tayag
  ___
  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
 
 
 
  --
  Ramon Miguel M. Tayag
  ___
  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



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] xml, atomic values, special chars

2005-12-01 Thread Ramon Tayag
I was able to fix it; but I see now what was wrong.  For the reference
of others:

Make sure you call the atomic data by node.childNodes[0].nodeValue

I traced out node.childNodes[0] directly - that's why it wasn't
tracing properly.

Thanks guys!
--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Change object in xpath

2005-12-01 Thread Ramon Tayag
ttTotal is an array though.  But yes, if you get an elements, let's
say ttTotaltt[0], you can treat that as if it were an XML file and use
it further on other queries.

Mon

On 12/2/05, Mike Boutin [EMAIL PROTECTED] wrote:
 productNames = XPath.selectNodes(catalog_xml,
 /shirtBin/shirt/name/text());


 var ttTotal = XPath.selectNodes(catalog_xml,/shirtBin/shirt[price12.00]);

 Is it possible to say do another XPath query and get back a list of
 results.  Then pass that xml object (ttTotal) through instead of
 catalog_xml?

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



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders