Re: [Flashcoders] LoadVariables - Pipe character is being URL Encoded?

2009-04-17 Thread Lou Klepner

Thanks Ben - Its nice to know whats happening behind the scenes.

Good point about fixing the web server - I've managed to convince the  
vendor they should clean up their web service, so the pipe character,  
which is encoded as %7c, is now being properly recognized - woo!


Thanks again!

Lou

On Apr 17, 2009, at 2:12 PM, Benjamin Wolsey wrote:


Am Freitag, den 17.04.2009, 12:58 -0400 schrieb Lou Klepner:

?values=1|2|3

When I call it using LoadVariables, the pipe symbol is being URL-
encoded, and the web-service ends up receiving this request -

?values=1%7c2%7c3

Unfortunately the webservice is outside my control and I can't url-
decode its input. Is there anyway to prevent LoadVariables from
altering the pipe symbol?



Do you mean LoadVars or MovieClip.loadVariables?

If LoadVars, then yes, but it isn't very nice. LoadVars.send()  
probably

calls LoadVars.toString(), which definitely calls _global.escape().
Redefine _global.escape:

_global.escape = function(str) { return str; };

And when you call LoadVars.send(), the string won't be encoded
(at all), and neither will anything else unless you restore it to what
it was.

A similar thing likely applies to MovieClip.loadVariables.

Of course, a better way would be to fix the server.

bwy

--
Use Gnash, the GNU Flash Player!
http://www.gnu.org/software/gnash/

Benjamin Wolsey, Software Developer - http://benjaminwolsey.de

___
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] Change anchor / registration point

2006-02-13 Thread Lou Klepner

Hi all,

This might be a silly question - but I've been searching for a while  
and haven't come up with a good answer yet.
The question is - how do you change a movieclip's anchor point at  
runtime?


Lets say you've got a 400x300 movieclip, with an anchor point of 0,0  
(upper lefthand corner).

If you want to change the anchor to 200,0 ... what do you do?

MovieClip.setAnchor(x,y) doesn't exist, right?

It seems like one would have to load the movie into another  
movieclip, offset the position of the subMovie, then rotate the  
parent clip right? Is this the only way? Any tips or tricks would  
be greatly appreciated.


Thanks,
- Lou
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Change anchor / registration point

2006-02-13 Thread Lou Klepner


Apparently this is the question of the day - my question was  
answered in the thread 'Rotating a mc around a custom pivotpoint'.


http://www.darronschall.com/weblog/archives/54.cfm


On Feb 13, 2006, at 3:10 PM, Lou Klepner wrote:


Hi all,

This might be a silly question - but I've been searching for a  
while and haven't come up with a good answer yet.
The question is - how do you change a movieclip's anchor point at  
runtime?


Lets say you've got a 400x300 movieclip, with an anchor point of  
0,0 (upper lefthand corner).

If you want to change the anchor to 200,0 ... what do you do?

MovieClip.setAnchor(x,y) doesn't exist, right?

It seems like one would have to load the movie into another  
movieclip, offset the position of the subMovie, then rotate the  
parent clip right? Is this the only way? Any tips or tricks  
would be greatly appreciated.


Thanks,
- Lou
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com