Re: How can I get the value of url passed vars?
"William L. Thomson Jr." <[email protected]> 06 Dec 2002 23:45:42 -0800
| Newsgroups | gmane.comp.java.jgenerator.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 2002-12-06 at 07:46, Dmitry Skavish wrote: > > That's what I thought. Now how can I get params I do not know the name > > of. > > > > Is there a method or something I can call and get all in a enum or > > something? > > > There is no such method. Currently the only way without changing the code > is to use GeneratorServletContext, but before you need to enable it via > property com.iv.flash.servletContext in iv.properties file. > Using GeneratorServletContext you can obtain the original HttpServletRequest > and get all the parameters this swt was called with from there. Still having problems. I can create and get the GeneratorServletContext, and I know that works, but I still can only get the same value. The rest are not passed along. It might as well be better off to have those params as params available in Flash auth env. I can't seem to find any other way to get them? Strange > > And why I am asking do you know any good ways to dynamically determine > > the width of a TextField based on the amount of text? > > If the font is available (getFont()) then you can retrieve this info from there. > But to calculate the width exactly you will need to go through all the characters > on each line and add up their advance values with pissible correction from kerning table > if it does exist. Damn is this a hard thing to do. What is the conversion ratio of the 1024 EM box to font points/twips? How do you scale the EM box for Flash? -- Sincerely, William L. Thomson Jr. Support Group Obsidian-Studios Inc. 439 Amber Way Petaluma, Ca. 94952 Phone 707.766.9509 Fax 707.766.8989 http://www.obsidian-studios.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf