It appears that URLUtil.replacePort requires the trailing "/". Try this:
var newUri:String = URLUtil.replacePort("http://localhost:2222/", 3333);
I don't know if this is a bug or a undocumented feature. It kinda
makes sense if you think about it - The URI is incorrectly bounded
without that trailing "/" or page.
--- In [email protected], "Robert Csiki" <[EMAIL PROTECTED]> wrote:
>
>
> Working in FB3:
>
> var newUri:String = URLUtil.replacePort(http://localhost:2222
> <http://localhost:2222> , 3333);
>
> The result is newUri = http://localhost:3333http://localhost:2222
> <http://localhost:3333http://localhost:2222>
>
> Should I log a bug?? Thanks.
>