Re: [Flashcoders] How to achieve blob magnification effect?
Thanks guys for all of your help, sebastian, eric and zeh. This is really helpful, I'll get to work! Cheers Ali On 6 Aug 2008, at 22:55, Zeh Fernando wrote: Exactly. Just draw the graphics and use a displacement map filter to do it. Trying to do it all manually and with scale will be a huge pain and the distribution won't be the safe as a surface that changes in scale like the displacement map would do. The only trick is creating the grayscale displacement map correctly, which can be a bit daunting if you never done anything like it. Still, it's the only right thing to do for this effect. Zeh sebastian wrote: you could just use a bitmap distortion effect and draw the bars and numbers on the bitmap to make it easier on the code - though the quality of the numbers/bars may degrade as it distorts it. if you go for that solution, it would be very fast to code, just have the X position of the distortion gradient follow the mouses and voila, your done. Ali Drongo wrote: Hi there, I want to achieve the effect of seamless magnification a bit like the Mac OS dock but rather than having individual icons magnified I want to have a seamless magnification kind of like a blob as in this image: http://dl.getdropbox.com/u/65140/Picture1.png I think I could achieve this effect by using an onEnterFrame event and having an outline created by a moving circle with curves that are continually updated and the lines and numbers of the thermometer that scale according to mouse position but I'm not sure how to achieve the gradients on the glass. Is there an easier way of doing this? Thanks Ali ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] XML Document and Navigation
Hello Everyone, I run into a problem, something that probably a lot of people here knows how to solve. But after sitting for 2 days building nestes for loops, i can't see the light by the end of the tunnel :-) So, here is a problem: I have to build an xml based navigation, so far, quite simple and clear. Made it already a few times, but, now, this is a bit more complicated, because i got a much deeper nested sub levels, and i really don't know how to efficient traverse the document and build the navigation out of it :| The most complex navigation i made had 2 levels, so it wasn't really hard to imagine the code for this task: 2 for loops done the nav creation and that's it, but i got now, an undefined deep, and i don't know how to bite the code that will build the nav, that goes a bit deeper then one- sub level. Do you guys got any examples or thoughts on how to solve the task? Im pretty sure that i got an logical error in my approach, since i will use some nested for loops, but i can't think the formula since i don't know how deep each of the nodes goes, and this task gives me headaches. any kind of help and pinpointing to right direction would be VERY appreciated cheers, Patrick -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] XML Document and Navigation
Sounds like a job for recursion. Here's a tutorial I found: http://www.cs.umd.edu/class/spring2002/cmsc214/Tutorial/recursion.html I don't recommend the wikipedia page for recursion since it's very dense and isn't designed to teach the basic concept. -jonathan On Sun, Sep 7, 2008 at 11:52 AM, Patrick J. Jankun [EMAIL PROTECTED] wrote: Hello Everyone, I run into a problem, something that probably a lot of people here knows how to solve. But after sitting for 2 days building nestes for loops, i can't see the light by the end of the tunnel :-) So, here is a problem: I have to build an xml based navigation, so far, quite simple and clear. Made it already a few times, but, now, this is a bit more complicated, because i got a much deeper nested sub levels, and i really don't know how to efficient traverse the document and build the navigation out of it :| The most complex navigation i made had 2 levels, so it wasn't really hard to imagine the code for this task: 2 for loops done the nav creation and that's it, but i got now, an undefined deep, and i don't know how to bite the code that will build the nav, that goes a bit deeper then one-sub level. Do you guys got any examples or thoughts on how to solve the task? Im pretty sure that i got an logical error in my approach, since i will use some nested for loops, but i can't think the formula since i don't know how deep each of the nodes goes, and this task gives me headaches. any kind of help and pinpointing to right direction would be VERY appreciated cheers, Patrick -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Please help! quick bug fix needed, how to change Stage reference
Hi everyone, sorry to flood the list with requests, I will put a bit back soon ;) I have created SWF that loads another SWF into it. This loaded SWF contains a movie clip that behaves like a camera zooming round the stage. This works fine when I load the external SWF in. My problem is that now I need to have everything in one SWF but when I import the external SWF into the library the camera effect stops working. I think this is something to do with the reference to the stage though I have no idea how to get around this and the project is already overdue. If someone could help out with this soon I would be so grateful. Thanks, Ali Here's the code for the camera: function camControl():Void { trace(_parent._currentframe); parentColor.setTransform(camColor.getTransform()); var scaleX:Number = sX/this._width; var scaleY:Number = sY/this._height; _parent._x = cX-(this._x*scaleX); _parent._y = cY-(this._y*scaleY); _parent._xscale = 100*scaleX; _parent._yscale = 100*scaleY; } function resetStage():Void { var resetTrans:Object = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa: 100, ab:0}; parentColor.setTransform(resetTrans); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } // make frame invisible this._visible = false; // Capture stage parameters var oldMode:String = Stage.scaleMode; Stage.scaleMode = exactFit; var cX:Number = Stage.width/2; var cY:Number = Stage.height/2; var sX:Number = Stage.width; var sY:Number = Stage.height; Stage.scaleMode = oldMode; // create color instances for color // transforms (if any). var camColor:Color = new Color(this); var parentColor:Color = new Color(_parent); // Make the stage move so that the // v-cam is centered on the // viewport every frame this.onEnterFrame = camControl; // Make an explicit call to the camControl // function to make sure it also runs on the // first frame. camControl(); // If the v-cam is ever removed (unloaded) // the stage, return the stage to the default // settings. this.onUnload = resetStage; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] XML Document and Navigation
jonathan, thanks for the tip :) the intro is quite cool to read! cheers, Patrick On Aug 7, 2008, at 12:07 PM, jonathan howe wrote: Sounds like a job for recursion. Here's a tutorial I found: http://www.cs.umd.edu/class/spring2002/cmsc214/Tutorial/recursion.html I don't recommend the wikipedia page for recursion since it's very dense and isn't designed to teach the basic concept. -jonathan On Sun, Sep 7, 2008 at 11:52 AM, Patrick J. Jankun [EMAIL PROTECTED] wrote: Hello Everyone, I run into a problem, something that probably a lot of people here knows how to solve. But after sitting for 2 days building nestes for loops, i can't see the light by the end of the tunnel :-) So, here is a problem: I have to build an xml based navigation, so far, quite simple and clear. Made it already a few times, but, now, this is a bit more complicated, because i got a much deeper nested sub levels, and i really don't know how to efficient traverse the document and build the navigation out of it :| The most complex navigation i made had 2 levels, so it wasn't really hard to imagine the code for this task: 2 for loops done the nav creation and that's it, but i got now, an undefined deep, and i don't know how to bite the code that will build the nav, that goes a bit deeper then one-sub level. Do you guys got any examples or thoughts on how to solve the task? Im pretty sure that i got an logical error in my approach, since i will use some nested for loops, but i can't think the formula since i don't know how deep each of the nodes goes, and this task gives me headaches. any kind of help and pinpointing to right direction would be VERY appreciated cheers, Patrick -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- fancy skills to pay the bills www.jankun.org Phone: +43 660 96 969 - 01 web:jankun.org mail: p[at]jankun.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3 scrollpane external skin
Hi, Is there any way to skin a ScrollPane AS3 component with an external skin? External as we could do with the FLVPlayback? Romu www.soundstep.com http://www.soundstep.com/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] BUG: Channel.position returns out of range positions on looping Sounds
I don't know if this has been documented or not. I've never seen anyone report it. If you set a Sound to loop, it's channel.position property returns a number out of range of the Sound.length after it loops. The position property just keeps on incrementing beyond the length when you loop a sound. If you try to play a Sound from that out of range position, the Sound glitches out, because that position is invalid. Flash should not return a position to you that you cannot use. This all revolves around the fact that Sound has absolutely no way to pause right now. I don't know why Adobe did not give us a channel.pause() method, but they didn't. Because they didn't, this bug gets worse. The only way to pause and unpause a sound in Flash is to store the current position of the channel and call channel.stop, and when you unpause, you call sound.play(position). If the sound is looping, the position returned will eventually be higher than the length, which means the Sound glitches because you're passing an out of range position, a position, once again, that Flash returned to you as VALID. Wait, it gets worse. If you unpause a looping sound by passing its position, when it loops, it will loop from that position, not the beginning of the Sound. Do you see how this gets worse? There is no pause method, and without a pause method, there is no workaround for the above bug and issue except to manually loop a Sound by adding an event listener to the sound complete event (which can be unreliable), and calling play on it again and managing the looping manually, which undermines the loops argument of the Sound.play() method and requires a fair amount of code. We need a channel.pause(flag:Boolean) method. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] BUG: Channel.position returns out of range positions on looping Sounds
Correct me if I'm wrong because I'm not sure what you want to get done but... if you want to start the sound from the beginning when you unpause, this should be no problem. and if you want to start at the position you stopped at call a Sound.play and pass it the position value you grab when you pause and MOD it (%) with the length. Ash 2008/8/7 Steven Sacks [EMAIL PROTECTED] I don't know if this has been documented or not. I've never seen anyone report it. If you set a Sound to loop, it's channel.position property returns a number out of range of the Sound.length after it loops. The position property just keeps on incrementing beyond the length when you loop a sound. If you try to play a Sound from that out of range position, the Sound glitches out, because that position is invalid. Flash should not return a position to you that you cannot use. This all revolves around the fact that Sound has absolutely no way to pause right now. I don't know why Adobe did not give us a channel.pause() method, but they didn't. Because they didn't, this bug gets worse. The only way to pause and unpause a sound in Flash is to store the current position of the channel and call channel.stop, and when you unpause, you call sound.play(position). If the sound is looping, the position returned will eventually be higher than the length, which means the Sound glitches because you're passing an out of range position, a position, once again, that Flash returned to you as VALID. Wait, it gets worse. If you unpause a looping sound by passing its position, when it loops, it will loop from that position, not the beginning of the Sound. Do you see how this gets worse? There is no pause method, and without a pause method, there is no workaround for the above bug and issue except to manually loop a Sound by adding an event listener to the sound complete event (which can be unreliable), and calling play on it again and managing the looping manually, which undermines the loops argument of the Sound.play() method and requires a fair amount of code. We need a channel.pause(flag:Boolean) method. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- The Random Lines My online portfolio www.therandomlines.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] BUG: Channel.position returns out of range positions on looping Sounds
Modulus works, too, but that doesn't solve the issue that looping sounds return out of range values, nor does it fix the issue that channel doesn't have a proper pause() method like NetStream does. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Please help! quick bug fix needed, how to change Stage reference
If you are loosing reference to the stage you can just pass it as a parameter to the new object you are instatiating. You can also set it as a variable that all objects have access. Singleton could be a good idea. On Thu, Aug 7, 2008 at 5:28 AM, Ali Drongo [EMAIL PROTECTED] wrote: Hi everyone, sorry to flood the list with requests, I will put a bit back soon ;) I have created SWF that loads another SWF into it. This loaded SWF contains a movie clip that behaves like a camera zooming round the stage. This works fine when I load the external SWF in. My problem is that now I need to have everything in one SWF but when I import the external SWF into the library the camera effect stops working. I think this is something to do with the reference to the stage though I have no idea how to get around this and the project is already overdue. If someone could help out with this soon I would be so grateful. Thanks, Ali Here's the code for the camera: function camControl():Void { trace(_parent._currentframe); parentColor.setTransform(camColor.getTransform()); var scaleX:Number = sX/this._width; var scaleY:Number = sY/this._height; _parent._x = cX-(this._x*scaleX); _parent._y = cY-(this._y*scaleY); _parent._xscale = 100*scaleX; _parent._yscale = 100*scaleY; } function resetStage():Void { var resetTrans:Object = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0}; parentColor.setTransform(resetTrans); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } // make frame invisible this._visible = false; // Capture stage parameters var oldMode:String = Stage.scaleMode; Stage.scaleMode = exactFit; var cX:Number = Stage.width/2; var cY:Number = Stage.height/2; var sX:Number = Stage.width; var sY:Number = Stage.height; Stage.scaleMode = oldMode; // create color instances for color // transforms (if any). var camColor:Color = new Color(this); var parentColor:Color = new Color(_parent); // Make the stage move so that the // v-cam is centered on the // viewport every frame this.onEnterFrame = camControl; // Make an explicit call to the camControl // function to make sure it also runs on the // first frame. camControl(); // If the v-cam is ever removed (unloaded) // the stage, return the stage to the default // settings. this.onUnload = resetStage; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- ...helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Microphone capture and saving with PHP or ASP
Hi cool list, Is it possible to capture the microphone of a computer and save/send it to a serverside language (PHP/ASP) without Flash Media Server? Convert it to a ByteArray and sending raw data? Quick searches tell me that it isn't possible without Flash Media Server... Anyone has experience with this? thnx! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] BUG: Channel.position returns out of range positions on looping Sounds
Can't argue with that. It seems really odd that you call stop on the channel, destroy it, and then call play on the sound and receive a new channel... I don't get it. 2008/8/7 Steven Sacks [EMAIL PROTECTED] Modulus works, too, but that doesn't solve the issue that looping sounds return out of range values, nor does it fix the issue that channel doesn't have a proper pause() method like NetStream does. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- The Random Lines My online portfolio www.therandomlines.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Binary Sockets
Hi, (sorry if this is a repeat, I thought I sent the last mail from the wrong account). I have been doing some work with Binary Sockets and running into a few problems with speed. I don't think it's a Flash problem, but trying to convince the server programmer is rather difficult... Are there any applications that I can run as pseudo servers to spew out lots of data which I can use to benchmark / test my implementation? The other question regards UDP - from experiments I am guessing that FP9 does not support UDP sockets. Someone mentioned that FP10 may do, but I can't find much info on this. Does anyone have any clues? Thanks Glen -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Soundmixer.computeSpectrum and Loaded Swfs
I am loading in a few swfs, each with video embedded on the timeline. I am trying to use SoundMixer.computeSpectrum to make a visualization but it isn't getting any values. I can control the loaded swfs volume with soundTransforms and SoundMixer.areSoundsInaccessible() is reurning false. No crossdomain/security issues either. Any ideas? Here is my SoundProcessor class I am working with that has worked with loaded mp3s in the past. package { import flash.display.Sprite; import flash.media.Sound; import flash.media.SoundMixer; import flash.utils.ByteArray; import flash.utils.Timer; import flash.events.Event; import flash.events.TimerEvent; public class SoundProcessor extends Sprite { // Settings private var lineThickness:Number = .5; public var lineColor:Number = 0xFF; private var circleSize:Number = 50; private var scaleOnBeat:Number = 1.1; public var reactToBeat:Number = .1; // private var music:Sound = new Sound; private var soundBytes:ByteArray= new ByteArray(); public var timer:Timer; public var volume:Number; public var pX:Number; public var pY:Number; function SoundProcessor(width:uint=200, height:uint=200) { this.width = width; this.height = height; x = width/2; y = height/2; this.addEventListener(Event.ENTER_FRAME, processSound); } public function processSound(e:Event):void { //trace(processSound); SoundMixer.computeSpectrum(soundBytes, true, 0); graphics.clear(); graphics.moveTo(0, -circleSize); graphics.lineStyle(lineThickness, lineColor); volume = 0; for (var i:uint = 0; i 512; i++) { var lev:Number = soundBytes.readFloat(); if(lev!=0) { trace(lev); } volume += lev; var a:uint = i; if (i 256) { a += 256; } if (i == 256) { graphics.moveTo(0, -circleSize); } pX = -Math.sin(i/256*Math.PI)*circleSize*(lev+1); pY = Math.cos(a/256*Math.PI)*circleSize*(lev+1); graphics.lineTo(pX, pY); } if (volume reactToBeat) { scaleX = scaleY = scaleOnBeat; } else { scaleX = scaleY = 1; } dispatchEvent(new Event(onProcessSound)); } } } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Microphone capture and saving with PHP or ASP
Don't think you can convert the microphone data into ByteArray. Looks like this feature won't make it into Flash Player 10: http://www.kaourantin.net/2008/05/adobe-is-making-some-noise-part-3.html From post: What's missing? Unfortunately some features did not make it into Flash Player 10: Extracting audio data from a microphone and extracting audio from a NetStream object. We are aware that both features are highly desirable, but for various reasons it was not possible to make this happen in this release. On Thu, Aug 7, 2008 at 12:28 PM, Sander Schuurman [EMAIL PROTECTED] wrote: Hi cool list, Is it possible to capture the microphone of a computer and save/send it to a serverside language (PHP/ASP) without Flash Media Server? Convert it to a ByteArray and sending raw data? Quick searches tell me that it isn't possible without Flash Media Server... Anyone has experience with this? thnx! ___ 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] select non-default microphone in as3+FP9
Hi all, I have an app where a stream (video+sound) is recorded on user machine and send to FMS. Previously this ap was written in AS1 for Flash Player 6, And my is AS3 for Flash Player 9. Everything works ok,,, until they want to use DV camera instead of webcam :-). So: If they use webcam, they can stream both video and sound If they use DV camera (connected to Mac), there is no sound. I tried to trace microphone properties on screen, and it shows that *default* Built In Microphone is used instead of camera. Even if they select it in settings panel. They select it... but again default one is traced. The worst thing is that old app works w/o any problem here, selecting DV camera's microphone fine. And I'm not a Mac user. What am I missing? Code is simple: // AS1 mic = Microphone.get(); //AS3 mic = Microphone.getMicrophone(); Any help is appreciated. -- -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Binary Sockets
dear Glen, there are some discussion about UPD sockets in FP10 in nui group forum: http://nuigroup.com/forums/viewthread/1969/ UPD sockes woud be very important to the community integrating Flash with other softwares, because OSC protocol is based on UDP. The current alternative (using flosc to convert OSC messages to XML, and using a XML Socket in flash) is slow, and a binary socked for communication with PureData, TouchLib, EyesWeb, MaxMsp and other softwares would improve speed a lot. best, andrei On Thu, Aug 7, 2008 at 2:58 PM, Glen Pike [EMAIL PROTECTED] wrote: Hi, (sorry if this is a repeat, I thought I sent the last mail from the wrong account). I have been doing some work with Binary Sockets and running into a few problems with speed. I don't think it's a Flash problem, but trying to convince the server programmer is rather difficult... Are there any applications that I can run as pseudo servers to spew out lots of data which I can use to benchmark / test my implementation? The other question regards UDP - from experiments I am guessing that FP9 does not support UDP sockets. Someone mentioned that FP10 may do, but I can't find much info on this. Does anyone have any clues? Thanks Glen -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ 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] Binary Sockets
excuse me, the correct thread is this one: http://nuigroup.com/forums/viewthread/2137/ and check this link, too: http://justin.everett-church.com/index.php/2008/05/16/rtmfp-in-flash-player-10-beta/ andrei On Thu, Aug 7, 2008 at 8:02 PM, Andrei Thomaz [EMAIL PROTECTED]wrote: dear Glen, there are some discussion about UPD sockets in FP10 in nui group forum: http://nuigroup.com/forums/viewthread/1969/ UPD sockes woud be very important to the community integrating Flash with other softwares, because OSC protocol is based on UDP. The current alternative (using flosc to convert OSC messages to XML, and using a XML Socket in flash) is slow, and a binary socked for communication with PureData, TouchLib, EyesWeb, MaxMsp and other softwares would improve speed a lot. best, andrei On Thu, Aug 7, 2008 at 2:58 PM, Glen Pike [EMAIL PROTECTED]wrote: Hi, (sorry if this is a repeat, I thought I sent the last mail from the wrong account). I have been doing some work with Binary Sockets and running into a few problems with speed. I don't think it's a Flash problem, but trying to convince the server programmer is rather difficult... Are there any applications that I can run as pseudo servers to spew out lots of data which I can use to benchmark / test my implementation? The other question regards UDP - from experiments I am guessing that FP9 does not support UDP sockets. Someone mentioned that FP10 may do, but I can't find much info on this. Does anyone have any clues? Thanks Glen -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ 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] Binary Sockets
Hi, Thanks for the response - I am not 100%, but I have been reading around on this and it seems that Adobe have put the kybosh on people using UDP sockets if you read Tinic's response in the FP10 forums: http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72catid=675threadid=1373276highlight_key=ykeyword1=udp The UDP protocol is not a supported user accessible feature in Flash Player 10. Sounds like it's proprietary bx as usual then. That's a pity, it would have been nice to connect to our own UDP server in FP, but looks like we will have to be writing UDP - TCP proxies... Now playing with socket servers in PHP to benchmark stuff - writing, but not reading very well (seems that you can't open close the socket on each loop, but have to keep it open otherwise flash throws a wobbly). Thanks Glen Andrei Thomaz wrote: excuse me, the correct thread is this one: http://nuigroup.com/forums/viewthread/2137/ and check this link, too: http://justin.everett-church.com/index.php/2008/05/16/rtmfp-in-flash-player-10-beta/ andrei On Thu, Aug 7, 2008 at 8:02 PM, Andrei Thomaz [EMAIL PROTECTED]wrote: dear Glen, there are some discussion about UPD sockets in FP10 in nui group forum: http://nuigroup.com/forums/viewthread/1969/ UPD sockes woud be very important to the community integrating Flash with other softwares, because OSC protocol is based on UDP. The current alternative (using flosc to convert OSC messages to XML, and using a XML Socket in flash) is slow, and a binary socked for communication with PureData, TouchLib, EyesWeb, MaxMsp and other softwares would improve speed a lot. best, andrei On Thu, Aug 7, 2008 at 2:58 PM, Glen Pike [EMAIL PROTECTED]wrote: Hi, (sorry if this is a repeat, I thought I sent the last mail from the wrong account). I have been doing some work with Binary Sockets and running into a few problems with speed. I don't think it's a Flash problem, but trying to convince the server programmer is rather difficult... Are there any applications that I can run as pseudo servers to spew out lots of data which I can use to benchmark / test my implementation? The other question regards UDP - from experiments I am guessing that FP9 does not support UDP sockets. Someone mentioned that FP10 may do, but I can't find much info on this. Does anyone have any clues? Thanks Glen -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ 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 -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Binary Sockets
please, if you create or find a solution to receiving UDP messages in flash, alternative to flosc / XML socket, post it in NUI group forum. The use of a XML socket is one of the bottlenecks in the integration between flash and TouchLib and the other softwares I quoted. best, andrei On Thu, Aug 7, 2008 at 8:18 PM, Glen Pike [EMAIL PROTECTED] wrote: Hi, Thanks for the response - I am not 100%, but I have been reading around on this and it seems that Adobe have put the kybosh on people using UDP sockets if you read Tinic's response in the FP10 forums: http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72catid=675threadid=1373276highlight_key=ykeyword1=udp The UDP protocol is not a supported user accessible feature in Flash Player 10. Sounds like it's proprietary bx as usual then. That's a pity, it would have been nice to connect to our own UDP server in FP, but looks like we will have to be writing UDP - TCP proxies... Now playing with socket servers in PHP to benchmark stuff - writing, but not reading very well (seems that you can't open close the socket on each loop, but have to keep it open otherwise flash throws a wobbly). Thanks Glen Andrei Thomaz wrote: excuse me, the correct thread is this one: http://nuigroup.com/forums/viewthread/2137/ and check this link, too: http://justin.everett-church.com/index.php/2008/05/16/rtmfp-in-flash-player-10-beta/ andrei On Thu, Aug 7, 2008 at 8:02 PM, Andrei Thomaz [EMAIL PROTECTED] wrote: dear Glen, there are some discussion about UPD sockets in FP10 in nui group forum: http://nuigroup.com/forums/viewthread/1969/ UPD sockes woud be very important to the community integrating Flash with other softwares, because OSC protocol is based on UDP. The current alternative (using flosc to convert OSC messages to XML, and using a XML Socket in flash) is slow, and a binary socked for communication with PureData, TouchLib, EyesWeb, MaxMsp and other softwares would improve speed a lot. best, andrei On Thu, Aug 7, 2008 at 2:58 PM, Glen Pike [EMAIL PROTECTED] wrote: Hi, (sorry if this is a repeat, I thought I sent the last mail from the wrong account). I have been doing some work with Binary Sockets and running into a few problems with speed. I don't think it's a Flash problem, but trying to convince the server programmer is rather difficult... Are there any applications that I can run as pseudo servers to spew out lots of data which I can use to benchmark / test my implementation? The other question regards UDP - from experiments I am guessing that FP9 does not support UDP sockets. Someone mentioned that FP10 may do, but I can't find much info on this. Does anyone have any clues? Thanks Glen -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ 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 -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ 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] Binary Sockets
Hi, Thanks for that, I will keep an eye on the Flosc / Nui stuff because it is in my arena, but I am not holding my breath for Flash UDP at the moment... If I find some nice fast ways in Flash, I will see if I can help out the Nui group - depends on my boss though :( Glen Andrei Thomaz wrote: please, if you create or find a solution to receiving UDP messages in flash, alternative to flosc / XML socket, post it in NUI group forum. The use of a XML socket is one of the bottlenecks in the integration between flash and TouchLib and the other softwares I quoted. best, andrei On Thu, Aug 7, 2008 at 8:18 PM, Glen Pike [EMAIL PROTECTED] wrote: Hi, Thanks for the response - I am not 100%, but I have been reading around on this and it seems that Adobe have put the kybosh on people using UDP sockets if you read Tinic's response in the FP10 forums: http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72catid=675threadid=1373276highlight_key=ykeyword1=udp The UDP protocol is not a supported user accessible feature in Flash Player 10. Sounds like it's proprietary bx as usual then. That's a pity, it would have been nice to connect to our own UDP server in FP, but looks like we will have to be writing UDP - TCP proxies... Now playing with socket servers in PHP to benchmark stuff - writing, but not reading very well (seems that you can't open close the socket on each loop, but have to keep it open otherwise flash throws a wobbly). Thanks Glen Andrei Thomaz wrote: excuse me, the correct thread is this one: http://nuigroup.com/forums/viewthread/2137/ and check this link, too: http://justin.everett-church.com/index.php/2008/05/16/rtmfp-in-flash-player-10-beta/ andrei On Thu, Aug 7, 2008 at 8:02 PM, Andrei Thomaz [EMAIL PROTECTED] wrote: dear Glen, there are some discussion about UPD sockets in FP10 in nui group forum: http://nuigroup.com/forums/viewthread/1969/ UPD sockes woud be very important to the community integrating Flash with other softwares, because OSC protocol is based on UDP. The current alternative (using flosc to convert OSC messages to XML, and using a XML Socket in flash) is slow, and a binary socked for communication with PureData, TouchLib, EyesWeb, MaxMsp and other softwares would improve speed a lot. best, andrei On Thu, Aug 7, 2008 at 2:58 PM, Glen Pike [EMAIL PROTECTED] wrote: Hi, (sorry if this is a repeat, I thought I sent the last mail from the wrong account). I have been doing some work with Binary Sockets and running into a few problems with speed. I don't think it's a Flash problem, but trying to convince the server programmer is rather difficult... Are there any applications that I can run as pseudo servers to spew out lots of data which I can use to benchmark / test my implementation? The other question regards UDP - from experiments I am guessing that FP9 does not support UDP sockets. Someone mentioned that FP10 may do, but I can't find much info on this. Does anyone have any clues? Thanks Glen -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ 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 -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ 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 -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Using Copy Motion to Actionscript 3.0 Document Class
Ok, I'm a little slow to adopt all of the nifty cool features of CS3 -- just now taking advantage of Copy Motion to Actionscript 3.0 where it gens the Animator AS3 code for you. Nice. It works if you place the code on the timeline/frame. Fantastic. But to really put this to use, I need it to work in a class... So, I created a simple fla, with a document class (I know it's wired up correctly, with a trace(crack) in the constructor, which is coming back. Added the public var for the clip on the stage mcTest -- and just under the trace(crack), added mcText.alpha = 1; (it's alpha 0 on the stage)... and that worked... so I know the doc class is wired to the stage instance. (BTW: AS3 settings, Auto declare stage instances : unchecked) so we're all good Now the fun part: paste the same Animator code into the constructor, verifying the correct instance name on the stage -- (making sure to execute the play method... duh) and the animation *does not play*. Then I stumbled on this from : http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/motion/Animator.html If you plan to call methods of the Animator class within a function, declare the Animator instance outside of the function so the scope of the object is not restricted to the function itself. If you declare the instance within a function, Flash Player deletes the Animator instance at the end of the function as part of Flash Player's routine garbage collection and the target object will not animate. So that's it! The animator instance must be a global member to the class... and presto! It works. Hope this helps others... ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3 frustration - help get component working
So I've been trying to learn AS3, while working on a new project using Gaia Framework (http://www.gaiaflashframework.com). The component I am trying to get working is a papervision powered 3D Carousel (http://www.afcomponents.com/components/3d_carousel_as3/) It seems to work fine when opening the example FLA's that came with the component, but I cannot get it to work in my project files (in the gaia framework) I have the component on the first frame. It's instance name is myCarousel - I declare this in my class with public var myCarousel:CarouselEvent; Now I get a list of all these errors (for all the carousel properties - which are all defined in the parameters on the component on the stage): 1119: Access of possibly undefined property animationStyle through a reference with static type com.afcomponents.events:CarouselEvent. Not sure why it thinks all the parameters of the component are undefined properties. How do I make flash recognize them? Should I add the component to the stage with code? How do I do this? And if I have to do that, how do I set those parameters with code? Sorry, I'm new to AS3 and can't seem to figure this out! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Another Sound Bug - transform.pan
var snd:Sound = new Sound(); snd.load(new URLRequest(assets/sample.mp3)); var ch:SoundChannel = snd.play(); var st:SoundTransform = ch.soundTransform; st.pan = 1; ch.soundTransform = st; trace(st.pan); trace(ch.soundTransform.pan); st.pan = -1; ch.soundTransform = st; trace(st.pan); trace(ch.soundTransform.pan); Output: 1 1 -1.0004 -0.98809998 You can CLEARLY see me set the pan to 1 and then -1. But, if you notice, the -1 pan is a bit below -1 on the transform, but when you apply the transform to the channel, it goes above -1. I've got a sound mixer than I can set the volume on left and right individually and I hear the sound on the right when it's at -0.988, but I cannot hear the sound on the left when it's at 1. How many more bugs are there in the Sound class? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: Another Sound Bug - transform.pan
Update: Unfortunately, it looks like even if you set the pan all the way in one direction or the other, it doesn't actually work. You can still hear the sound coming out of the side that it is panned away from. So, I guess this bug is moot since pan doesn't actually work properly in the first place. Jeez. The more I use the Sound class, the more I'm unimpressed with Adobe's quality control. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 frustration - help get component working
The issue isn't Gaia. If you try to load that component living in a child swf into a parent swf it doesn't work. Many component authors never take into account the extremely common use case of loading their component into another swf. Many PV3D components I have seen suffer from this exact problem. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re: Another Sound Bug - transform.pan
Have you ever used Captivate :S On Thu, Aug 7, 2008 at 8:08 PM, Steven Sacks [EMAIL PROTECTED]wrote: Update: Unfortunately, it looks like even if you set the pan all the way in one direction or the other, it doesn't actually work. You can still hear the sound coming out of the side that it is panned away from. So, I guess this bug is moot since pan doesn't actually work properly in the first place. Jeez. The more I use the Sound class, the more I'm unimpressed with Adobe's quality control. ___ 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] AS3 frustration - help get component working
Are you sure that the carousel is of type CarouselEvent? Also, make sure everything is consistent with whether you have autodeclare instances turned on or off... If you are new to AS3 and are working with Flash CS3 I think it's valuable to know about the effects of this option. File-Publish Settings-Flash-Settings...-Automatically Declare Stage Instances H On Thu, Aug 7, 2008 at 8:11 PM, Steven Sacks [EMAIL PROTECTED]wrote: The issue isn't Gaia. If you try to load that component living in a child swf into a parent swf it doesn't work. Many component authors never take into account the extremely common use case of loading their component into another swf. Many PV3D components I have seen suffer from this exact problem. ___ 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] BUG: channel.position doesn't work with mp3s below 128kbps
Man I just keep finding more and more bugs with Sound. This one is actually really bad because it has no workaround, unlike the others. If you have an mp3 file that is less than 128kbps and you get its channel.position at a particular point in time and try to play from that position it jumps ahead in the file. The amount it jumps ahead is based on how far away it is from 128kbps (a 56kbps file will jump more than a 64kbps one). But wait, it gets worse. Even though it has jumped ahead in the track, the channel.position returns where it's supposed to be, not where it actually is!! That's right!! channel.position says it's at 5000ms but it's actually somewhere around 8000ms, etc. and so on. I'm updating the position in a TextField in an ENTER_FRAME listener. Wow. I mean, just, wow. 128kbps and up works just fine. Anything less and you've got a bug. I've discovered so many bugs in the Sound class in the last 12 hours, it's kind of disheartening. I'm losing faith in the Flash player team and in Adobe for letting this kind of stuff get through QA. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] BUG: channel.position doesn't work with mp3s below 128kbps
The only workaround I can think of, is having a server-side application (mencoder, lame...) to convert the bitrate to 128kbps Of course that increases cpu and bandwidth usage on the server, so it may not be an option either. And just when AS3 first came out, I thought I'd never see these peculiar features ever again. Yeah, sweet illusion... I've never dug that much in the Sound class, but I always thought there was something creepy about it. Anyway, hope this is your last bug (at least for today) ;) On Thu, Aug 7, 2008 at 10:53 PM, Steven Sacks [EMAIL PROTECTED] wrote: Man I just keep finding more and more bugs with Sound. This one is actually really bad because it has no workaround, unlike the others. If you have an mp3 file that is less than 128kbps and you get its channel.position at a particular point in time and try to play from that position it jumps ahead in the file. The amount it jumps ahead is based on how far away it is from 128kbps (a 56kbps file will jump more than a 64kbps one). But wait, it gets worse. Even though it has jumped ahead in the track, the channel.position returns where it's supposed to be, not where it actually is!! That's right!! channel.position says it's at 5000ms but it's actually somewhere around 8000ms, etc. and so on. I'm updating the position in a TextField in an ENTER_FRAME listener. Wow. I mean, just, wow. 128kbps and up works just fine. Anything less and you've got a bug. I've discovered so many bugs in the Sound class in the last 12 hours, it's kind of disheartening. I'm losing faith in the Flash player team and in Adobe for letting this kind of stuff get through QA. ___ 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