[Flashcoders] Problem with passing URL to Twitter
Hey there, I am trying to connect to Twitter out of my Flashapplication. The issue is, that the text comes with a lot of URL-Codes. I tried using escape() and encodeURI()... But it is obviously not working... The code is given below. I'd appreciate if anyone got any clue how to solve this problem. function DoTweetBox(me:MouseEvent):void { trace (displayedArticle); var url:String = new String(http://www.twitter.com/;); var replaceSpace:RegExp = new RegExp( , g); var replaceUE:RegExp = new RegExp(Ü, g); var replaceUe:RegExp = new RegExp(ü, g); var replaceAE:RegExp = new RegExp(Ä, g); var replaceAe:RegExp = new RegExp(ä, g); var replaceOE:RegExp = new RegExp(Ö, g); var replaceOe:RegExp = new RegExp(ö, g); var replaceTueddel:RegExp = new RegExp(\, g); if (displayedArticle == 0) { url = http://www.twitter.com/;; } else { var headlineString:String = new String(MovieClip(getChildByName(DetailView)).headline_txt.text); headlineString = MovieClip(getChildByName(DetailView)).headline_txt.text.replace(replaceSpace, +); /*headlineString = headlineString.replace(replaceUE, %C3%9C); headlineString = headlineString.replace(replaceUe, %C3%BC); headlineString = headlineString.replace(replaceAE, %C3%84); headlineString = headlineString.replace(replaceAe, %C3%A4); headlineString = headlineString.replace(replaceOE, %C3%96); headlineString = headlineString.replace(replaceOe, %C3%B6); headlineString = headlineString.replace(replaceTueddel, %22);*/ //headlineString = encodeURI(headlineString); var overlineString:String = new String(MovieClip(getChildByName(DetailView)).overline_txt.text); overlineString = MovieClip(getChildByName(DetailView)).overline_txt.text.replace(replaceSpace, +); /*overlineString = overlineString.replace(replaceUE, %C3%9C); overlineString = overlineString.replace(replaceUe, %C3%BC); overlineString = overlineString.replace(replaceAE, %C3%84); overlineString = overlineString.replace(replaceAe, %C3%A4); overlineString = overlineString.replace(replaceOE, %C3%96); overlineString = overlineString.replace(replaceOe, %C3%B6); overlineString = overlineString.replace(replaceTueddel, %22);*/ //overlineString = encodeURI(overlineString); url = http://www.twitter.com/?status=...@sternde+; + escape(overlineString) + :+ + escape(headlineString) + +http://www.stern.de/; + displayedArticle + .html; } var request:URLRequest = new URLRequest(url); trace (url); navigateToURL(request, _blank); } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] different frame rate loaded sfw from its parent
___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] different frame rate loaded sfw from its parent
Davide Di Blasi wrote: ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders I think you forgot the message. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] slightly OT: Problems installing FP10
Hi guys, One of our server techs came to me with a problem. HeŽs upgrading a laptop running Win XP SP3 and IE8. But everytime heŽs installing Flash Player 10 it chokes trying to register the software. ItŽs allways on a file called flashplayer10c.ocx Anyone with a hint to what the problem could be? TIA /Micke Mikael Wirén Madness Marketing LiljeholmsvÀgen 12 2tr S-116 71 Stockholm Mob: +46 (0)709 15 24 30 Mail: mi...@madnessmarketing.com Web: http://www.madnessmarketing.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] different frame rate loaded sfw from its parent
Thanks Henrik, I didn't notice... Hello List, I was wondering if a loaded swf can have a different frame rate from its parent, as i have the main swf that runs at 30 fps and the animation i load that runs at 24 fps. Thanks in advance. .. *Davide Di Blasi - Flash Developer* mailto: davide.dibl...@kettydo.com mailto:davide.dibl...@kettydo.com .. *Kettydo S.r.l.* Via Mosè Bianchi, 103 20149 - Milano Tel. +39 02 87393636 Fax + 39 02 87394018 .. Henrik Andersson ha scritto: Davide Di Blasi wrote: ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders I think you forgot the message. ___ 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] different frame rate loaded sfw from its parent
Davide Di Blasi wrote: Thanks Henrik, I didn't notice... Hello List, I was wondering if a loaded swf can have a different frame rate from its parent, as i have the main swf that runs at 30 fps and the animation i load that runs at 24 fps. Simple No. There is only one framerate in the player. It defaults to the rate used for the first loaded swf file. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] different frame rate loaded sfw from its parent
Yes. You can do it with code. Google multi frame rate in flash I know there is a code out there somewhere. I found it a while ago. Karl Sent from losPhone On Nov 10, 2009, at 4:05 AM, Davide Di Blasi davide.dibl...@kettydo.com wrote: Thanks Henrik, I didn't notice... Hello List, I was wondering if a loaded swf can have a different frame rate from its parent, as i have the main swf that runs at 30 fps and the animation i load that runs at 24 fps. Thanks in advance. .. *Davide Di Blasi - Flash Developer* mailto: davide.dibl...@kettydo.com mailto:davide.dibl...@kettydo.com .. *Kettydo S.r.l.* Via Mosè Bianchi, 103 20149 - Milano Tel. +39 02 87393636 Fax + 39 02 87394018 .. Henrik Andersson ha scritto: Davide Di Blasi wrote: ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders I think you forgot the message. ___ 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] different frame rate loaded sfw from its parent
Karl DeSaulniers wrote: Yes. You can do it with code. Google multi frame rate in flash I know there is a code out there somewhere. I found it a while ago. That would be more like a hack to move the playhead manually. That is not going to work out for things syncing to the real framerate, subclips or tons of other situations, with the most noticeable being streaming audio. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Placing sprites on the circumference of a circle
Jason, yes, indeed you should be able to use Point.polar() it should of course give the same result as long you give the angle in radians ;) OK, so just curious, why all the trig? Converting angles to radians and vice versa is easy enough. Jason Merrill Bank of America Global Learning Learning Performance Soluions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] URLRequest Unencoded Question
Hello, Can someone help me with this. I need to send a url request with the spaces intact and not urlencoded. Is there a way to do this? var url:String = 'http://www.somesite.com/home?status=My Bikini Design ' + shortenedLink; var req:URLRequest = new URLRequest(url); navigateToURL(req,'_blank'); Thanks for any help! -T ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] URLRequest Unencoded Question
TS wrote: Hello, Can someone help me with this. I need to send a url request with the spaces intact and not urlencoded. Is there a way to do this? No http client can do this, the http RFC requires the resource name to not contain any spaces. The encoding is required. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] how to create rss/data changes on server, how to process in AS3
Andrew Sinning wrote: The data changes very quickly over time. Either move on to a Socket or a FMS connection, those allows for pushed content and not just pulled content. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] how to create rss/data changes on server, how to process in AS3
I'm working in Flash, not Flex. I have a php script that takes an incoming query from AS3 and returns the resulting data. The data changes very quickly over time. Currently the script returns _all_ of the available data. I then read in all of the refreshed data into AS3, compare each item with corresponding items in my DataProvider, update any modified items and add any new ones. This seems terribly inefficient. What should I be doing differently? Should my server be broadcasting changes? Should my query include the time-stamp of it's last update so the server can return just the changes? Are there standard library objects for php to handle this process? Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] URLRequest Unencoded Question
Then why does this work when I put it in my url? http://twitter.com/home?status=My Bikini Design http://www.chynnadolls.com/ Which results in the proper status update in Twitter. There must be a way to do this as other client applications are updating twitter with spaces in their status? WHAT ARE YOU DOING? My Bikini Design http://www.chynnadolls.com/ Thanks, T -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik Andersson Sent: Tuesday, November 10, 2009 6:49 AM To: Flash Coders List Subject: Re: [Flashcoders] URLRequest Unencoded Question TS wrote: Hello, Can someone help me with this. I need to send a url request with the spaces intact and not urlencoded. Is there a way to do this? No http client can do this, the http RFC requires the resource name to not contain any spaces. The encoding is required. ___ 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] URLRequest Unencoded Question
TS wrote: Then why does this work when I put it in my url? http://twitter.com/home?status=My Bikini Design http://www.chynnadolls.com/ If you by my url really mean Address bar in my browser, then it is because your webbrowser did the escaping for you. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] how to create rss/data changes on server, how to process in AS3
If you are allowed to run PHP scripts which stay running, you can use a PHP socket server that handles the communications... If you google PHP socket server there are loads of examples around. Once you have the PHP script running, you can run your PHP commands and talk to MySQL db's. You just have to watch out for some environment variable differences - webserver vs command line sometimes have different ini settings, paths, etc. Glen Andrew Sinning wrote: Thanks Henrik. I've been using Red5 do to simple multi-user data relay for about a month. Now I just need to figure out how to get it to talk to php/MySQL Henrik Andersson wrote: ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] how to create rss/data changes on server, how to process in AS3
Hey Glen, I've used that very approach in the past, but we had some issues with firewalls using the allowed ports for the xml socket object. Using NetConnection and a SharedObject object with Red5 allows us to use http-tunneling as a fall-back. Hmm. Maybe I could get php running on the same server to send updates to the Red5 server Glen Pike wrote: If you are allowed to run PHP scripts which stay running, you can use a PHP socket server that handles the communications... If you google PHP socket server there are loads of examples around. Once you have the PHP script running, you can run your PHP commands and talk to MySQL db's. You just have to watch out for some environment variable differences - webserver vs command line sometimes have different ini settings, paths, etc. Glen Andrew Sinning wrote: Thanks Henrik. I've been using Red5 do to simple multi-user data relay for about a month. Now I just need to figure out how to get it to talk to php/MySQL Henrik Andersson wrote: ___ 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] Capturing TextEvent from image in textfield
How do I send an event from a click on an image in a textfield? Clicking on the actual text fires the event, but it doesn't fire when clicking on an image from the library placed inline: pageText.displayValue.htmlText = 'pa href=event:a1bimg src=plus /Our world-class scientists/b/a/p'; pageText.displayValue.addEventListener(TextEvent.LINK, toggleVisibility); function toggleVisibility(e:Event) { trace('text event triggered'); } Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Capturing TextEvent from image in textfield
Try pageText.displayValue.htmlText = 'pa href=' + event:a1 + 'img src=' + plus + ' /bOur world-class scientists/b/a/p'; I think it was reading your URLs as strings of text instead of variables holding the URLs. Not positive though. J.A.T. Karl Sent from losPhone On Nov 10, 2009, at 6:47 PM, Mattheis, Erik (MIN - WSW) ematth...@webershandwick.com wrote: How do I send an event from a click on an image in a textfield? Clicking on the actual text fires the event, but it doesn't fire when clicking on an image from the library placed inline: pageText.displayValue.htmlText = 'pa href=event:a1bimg src=plus /Our world-class scientists/b/a/p'; pageText.displayValue.addEventListener(TextEvent.LINK, toggleVisibility); function toggleVisibility(e:Event) { trace('text event triggered'); } Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Capturing TextEvent from image in textfield
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextField.html#event:link On Nov 10, 2009, at 7:47 PM, Mattheis, Erik (MIN - WSW) wrote: How do I send an event from a click on an image in a textfield? Clicking on the actual text fires the event, but it doesn't fire when clicking on an image from the library placed inline: pageText.displayValue.htmlText = 'pa href=event:a1bimg src=plus /Our world-class scientists/b/a/p'; pageText.displayValue.addEventListener(TextEvent.LINK, toggleVisibility); function toggleVisibility(e:Event) { trace('text event triggered'); } Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Capturing TextEvent from image in textfield
Karl, Gerry - Thanks, I just tried the code I posted below at home and it works as expected. I must have done something funky elsewhere in the code with the version at work: when I click on Our world-class scientists, the event fires, when I click on the movieclip in the textfield it doesn't. In the problematic version, I'm altering the externally loaded text at runtime, inserting an image in places that need a visual indicator for this text expands. I'm guessing the way I'm doing it doesn't add the event listener to the movieclip because it's not yet been added to the display list. From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Gerry [noentour...@gmail.com] Sent: Tuesday, November 10, 2009 8:57 PM To: Flash Coders List Subject: Re: [Flashcoders] Capturing TextEvent from image in textfield http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextField.html#event:link On Nov 10, 2009, at 7:47 PM, Mattheis, Erik (MIN - WSW) wrote: How do I send an event from a click on an image in a textfield? Clicking on the actual text fires the event, but it doesn't fire when clicking on an image from the library placed inline: pageText.displayValue.htmlText = 'pa href=event:a1bimg src=plus /Our world-class scientists/b/a/p'; pageText.displayValue.addEventListener(TextEvent.LINK, toggleVisibility); function toggleVisibility(e:Event) { trace('text event triggered'); } Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders