For Programmers: Free Programming Magazines  


Home > Archive > Java Help > January 2008 > How to get a URL encapsulated in a SWF file(Flash)-post again









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to get a URL encapsulated in a SWF file(Flash)-post again
Jason Yang

2008-01-28, 9:03 am

The Flash usually combines ActionScript.

with a script like

on (release)
{
getURL("http://www.someweb.com","_blank");
}"

it will run internet explorer and direct to the website in the script when
we click on it.

and now I want get the url without clicking, how can I make it with java?

Thanks for any assistance you may give ~

-------------------------

a nice man said:
see http://mindprod.com/jgloss/htmlrendering.html
--
Roedy Green, Canadian Mind Products
The Java Glossary, http://mindprod.com

------------------------------------
after some research on the given URL:

Thank you very much.

It seems the page only refers to how to get HTML document from a url and
display it .but My problem is how to get the ActionScript string of url from
a flash,without clicking or decompilation.

so my problem still unresolved.so I post my question again ,sorry~

"Roedy Green" <see_website@mindprod.com.invalid>
??????:nsoep3hohs6mc7t40pc5dghoa765vd5h0o@4ax.com...
> On Wed, 23 Jan 2008 20:29:27 +0800, "Jason Yang"



Lew

2008-01-28, 7:44 pm

Jason Yang wrote:
> The Flash usually combines ActionScript.
>
> with a script like
>
> on (release)
> {
> getURL("http://www.someweb.com","_blank");
> }"
>
> it will run internet explorer and direct to the website in the script when
> we click on it.
>
> and now I want get the url without clicking, how can I make it with java [sic]?


Why do you want to add Java to the above?

--
Lew
Jason Yang

2008-01-28, 7:44 pm

I want to know how to resolve this problem with a program ,which write in
java
"Lew" <lew@lewscanon.com> 写入消息新闻:1rmdnSgh2d8zawDanZ2dnUVZ_jK
dnZ2d@comcast.com...
> Jason Yang wrote:
>
> Why do you want to add Java to the above?
>
> --
> Lew



Matt Humphrey

2008-01-28, 7:44 pm


"Jason Yang" <hankes_garden@163.com> wrote in message
news:fnl61b$8nf$1@news.cn99.com...[color=darkred]
>I want to know how to resolve this problem with a program ,which write in
>java
> "Lew" <lew@lewscanon.com>
> 写入消息新闻:1rmdnSgh2d8zawDanZ2dnUVZ_jK
dnZ2d@comcast.com...

There are tools available to decompile SWF / ActionScript. I've never used
them but came across a couple with 60 seconds of Google. I can't imagine
any way to get at contents without decompiling.

http://code.google.com/p/swfparser/downloads/list

Matthew Humphrey http://www.iviz.com/


Lew

2008-01-28, 7:44 pm

(top-posting corrected)
"Lew" wrote:

Jason Yang wrote:[color=darkred]
> I want to know how to resolve this problem with a program ,which write in
> java [sic]


Yes, we got that already. I was asking why you picked Java.

I'm not so sure that Java is the best language for messing with Flash scripts,
or even if it's compatible. Have you tried googling for a Java library that
works with Flash?

--
Lew
Jason Yang

2008-01-28, 10:37 pm

Matthew Humphrey,thank you very much.

and Lew,thanks too.I have tried to google for this but nothing except
decompiling was refered.

what kind of language could be better in your opinion? or any better method
to get the encapsulated url ?

waitting for help ~

"Lew" <lew@lewscanon.com> 写入消息新闻:TM6dnXyc-d6I8gPanZ2dnUVZ_o7inZ2d@comcast.com...
> (top-posting corrected)
> "Lew" wrote:
>
> Jason Yang wrote:
>
> Yes, we got that already. I was asking why you picked Java.
>
> I'm not so sure that Java is the best language for messing with Flash
> scripts, or even if it's compatible. Have you tried googling for a Java
> library that works with Flash?
>
> --
> Lew



Matt Humphrey

2008-01-28, 10:37 pm


"Jason Yang" <hankes_garden@163.com> wrote in message
news:fnm6co$lms$1@news.cn99.com...
> Matthew Humphrey,thank you very much.
>
> and Lew,thanks too.I have tried to google for this but nothing except
> decompiling was refered.
>
> what kind of language could be better in your opinion? or any better
> method to get the encapsulated url ?


I think you're going to be lucky to get anything at all. If it's possible
to retrieve the URL, I think it can be done only by decompiling and
carefully studying the data. SWF is not an open text format, it's
essentially a compiled language and in some cases it's obfuscated and / or
encrypted. The issue isn't which programming language to use for this--the
issue is knowing the binary SWF format. If you can get a library to do this
for you, by all means use it and whatever language it relies on. I can
guarantee there will not be a method called "getEncapsulatedURLs".

Matt Humphrey http://www.iviz.com/


Jason Yang

2008-01-28, 10:37 pm

thanks for your points sincerely.I will do more research on this.

"Matt Humphrey" <matth@iviz.com> 写入消息新闻:Rv6dnTRjRuRjDAPanZ2dnUVZ_ua
lnZ2d@comcast.com...
>
> "Jason Yang" <hankes_garden@163.com> wrote in message
> news:fnm6co$lms$1@news.cn99.com...
>
> I think you're going to be lucky to get anything at all. If it's possible
> to retrieve the URL, I think it can be done only by decompiling and
> carefully studying the data. SWF is not an open text format, it's
> essentially a compiled language and in some cases it's obfuscated and / or
> encrypted. The issue isn't which programming language to use for this--the
> issue is knowing the binary SWF format. If you can get a library to do
> this for you, by all means use it and whatever language it relies on. I
> can guarantee there will not be a method called "getEncapsulatedURLs".
>
> Matt Humphrey http://www.iviz.com/
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com