Hello Ian,

Thanks very much for trying it out for me. Definitely heartening to hear
that it is working as expected. Apologies for not describing correct/broken
behaviour in the original post. Correct behaviour: word goes bold when you
click on it. Broken behaviour: the asfunction "hand" cursor appears
correctly, until you click on a word. In which case, nothing happens except
that the "hand" becomes an "arrow", and nothing appears to be clickable
anymore.

I too was very surprised to see that there was a difference on Vista,
especially as I tried it out on IE7 and FF2, and both had the latest version
of Flash Player. (Broken behaviour in both browsers, neither of which have
more than the default level of adblocking).

>From your results, it seems that it must just be the machine I tested it on.
I will have to try to get access to more Vista machines to confirm it.

Thanks once again!

CB Botha.

On Wed, Oct 15, 2008 at 7:47 PM, Ian Thomas <[EMAIL PROTECTED]> wrote:

> Hi there,
>   What would be helpful is to know what the behaviour you expect
> _is_, and what you see when it's broken.
>
>  I would be very surprised if there is a difference on Vista for this
> sort of functionality, particularly a difference between Flash Player
> standalone and in a browser. I suspect something else must be going on
> on that machine. (Adblocking? Wrong version of the Flash Player?)
>
>  Testing it on Vista: in the IDE, in Chrome, in Firefox 3, in IE 7
> and in Safari I get a line of text in a textfield - when I click on
> any word it goes bold. With a very quick look at your code, that seems
> to be correct.
>
> HTH,
>   Ian
>
> On Wed, Oct 15, 2008 at 10:25 AM, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> > Hello List,
> >
> > I'm working with some AS2 code that creates a textfield which has
> > selectable=false and autoSize=true, and uses asfunction to change its own
> > contents.
> >
> > I recently noticed that, while it works successfully on Windows XP and on
> a
> > Mac (unsure of version), it does not seem to work on Vista. I should
> > clarify, it does not seem to work on Vista in a browser (works fine when
> you
> > control+enter).
> >
> > After a fair amount of un/commenting, it seems like the problem is that,
> on
> > Vista, you can't have selectable=false AND autoSize=true and expect
> > asfunction to work. It works fine if you comment out either of those
> lines.
> >
> > If anyone has Vista, I would sincerely appreciate it if you could give it
> a
> > burl in a browser, sample code below, just copy and paste. I only have
> > access to one Vista machine, so it would be great to get some
> confirmation.
> >
> > And if anyone could shed some light on why this is happening at all,
> 'twould
> > be 'twerrific!
> >
> > (I understand that "Use AS3" is the answer to many problems, but
> > unfortunately I'm not in the position to do that right now).
> >
> > Thanks very much!
> >
> >
> > // --- Click on a word to embolden it.
> > // --- Code begins.
> >
> > var str:String = "The quick brown fox jumps over the lazy dog.";
> > var str_array:Array = str.split(" ");
> > var newStr:String = "";
> > var clicked_array:Array = [];
> >
> >
> this.createTextField("content_txt",this.getNextHighestDepth(),10,10,300,50);
> > with (content_txt) {
> >    autoSize = true;
> >    selectable = false;
> >    border = true;
> >    html = true;
> >    wordWrap = true;
> > }
> >
> > function render() {
> >    newStr = "";
> >    for (var i = 0; i<str_array.length; i++) {
> >        if (clicked_array[i] == 1) {
> >            newStr += "<b>";
> >        }
> >        newStr += "<a
> href='asfunction:clickedOn,"+i+"'>"+str_array[i]+"</a>
> > ";
> >        if (clicked_array[i] == 1) {
> >            newStr += "</b>";
> >        }
> >    }
> >    content_txt.htmlText = newStr;
> > }
> >
> > function clickedOn(num) {
> >    clicked_array[num] = 1;
> >    render();
> > }
> >
> > render();
> >
> > // --- Code ends
> > _______________________________________________
> > Flashcoders mailing list
> > [email protected]
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to