[Flashcoders] [offtopic] XMas spam
A little question do you guys also get a stack of spam e-mails since XMas? Since Xmas I am getting a shitload of fake returned mails the junk mailing counter is already at 1k per hour. Really annoying. Anyone? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] NetStream - bytesTotal on https outputs wrong value
Hi fellow flashcoders. I'm currently working on a project where our preview area is on an https address. For some reason when I try to access the netstream.bytesTotal property the returned value is the same as the netstream.bytesLoaded (e.g if the bytesLoaded returns 6000 the bytesTotal returns 6000) When I upload my testfile to an http-area I get the correct values from both bytesTotal and bytesLoaded. It's not really important for this project since It's just the preview area that's on a https but It sure would be interesting to find out why this problem appears. // Joakim . Joakim Carlgren Fröding Flash Developer Framfab Sverige AB Lilla Bommen 1 SE-411 04 Gothenburg SWEDEN E-mail: [EMAIL PROTECTED] Direct: +46 31 760 05 15 Mobile: +46 709 73 79 15 Phone: +46 31 760 00 00 Fax:+46 31 760 05 50 Web:www.framfab.com . ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] NetStream - bytesTotal on https outputs wrong value
yes it happens in local, its a bug - Original Message - From: Joakim Carlgren [EMAIL PROTECTED] To: Flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 28, 2005 1:29 PM Subject: [Flashcoders] NetStream - bytesTotal on https outputs wrong value Hi fellow flashcoders. I'm currently working on a project where our preview area is on an https address. For some reason when I try to access the netstream.bytesTotal property the returned value is the same as the netstream.bytesLoaded (e.g if the bytesLoaded returns 6000 the bytesTotal returns 6000) When I upload my testfile to an http-area I get the correct values from both bytesTotal and bytesLoaded. It's not really important for this project since It's just the preview area that's on a https but It sure would be interesting to find out why this problem appears. // Joakim . Joakim Carlgren Fröding Flash Developer Framfab Sverige AB Lilla Bommen 1 SE-411 04 Gothenburg SWEDEN E-mail: [EMAIL PROTECTED] Direct: +46 31 760 05 15 Mobile: +46 709 73 79 15 Phone: +46 31 760 00 00 Fax:+46 31 760 05 50 Web:www.framfab.com . ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] scribbling an oval
This is what I'm trying to accomplish: http://webkitchen.be/downloads/ scribble.jpg Thanks for your help, Serge Can you give us an example of the visual effect you're looking for? The simplest I can think of is a kind of 'ribbon' shape, like an oval but with two ends crossing over - this is a fairly classic way to show the kind of ring someone might draw around eg. a job ad. That wouldn't be too hard to describe mathematically. Danny ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] NetStream - bytesTotal on https outputs wrong value
I wouldn't consider it just a local problem since it occurs to me when I browse to the https adress. Or what exactly do you mean by local, do I misunderstand you? // joakim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fabio Sonnati Sent: den 28 december 2005 13:40 To: Flashcoders mailing list Subject: Re: [Flashcoders] NetStream - bytesTotal on https outputs wrong value yes it happens in local, its a bug - Original Message - From: Joakim Carlgren [EMAIL PROTECTED] To: Flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 28, 2005 1:29 PM Subject: [Flashcoders] NetStream - bytesTotal on https outputs wrong value Hi fellow flashcoders. I'm currently working on a project where our preview area is on an https address. For some reason when I try to access the netstream.bytesTotal property the returned value is the same as the netstream.bytesLoaded (e.g if the bytesLoaded returns 6000 the bytesTotal returns 6000) When I upload my testfile to an http-area I get the correct values from both bytesTotal and bytesLoaded. It's not really important for this project since It's just the preview area that's on a https but It sure would be interesting to find out why this problem appears. // Joakim . Joakim Carlgren Fröding Flash Developer Framfab Sverige AB Lilla Bommen 1 SE-411 04 Gothenburg SWEDEN E-mail: [EMAIL PROTECTED] Direct: +46 31 760 05 15 Mobile: +46 709 73 79 15 Phone: +46 31 760 00 00 Fax:+46 31 760 05 50 Web:www.framfab.com . ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] scribbling an oval
This is what I'm trying to accomplish: http://webkitchen.be/downloads/ scribble.jpg Thanks for your help, Serge Okay. In that case I think you're best off drawing an ordinary ellipse (or possibly a rounded rectangle) but adding some error factor. If you're starting from an ellipse, here's what I'd do: set a and b to the half-axes of the ellipse (I'm assuming the centre is (0,0)) set errorFactor to some small value set wobbliness to some very small value for q varying between 0 and some angle greater than 2*pi (yours seem to go round about three times, so q would go up to about 6*pi) set truePoint to (a*sin(q), b*cos(q)) set normal to (-a*cos(q), b*sin(q)) draw the point (truePoint + errorFactor * normal) set errorFactor to errorFactor + some number between -wobbliness and wobbliness I'll test it out, but that sounds like the right kind of idea to me. Danny ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] aseditor discussion
Jim, Thanks for the great overview. I really appreciate it. -- Bill Napier Design Coordinator West Virginia Development Office 1900 Kanawha Boulevard, East Charleston, WV 25305-0311 800-982-3386 (toll free) 304-558-0078 x37 (p) 304-558-5053 (f) bnapier at wvdo.org http://www.wvdo.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] scribbling an oval
Right... That does make sense except for the draw the point... Shouldn't that have an X and Y coordinate? It does: it's the sum of two other points with an x and y coordinate. I'm mostly a Director person so these vector sums are done natively: Flash doesn't do anything so useful. But hopefully this should work. I've just tested it in Lingo, and it works pretty well. If it's any help, I've attached the code here. Translating to actionScript shouldn't be too hard. on drawWobble a, b, wobbliness if voidp(b) then b=random(100)+10 if voidP(a) then a=random(100)+10 if voidP(wobbliness) then wobbliness=(a*a+b*b)/1000.0 -- seems to give pretty good results pts=[] errorFactor=0 mx=random(100)+50 repeat with i=0 to mx q=i*8*pi/100 -- average of four loops p=point(a*sin(q), b*cos(q)) norm=point(b*sin(q) , a*cos(q)) norm=norm/sqrt(norm[1]*norm[1]+norm[2]*norm[2]) -- make it unit length pts.add(p+norm*errorFactor) errorFactor=errorFactor+random(100)*wobbliness*0.01-wobbliness/2 if abs(errorFactor)10 then errorFactor=errorFactor*0.95 -- hold it in if deviating too far end repeat -- add drawing code here end HTH Danny ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] scribbling an oval
Are you trying to position an animated movieClip Serge, or use the drawing API to draw scribbles? Because it sound like the suggestions you're getting are the latter solution. S On 28 Dec 2005, at 12:55, Serge Jespers wrote: Hey guys, I'm kinda stuck here... so any help is appreciated. I'm on this project that has a menu that when you mouse over the currently selected menu item gets scribbled around. Since this is a variable menu, I thought I'd make that oval- scribbling dynamic and random. So now I'm trying to make a function that returns the next (random) coordinate for my oval shaped scribble but that's where I got stuck. I'm throwing the max width and max height to this function and it should just return the next coordinate and end up at a specified amount of time as a scribbled oval. Anyone have any suggestions? I really wish I paid more attention in math class now... Thanks guys, Serge ___ 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] NetStream - bytesTotal on https outputs wrong value
No, excuse me, I misunderstand you. The problem happens *also* if you load a FLV from a local area network (or the local HD). Now I know from you that it happens in HTTPS, too. I have not found a workaraound, yet FS - Original Message - From: Joakim Carlgren [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 28, 2005 2:00 PM Subject: RE: [Flashcoders] NetStream - bytesTotal on https outputs wrong value I wouldn't consider it just a local problem since it occurs to me when I browse to the https adress. Or what exactly do you mean by local, do I misunderstand you? // joakim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fabio Sonnati Sent: den 28 december 2005 13:40 To: Flashcoders mailing list Subject: Re: [Flashcoders] NetStream - bytesTotal on https outputs wrong value yes it happens in local, its a bug - Original Message - From: Joakim Carlgren [EMAIL PROTECTED] To: Flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 28, 2005 1:29 PM Subject: [Flashcoders] NetStream - bytesTotal on https outputs wrong value Hi fellow flashcoders. I'm currently working on a project where our preview area is on an https address. For some reason when I try to access the netstream.bytesTotal property the returned value is the same as the netstream.bytesLoaded (e.g if the bytesLoaded returns 6000 the bytesTotal returns 6000) When I upload my testfile to an http-area I get the correct values from both bytesTotal and bytesLoaded. It's not really important for this project since It's just the preview area that's on a https but It sure would be interesting to find out why this problem appears. // Joakim . Joakim Carlgren Fröding Flash Developer Framfab Sverige AB Lilla Bommen 1 SE-411 04 Gothenburg SWEDEN E-mail: [EMAIL PROTECTED] Direct: +46 31 760 05 15 Mobile: +46 709 73 79 15 Phone: +46 31 760 00 00 Fax:+46 31 760 05 50 Web:www.framfab.com . ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ 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] scribbling an oval
One final thought and then I'll shut up. If you want to make your scribble smoother, you can make the randomness 'second-order'. That is, instead of randomising the change to the error factor, you could randomise the *rate* of change of the error factor. So you now keep track of two values, errorFactor and wobbliness. At each step, you add wobbliness to errorFactor, then change wobbliness by some random amount between -wobblewobbliness and wobblewobbliness :). Another advantage of this is that it gives you greater control of what happens at the extremes: if errorFactor gets greater than a certain amount you can clamp wobbliness in the right direction for a few steps until the factor gets within reasonable bounds again. Danny ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] scribbling an oval
It's supposed to be the drawing API ;-) Positioning an animated MC would be the easy way and I always seem to go for the not so easy way ;-) I got this far (ahum) http://webkitchen.be/downloads/scribble.swf And now I need a mathematician to fix the coordinates :p Obviously, this is totally wrong ;-) but hey... at least I'm trying here ;-) Oh man... I can totally see my math-teacher laughing his ass off right now... makeOvalCoordinates = function (w, h, p) { if (p=1) { nx = w/2; ny = h/2; } else { if (nx= -w/2){ nx -= 10; } else { nx+=10; } if (ny=-h/2){ ny -= 10; } else { ny+=10; } } return {x:nx, y:ny}; }; Are you trying to position an animated movieClip Serge, or use the drawing API to draw scribbles? Because it sound like the suggestions you're getting are the latter solution. S ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] No Key.isDown() method in AS3?
I was going over the AS3 documentation and I've noticed that the isDown() property was removed for security reasons from the new Keyboard class. Is there another way of doing the same thing then? Are we now forced to use the event-driven onKeyDown()? Here's the page where I'm reading: http://livedocs.macromedia.com/labs/1/flex/langref/migration.html If this is correct then it sounds like a real pain and possible reason for not using Flash altogether. I'm currently using isDown() for all sorts of game like applications including some which rely on several keys being pressed at once. Does anyone know whether the new KeyboardEvent object will let you do this and if not how do we go about telling Adobe that there's going to be a problem. Cheers Joe ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] [offtopic] XMas spam
Yeah man, same here, although not as many. Open proxy servers = fair game during the holidays. - Original Message - From: Weyert de Boer [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 28, 2005 6:19 AM Subject: [Flashcoders] [offtopic] XMas spam A little question do you guys also get a stack of spam e-mails since XMas? Since Xmas I am getting a shitload of fake returned mails the junk mailing counter is already at 1k per hour. Really annoying. Anyone? ___ 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] scribbling an oval
The sample you originally posted is not accessible anymore, so my take on this might be off-base: http://www.motiondraw.com/md/as_samples/t/CatmullRomSpline/scribbledOval.htm l This approach is more about 'scribbling' than Math - First several ovals are manually drawn with this tool http://www.motiondraw.com/md/as_samples/t/LineGeneralization/demo.html Now each time the mouse is clicked one of the pre-recorded paths is selected, some random is applied to its coordinates, it is smoothed again and finally it is rendered as Catmull Rom spline: http://www.motiondraw.com/md/as_samples/t/CatmullRomSpline/tween.html Post again if you need more details/code! HTH -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Serge Jespers Sent: Wednesday, December 28, 2005 2:44 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] scribbling an oval It's supposed to be the drawing API ;-) Positioning an animated MC would be the easy way and I always seem to go for the not so easy way ;-) I got this far (ahum) http://webkitchen.be/downloads/scribble.swf And now I need a mathematician to fix the coordinates :p Obviously, this is totally wrong ;-) but hey... at least I'm trying here ;-) Oh man... I can totally see my math-teacher laughing his ass off right now... makeOvalCoordinates = function (w, h, p) { if (p=1) { nx = w/2; ny = h/2; } else { if (nx= -w/2){ nx -= 10; } else { nx+=10; } if (ny=-h/2){ ny -= 10; } else { ny+=10; } } return {x:nx, y:ny}; }; Are you trying to position an animated movieClip Serge, or use the drawing API to draw scribbles? Because it sound like the suggestions you're getting are the latter solution. S ___ 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] [offtopic] XMas spam
spam on my gmail account went from aprox 5/day to about 30/day in the last week On 12/28/05, JesterXL [EMAIL PROTECTED] wrote: Yeah man, same here, although not as many. Open proxy servers = fair game during the holidays. - Original Message - From: Weyert de Boer [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 28, 2005 6:19 AM Subject: [Flashcoders] [offtopic] XMas spam A little question do you guys also get a stack of spam e-mails since XMas? Since Xmas I am getting a shitload of fake returned mails the junk mailing counter is already at 1k per hour. Really annoying. Anyone? ___ 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 -- j:pn ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] scribbling an oval
Yeah I also thought about doing pre-recorded paths but I though it was gonna look cooler if it were totally random :-) What sample are you referring to? 'cause my stuff is still online ;-) S The sample you originally posted is not accessible anymore, so my take on this might be off-base: http://www.motiondraw.com/md/as_samples/t/CatmullRomSpline/ scribbledOval.htm l This approach is more about 'scribbling' than Math - First several ovals are manually drawn with this tool http://www.motiondraw.com/md/as_samples/t/LineGeneralization/demo.html Now each time the mouse is clicked one of the pre-recorded paths is selected, some random is applied to its coordinates, it is smoothed again and finally it is rendered as Catmull Rom spline: http://www.motiondraw.com/md/as_samples/t/CatmullRomSpline/tween.html Post again if you need more details/code! HTH -- Andreas Weber motiondraw.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
ADMIN: please end this thread (was: RE: [Flashcoders] [offtopic] XMas spam)
spam on my gmail account went from aprox 5/day to about 30/day in the last week I know, I know, spam sucks, etc. But the one thing worse than getting spam is having to read about other people getting spam. So, please end this thread. Thanks! Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] scribbling an oval
What sample are you referring to? 'cause my stuff is still online ;-) Sorry, hadn't reallized that the link had just an unwanted line-break. All fine now! Yeah I also thought about doing pre-recorded paths but I though it was gonna look cooler if it were totally random :-) Note that the pre-recorded path is just used as a 'matrix' which is then altered by random factors. I don't think that 'totally random' will work for anything but a chaotic scribble - you'll need some original 'matrix' for the shape, either constructed mathematically or drawn manually. HTH -- Andreas Weber motiondraw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Serge Jespers Sent: Wednesday, December 28, 2005 3:59 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] scribbling an oval Yeah I also thought about doing pre-recorded paths but I though it was gonna look cooler if it were totally random :-) What sample are you referring to? 'cause my stuff is still online ;-) S The sample you originally posted is not accessible anymore, so my take on this might be off-base: http://www.motiondraw.com/md/as_samples/t/CatmullRomSpline/ scribbledOval.htm l This approach is more about 'scribbling' than Math - First several ovals are manually drawn with this tool http://www.motiondraw.com/md/as_samples/t/LineGeneralization/demo.html Now each time the mouse is clicked one of the pre-recorded paths is selected, some random is applied to its coordinates, it is smoothed again and finally it is rendered as Catmull Rom spline: http://www.motiondraw.com/md/as_samples/t/CatmullRomSpline/tween.html Post again if you need more details/code! HTH -- Andreas Weber motiondraw.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] [offtopic] XMas spam
JesterXL wrote: Yeah man, same here, although not as many. Open proxy servers = fair game during the holidays. Great to hear I am not the only one! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Is this a bug?
I was wondering if anyone else has run into this before. I am trying to pass an argument (String) to a function via an html link in a text field that will execute specific code based on the value of the argument, but the argument seems to get lost during the evaluation. The html reads: listText = pa href=\asfunction:showList, webcasts\View List/a/p; The function reads: function showList(medium:String) { var media:String = medium; trace(media); // returns: webcasts trace(typeof(media)) // returns: string //var media:String = webcasts; if (media == webcasts) { trace(ARGUMENT PASSED); } else { trace(media + ARGUMENT NOT PASSED); returns: webcasts ARGUMENT NOT PASSED } } The link triggers the function, and the webcasts argument get passed, but gets lost or isn't recognized by the conditional (media == webcasts) and fails to the ARGUMENT NOT PASSED trace. When I comment out the 'var media:String = medium;' , and uncomment the 'var media:String = webcasts;', it results in 'true' and I get 'ARGUMENT PASSED'. . . Is this a bug or am I missing something here? Thanks in advance for your help Dennis ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Is this a bug?
I don't think you are allowed to use spaces. So, make it: listText = pa href=\asfunction:showList,webcasts\View List/a/p; Instead of: listText = pa href=\asfunction:showList, webcasts\View List/a/p; - Original Message - From: Dennis Hart [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 28, 2005 10:34 AM Subject: [Flashcoders] Is this a bug? I was wondering if anyone else has run into this before. I am trying to pass an argument (String) to a function via an html link in a text field that will execute specific code based on the value of the argument, but the argument seems to get lost during the evaluation. The html reads: listText = pa href=\asfunction:showList, webcasts\View List/a/p; The function reads: function showList(medium:String) { var media:String = medium; trace(media); // returns: webcasts trace(typeof(media)) // returns: string //var media:String = webcasts; if (media == webcasts) { trace(ARGUMENT PASSED); } else { trace(media + ARGUMENT NOT PASSED); returns: webcasts ARGUMENT NOT PASSED } } The link triggers the function, and the webcasts argument get passed, but gets lost or isn't recognized by the conditional (media == webcasts) and fails to the ARGUMENT NOT PASSED trace. When I comment out the 'var media:String = medium;' , and uncomment the 'var media:String = webcasts;', it results in 'true' and I get 'ARGUMENT PASSED'. . . Is this a bug or am I missing something here? Thanks in advance for your help Dennis ___ 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] Is this a bug?
Well there it is! I hacked around on it for an hour, but didn't think of that. . . Thanks for your help JesterXL! Dennis I don't think you are allowed to use spaces. So, make it: listText = pa href=\asfunction:showList,webcasts\View List/a/p; Instead of: listText = pa href=\asfunction:showList, webcasts\View List/a/p; - Original Message - From: Dennis Hart [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 28, 2005 10:34 AM Subject: [Flashcoders] Is this a bug? I was wondering if anyone else has run into this before. I am trying to pass an argument (String) to a function via an html link in a text field that will execute specific code based on the value of the argument, but the argument seems to get lost during the evaluation. The html reads: listText = pa href=\asfunction:showList, webcasts\View List/a/p; The function reads: function showList(medium:String) { var media:String = medium; trace(media); // returns: webcasts trace(typeof(media)) // returns: string //var media:String = webcasts; if (media == webcasts) { trace(ARGUMENT PASSED); } else { trace(media + ARGUMENT NOT PASSED); returns: webcasts ARGUMENT NOT PASSED } } The link triggers the function, and the webcasts argument get passed, but gets lost or isn't recognized by the conditional (media == webcasts) and fails to the ARGUMENT NOT PASSED trace. When I comment out the 'var media:String = medium;' , and uncomment the 'var media:String = webcasts;', it results in 'true' and I get 'ARGUMENT PASSED'. . . Is this a bug or am I missing something here? Thanks in advance for your help Dennis ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] aseditor discussion
On 12/27/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Eclipse is of course powerful but java based apps always seem a bit slow on OSX IMHO. Hey Jim, Did you try upgrading the JVM to 1.5? That seemed to help performance quite a bit once I did that. -Chris ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dynamic textbox inside Movieclip not resizable when i insert a node in a XML file...
Hello Michael. Well, ive tried your method didnt worked out..maybe you can help me..looking at the code.. ///starting variables texto_xml = _root.main.caixa_txt.htmlText; _root.main.caixa_txt.autoSize = true; //XML/// noticias_xml = new XML(); _root.myNots=new Array(); noticias_xml.onLoad = startNoticias; noticias_xml.load(noticias.xml); noticias_xml.ignoreWhite = true; function abrir(param1) { //getURL(loja.asp,_blank); getURL(javascript:window.open('novidade.asp?id=+param1+', 'PopUp', 'width=420, height=500, top=100, left=100, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, copyhistory=no');void(0);); } function startNoticias(success_not) { if (success_not == true) { rootNode_not = noticias_xml.firstChild; totalNoticias = rootNode_not.childNodes.length; firstNoticia = rootNode_not.firstChild; currentNoticia = firstNoticia; currentIndex_not = 1; for (a=1; a=totalNoticias; a++) { texto_xml = texto_xml + font color='#76AE22' size='12'b + currentNoticia.attributes.titulo + /b/fontbr + font color='#B5B5B5' size='11'br + currentNoticia.attributes.data_not + /fontfont color='#FEBF00'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;a href=\asfunction:_root.abrir, + currentNoticia.attributes.id + \+ Mais/a + /fontbrbr; currentNoticia = currentNoticia.nextSibling; } } } On 12/27/05, Michael Bedar [EMAIL PROTECTED] wrote: first, you should not be using the Variable property of a textfield.. To get your text box resizing to fit the content you add, set the autoSize property to true in actionscript, ie caixa_txt.autoSize=true; caixa_txt.htmlText=pwhatever/p On Dec 27, 2005, at 12:34 PM, Jose Maria Barros wrote: Hello all. I have a movieclip that inside has a dynamic text box labeled caixa_txt with a variable call noticias_txt. That text box is only one line..but i choose to be multiline and with HTML support for me to be able to style the XML nodes. The problem is that the movie clip dont resize the text box when i insert new nodes in the XML file...he only shows the first node, so i think he doenst resize the text box automatically.. The sollution ive made was make the text box with a very high height value...to accept many nodes.. but the problem is that i have a scrollbar that stores the total height of the movie clip and when i dont have many news..he scrolls the movie until the end of the movie height.. Sorry..i dont know if any of you understand sorry for bad englishbut i can send a file with an example.. Thanks in advance.. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dynamic textbox inside Movieclip not resizable when i insert a node in a XML file...
sorry...what i mean to say is that the text doesnt appear. On 12/28/05, Jose Maria Barros [EMAIL PROTECTED] wrote: Hello Michael. Well, ive tried your method didnt worked out..maybe you can help me..looking at the code.. ///starting variables texto_xml = _root.main.caixa_txt.htmlText; _root.main.caixa_txt.autoSize = true; //XML/// noticias_xml = new XML(); _root.myNots=new Array(); noticias_xml.onLoad = startNoticias; noticias_xml.load(noticias.xml); noticias_xml.ignoreWhite = true; function abrir(param1) { //getURL(loja.asp,_blank); getURL(javascript:window.open('novidade.asp?id=+param1+', 'PopUp', 'width=420, height=500, top=100, left=100, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, copyhistory=no');void(0);); } function startNoticias(success_not) { if (success_not == true) { rootNode_not = noticias_xml.firstChild; totalNoticias = rootNode_not.childNodes.length; firstNoticia = rootNode_not.firstChild; currentNoticia = firstNoticia; currentIndex_not = 1; for (a=1; a=totalNoticias; a++) { texto_xml = texto_xml + font color='#76AE22' size='12'b + currentNoticia.attributes.titulo + /b/fontbr + font color='#B5B5B5' size='11'br + currentNoticia.attributes.data_not + /fontfont color='#FEBF00'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;a href=\asfunction:_root.abrir, + currentNoticia.attributes.id + \+ Mais/a + /fontbrbr; currentNoticia = currentNoticia.nextSibling; } } } On 12/27/05, Michael Bedar [EMAIL PROTECTED] wrote: first, you should not be using the Variable property of a textfield.. To get your text box resizing to fit the content you add, set the autoSize property to true in actionscript, ie caixa_txt.autoSize=true; caixa_txt.htmlText=pwhatever/p On Dec 27, 2005, at 12:34 PM, Jose Maria Barros wrote: Hello all. I have a movieclip that inside has a dynamic text box labeled caixa_txt with a variable call noticias_txt. That text box is only one line..but i choose to be multiline and with HTML support for me to be able to style the XML nodes. The problem is that the movie clip dont resize the text box when i insert new nodes in the XML file...he only shows the first node, so i think he doenst resize the text box automatically.. The sollution ive made was make the text box with a very high height value...to accept many nodes.. but the problem is that i have a scrollbar that stores the total height of the movie clip and when i dont have many news..he scrolls the movie until the end of the movie height.. Sorry..i dont know if any of you understand sorry for bad englishbut i can send a file with an example.. Thanks in advance.. ___ 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] phone conferencing
Folks, Does anyone know of a technology, a hack, a company, etc that can get telephony conferencing working in Flash? I'm not talking about using the FMS server.. -- - Alan Queen ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Is this a bug?
Jester ... Good Lord!! This is why I love Flash sooo much. I looked at Dennis's question and thought, A-ha. I can answer this one. Examined his code, couldn't se anything wrong, compared to similar code I generate through AS. Everything looked OK. Not allowed to have spaces - that would have tripped me up as well, and I avoided it solely by chance. Cheers - Miles At 11:36 AM 12/28/2005, you wrote: I don't think you are allowed to use spaces. So, make it: listText = pa href=\asfunction:showList,webcasts\View List/a/p; Instead of: listText = pa href=\asfunction:showList, webcasts\View List/a/p; - Original Message - From: Dennis Hart [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 28, 2005 10:34 AM Subject: [Flashcoders] Is this a bug? I was wondering if anyone else has run into this before. I am trying to pass an argument (String) to a function via an html link in a text field that will execute specific code based on the value of the argument, but the argument seems to get lost during the evaluation. The html reads: listText = pa href=\asfunction:showList, webcasts\View List/a/p; The function reads: function showList(medium:String) { var media:String = medium; trace(media); // returns: webcasts trace(typeof(media)) // returns: string //var media:String = webcasts; if (media == webcasts) { trace(ARGUMENT PASSED); } else { trace(media + ARGUMENT NOT PASSED); returns: webcasts ARGUMENT NOT PASSED } } The link triggers the function, and the webcasts argument get passed, but gets lost or isn't recognized by the conditional (media == webcasts) and fails to the ARGUMENT NOT PASSED trace. When I comment out the 'var media:String = medium;' , and uncomment the 'var media:String = webcasts;', it results in 'true' and I get 'ARGUMENT PASSED'. . . Is this a bug or am I missing something here? Thanks in advance for your help Dennis ___ 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 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.371 / Virus Database: 267.14.8/215 - Release Date: 12/27/2005 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Video to Vector Software
Hello all, I remember a long time ago I used some software to take a video and turn it into several frames of vector art. I can't remember it for the life of me now. Does it ring a bell to anyone out there? Thanks, ¬ ryan mayer, mgdc bluehaus communications bluehaus.com Professional member Graphic Designers Society of Canada (GDC) http://www.gdc.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Binary IO ?
I've been able to load binary files in Flash 7 and 8 using a small trick... I basically wrote a PHP script that reads a file and converts it to a string in hexadecimal. Flash then loads the string and converts it back to binary at runtime. Of course, it only works because the files I'm using are all under 3 kb... anything bigger would be overkill (since you're doubling the size of the files you are using). Anyway, it's still something that's available now, without having to wait for AS3 :-) On 12/27/05, Robert A. Colvin [EMAIL PROTECTED] wrote: Flexbuilder get it at labs.macromedia.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ribau Sent: Tuesday, December 27, 2005 12:30 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Binary IO ? How do we use AS3 ? I currently use Flash 8 Pro. Tyler Wright wrote: Reading yes, in ActionScript 3.0 which is currently in public Alpha and private Beta. In fact, the new DOM for AS3 offers the same power of streaming in files that the player uses for SWF's. So you can ask for a file, stream in a small portion (whatever you need) close the connection, and start up again where you left off when you need more! This is very exciting for situations that require large amounts of data to be transfered, the user doesn't have to wait for the whole thing to be able to benefit from it. Writing, not without an additional script or application. If you embed Flash in a standalone application (exe) it can do the writing for you. Server side all you need is a simple script that Flash sends the binary data to that writes it to disk. For writing Flash forces you to couple with other technologies. Prior to AS3 binary handling has been hard to work with and slow. Everything has to be read into a string and it can get messy with null-terminating characters. Hope this helps. Tyler On 12/27/05, Mark Ribau [EMAIL PROTECTED] wrote: Is it possible to do either local computer or local website binary file reading and writing in Flash? -- Mark Ribau Lead Windows Developer | My Tech Blog http://www.redbugtech.com/blogs/mark.php Redbug Technologies, Inc. http://www.redbugtech.com - www.redbugtech.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Mark Ribau Lead Windows Developer | My Tech Blog http://www.redbugtech.com/blogs/mark.php Redbug Technologies, Inc. http://www.redbugtech.com - www.redbugtech.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] No Key.isDown() method in AS3?
I can see a workaround though: It would be not too hard to write a class that listesn to the keyboard, and when an onKeyDown event is triggered, it reads the key and adds the keycode to an array. The keycode is then removed at an onKeyUp event. And the isDown method would just have to look through the array. Of course this is suboptimal, as it would never be as efficient as a built-in method to detect the state of a key... On 12/28/05, Joe Cutting [EMAIL PROTECTED] wrote: If this is correct then it sounds like a real pain and possible reason for not using Flash altogether. I'm currently using isDown() for all sorts of game like applications including some which rely on several keys being pressed at once. Does anyone know whether the new KeyboardEvent object will let you do this and if not how do we go about telling Adobe that there's going to be a problem. Cheers Joe ___ 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] No Key.isDown() method in AS3?
I would suggest reposting this next week when the adobe people get back from vacation. Regards Hank On 12/28/05, Joe Cutting [EMAIL PROTECTED] wrote: I was going over the AS3 documentation and I've noticed that the isDown() property was removed for security reasons from the new Keyboard class. Is there another way of doing the same thing then? Are we now forced to use the event-driven onKeyDown()? Here's the page where I'm reading: http://livedocs.macromedia.com/labs/1/flex/langref/migration.html If this is correct then it sounds like a real pain and possible reason for not using Flash altogether. I'm currently using isDown() for all sorts of game like applications including some which rely on several keys being pressed at once. Does anyone know whether the new KeyboardEvent object will let you do this and if not how do we go about telling Adobe that there's going to be a problem. Cheers Joe ___ 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] No Key.isDown() method in AS3?
Adding true to an array at the index of the keycode instead of adding the code to it might be better on looking through the array. Because you do not have to use for loop. Adding: pressedKeys_array[Key.getCode()] = true; Looking: bIsDown = pressedKeys_array[Key.getCode()] _ Newsdee wrote: I can see a workaround though: It would be not too hard to write a class that listesn to the keyboard, and when an onKeyDown event is triggered, it reads the key and adds the keycode to an array. The keycode is then removed at an onKeyUp event. And the isDown method would just have to look through the array. Good luck, Fumio Nonaka mailto:[EMAIL PROTECTED] http://www.FumioNonaka.com/ My bookshttp://www.FumioNonaka.com/Books/index.html Flash communityhttp://F-site.org/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Streming mp3 for server without FMS2
the fact of mensage please wait some time when streaming files. Progressive download are fine but also for non large size of files and better qualify like 192kpbs. 2005/12/28, hank williams [EMAIL PROTECTED]: What is the difference between this and standard progressive download for mp3s. Regards Hank On 12/27/05, Igor Costa [EMAIL PROTECTED] wrote: Hi Guys Searching over net I found this module that implements and turn the apache server as a stremming server for ogg and mp3 files. Cool way to stream sound over the net due to the fact it can be play files and cache them in server memory. http://tangent.org/index.pl?lastnode_id=478node_id=380 I've play arround with my server and worked fine. -- Igor Costa www.igorcosta.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Igor Costa www.igorcosta.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders