swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] swfc + getURL


From: Chris Pugh
Subject: Re: [Swftools-common] swfc + getURL
Date: Thu, 8 Jul 2010 23:46:26 +0100

Hmm!!   :o/

1. It's a security feature.

Set Flash Player version to *LESS* than 8, and use of getURL() with
a remote address,  will give you the unsafe operation Security Pop-up
when you try to access it.    This dialog will redirect you to the Adobe
web site and allow you to see and change the global privacy settings
for your installed version of Flash Player.

2.  For versions 9 and above...

... getURL() doesn't work..  You'll need to use the AS3 way of doing things.
It's that simple ( or not, as the case may be! :o)   )

Here's a couple of randomly links which may assist you,

http://scriptplayground.com/tutorials/as/getURL-in-Actionscript-3/

http://flashgameu.com/ask_gary/ask_gary_creating_url_button_as3_way.html

Regards,



Chris.

On 8 July 2010 21:46, pascal fautreten?ro <address@hidden> wrote:
> Hi,
>
> Well, I tried with both version 8 and version 9 but the result is unchanged.
> It seems that while the movie is not finished, my links do not work (on
> local machine). Once the movie reaches the last frame, links work properly !
>
> Regards,
>
> 2010/7/7 Chris Pugh <address@hidden>
>>
>> Just an aside to this..
>>
>> Try changing the version specified in the .flash line to
>> than 8, then compile and run again.
>>
>>
>> http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
>>
>> Versions 8 and upward handle accessing external URLs
>> in a slightly different way.
>>
>> Regards,
>>
>>
>> Chris.
>> On 7 July 2010 07:47, pascal fautrero <address@hidden> wrote:
>> > Well, Iosif budulai found where I was wrong. I worked on my local
>> > machine
>> > and never thought it could be different if I tried on a server. So :
>> >
>> > getURL("http://www.google.com";, "_blank");
>> >
>> > this command works fine (if I store the swf file on a server) but it
>> > fails
>> > if the swf file is located on my machine.
>> >
>> > Thanks to Mark Lee and Iosif budulai for their help.
>> >
>> > Regards,
>> >
>> > 2010/7/6 Mark Lee <address@hidden>
>> >>
>> >> Maybe put some quotes around url, like getURL("url", "_blank") and see
>> >> if
>> >> that works. I don't have a clue.
>> >>
>> >>
>> >> Mark
>> >>
>> >> ________________________________
>> >> From: pascal fautrero <address@hidden>
>> >> To: address@hidden
>> >> Sent: Tue, July 6, 2010 1:28:30 PM
>> >> Subject: [Swftools-common] swfc + getURL
>> >>
>> >> Hi,
>> >>
>> >> Since a week, I try and test swfc to create small banners. It is really
>> >> easy to use ! Thanks a lot for this useful tool. I just encounter a
>> >> trouble
>> >> using the instruction getURL. I explain.
>> >>
>> >> I have just created a small button like this :
>> >>
>> >>     .button MyButton
>> >>
>> >>             .show bouton scale=100% as=area
>> >>             .show bouton scale=100% as=idle
>> >>             .show bouton scale=100% as=shape
>> >>             .show bouton scale=100% alpha=60% as=hover
>> >>             .on_release:
>> >>                 getURL("hello.html", "_blank");
>> >>             .end
>> >>
>> >> It works nice. My file hello.html is called properly. But, if a change
>> >> the
>> >> url parameter like that :
>> >>
>> >>                 getURL("http://www.google.com";, "_blank");
>> >>
>> >> It does not work anymore. If I decompile the swf file, I see that the
>> >> instruction has been modified like this :
>> >>
>> >>                 getURL("http://www.google.com";, "_blank";
>> >>
>> >> The right bracket has disappeared.
>> >>
>> >> So, I tried to modify this instruction like this :
>> >>
>> >>                 url = "http://www.google.com";;
>> >>                 getURL(url, "_blank");
>> >>
>> >> Now, the right bracket does not disappear anymore but...the command
>> >> getURL
>> >> is not executed. Where I am wrong ?
>> >>
>> >> For now, the only solution I found is to open my file hello.html where
>> >> I
>> >> do a html redirection (meta-redirect) to www.google.com.
>> >>
>> >> Thanks
>> >>
>> >> Regards,
>> >>
>> >> Pascal
>> >>
>> >
>> >
>> >
>> > --
>> > Pascal Fautréro
>> > Collège Paul Bert
>> > Malakoff - 92
>> >
>
>
>
> --
> Pascal Fautréro
> Collège Paul Bert
> Malakoff - 92
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]