[Flashcoders] Re: Problem with play a sound and IE (it's freezes)!!

2007-06-20 Thread David Serrano

I have I big problem with playing a audio file in IE. It freezes during 20
seconds!!!.



I start playing the audio (the audio starts), and then, the browser
doesn't response in 20 seconds ( with 80-90% of cpu usage) and the sound
continue playing. After this 20 or 30 seconds, it's goes well.

Is only in Internet Explorer, in Firefox goes well.

My code:

   soundObject = new Sound(soundClip);
soundObject.onSoundComplete = function() {

};

soundObject.loadSound(currentURL,true);
soundObject.setVolume(currentVolume);
soundObject.start(currentPosition);

I need to play the audio in streaming mode, because I want to start after
few seconds.

Anybody has fixed it?

I use IE 7, but in IE6 the problem is the same.


___
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] Problem with play a sound and IE (it's freezes)!!

2007-06-20 Thread David Serrano

I have I big problem with playing a audio file in IE. It freezes during 20
seconds!!!.

I start playing the audio (the audio starts), and then, the browser doesn't
response in 20 seconds ( with 80-90% of cpu usage) and the sound continue
playing. After this 20 or 30 seconds, it's goes well.

Is only in Internet Explorer, in Firefox goes well.

My code:

  soundObject = new Sound(soundClip);
   soundObject.onSoundComplete = function() {

   };

   soundObject.loadSound(currentURL,true);
   soundObject.setVolume(currentVolume);
   soundObject.start(currentPosition);

I need to play the audio in streaming mode, because I want to start after
few seconds.

Anybody has fixed it?

I use IE 7, but in IE6 the problem is the same.
___
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] Shared fonts issue

2006-05-25 Thread David Serrano

I load 12 shared fonts in a different swf's separately.
I have tested the application in a different pc. The player version is 8.
I think the problem is when I load the swf's in one movie , his content 
needs to redistribute it to the others movies(similar to use any 
Macromedia component).

I put a real example:

My swf movie that contains the shared fonts is loaded in a content of 
other movie. This movie also is loaded in my main movie with another 
loadMovie. The real situation is that my shared fonts movie is loaded in 
the third level of my main application( after 2 loadMovies), so I think 
that when I load the fonts, they need to do a copy of the library on his 
father movie, so, for this reason, the shared fonts are temporally 
located in the 3 library movies. Is it true?


How you will do this?

Best regards,

David.

Marcelo de Moraes Serpa escribió:

Hello David,

How many fonts in the shared library swf? Maybe the player version, pc 
specs

and browser would also be good for us to try to help you.

- Marcelo.

On 5/24/06, David Serrano <[EMAIL PROTECTED]> wrote:



Hello.

I have a big problem with shared fonts. I am doing an editor that has a
list of fonts to choose. This fonts are dynamically loaded from a swf
with his embed font. When I try to load 10 fonts in a movieclip, with
his preload for each one, the application runs well, but if I load this
movie from my main movie, via loadMovie, my application turns very 
slowly.

In my main I haven't any shared font.

Any clue?

David.



___
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] Shared fonts issue

2006-05-24 Thread David Serrano


Hello.

I have a big problem with shared fonts. I am doing an editor that has a 
list of fonts to choose. This fonts are dynamically loaded from a swf 
with his embed font. When I try to load 10 fonts in a movieclip, with 
his preload for each one, the application runs well, but if I load this 
movie from my main movie, via loadMovie, my application turns very slowly.

In my main I haven't any shared font.

Any clue?

David.



___
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] Media PlayBack bug with streaming mp3.

2006-03-14 Thread David Serrano
AnyBody know is there any problem with the scrumb bar in Media Playback 
component?? I am trying to play a mp3  file from a FlashComm Server, and 
when the mp3 is loaded or started, the scrumb bar goes to the end and 
doesn't run. I cannot do a seek in my mp3 file too.


If I try to load the same mp3 in a local mode, it's run ok.

Any clue?

Thanks, in advance.

David


___
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] Deactivate dragScroll in FlashPaper, it is possible?

2006-03-07 Thread David Serrano
Anybody know if I can deactivate the scrollDrag in a FlashPaper(I think 
is called panning)? I only want to deactivate this one. I want the 
others options (scrollbar, mousewheel) continue working.


Any response?

Thanks in advance.

David
___
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] Disable FlashPaper hand tool?

2006-03-06 Thread David Serrano


Anybody know if I can disable the hand tool of a FlashPaper document? I 
don't want to scroll it with the mouse, but yes with the sidebar or the 
keys.


David
___
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] Problem to load a flashpaper from internet!!

2006-03-03 Thread David Serrano

Hello,
I have problems to load a flashpaper via internet. If I load it from 
internet, the flash player freezes.

I try this:

loadFlashPaper("http://www.antares.es/demos/etutor/docs/slides.swf",content_mc, 
500,500,this);


function onLoaded(){
   content_mc._visible=false;
   fp = content_mc.getIFlashPaper();
}
  
function loadFlashPaper(

  path_s,   // path of SWF to load
  dest_mc,  // MC which we should replace with the SWF
  width_i,  // new size of the dest MC
  height_i, // new size of the dest MC
  loaded_o) // optional: object to be notified that loading is complete
{
  var intervalID = 0;
  var loadFunc = function()   {
 dest_mc._visible = false;
 var fp = dest_mc.getIFlashPaper();
 if (!fp)
return;
 if (fp.setSize(width_i, height_i) == false)
return;
 dest_mc._visible = true;
 clearInterval(intervalID);
 loaded_o.onLoaded(fp);
  }
  intervalID = setInterval(loadFunc, 100);
  dest_mc.loadMovie(path_s);
}

But, If I try to load the same file but in local mode, It's run ok.

Any clue?

Thanks in advance!!

David
___
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] Return complex data with remoting

2006-02-01 Thread David Serrano
Hi, anybody knows if I can return a complex data from Java to Flash with 
openAmf.

I am trying to return a HasMap with another HasMap into, like this:


public Map onUserConnect (long _petitionId,String  userName, String 
password, String roomId){

   Map m = new HashMap();
   Boolean isValidUser = new Boolean(true);
   String photoURL = new String("foto.jpg");
   String role = new String("user");
   Integer userId = new Integer (1);
   Hashtable material = new Hashtable();
   material.put("excel.xls","0");
   material.put("word.doc","1");
   material.put("powerpoint.ppt","2");
  
   String petitionId = String.valueOf(_petitionId);

   System.out.println("petitionID:" + petitionId);
   m.put ("isValidUser",isValidUser);
   m.put ("userId",userId);
   m.put ("material",material);
   m.put ("photoURL", photoURL);
   m.put ("role", role);
   m.put ("petitionId",petitionId);
  
   return m;

   }

but Flash Media Server recibe undefined with the second Hashtable. Any 
suggestion?


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


[Flashcoders] [Fwd: AMFPHP Error]

2006-01-13 Thread David Serrano

Hi, anybody know why I have this error in NetDebugger console?

exceptionStack (Array):
0 (Object):
  code (Number): 256
  description (String): The file {ClkManager.php} exists and was 
included correctly but a class by that name could not be found in that 
file. Perhaps the class is misnames or you are running into a 
case-sensitivity issue, or the class exists but contains syntax errors.
  details (String): 
c:\wamp\www\seeuat\htdocs\amfphp\actions\ClassLoaderAction.php

  level (String): User Error
  line (Number): 114

My ClkManager.php is like this:

methodTable = array(
   "getSrvTime" => array(
  "access" => "remote",
  "description" => "es un test",
  "returns" => ""
   )
);
 }
 
 function getSrvTime(){

return date("G:i:s");
 }
}


?>

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