It works in both browsers for me. IE6 Firefox 1.0.?

From: "Bjorn Schultheiss" <[EMAIL PROTECTED]>
Reply-To: "Flash Developers List" <[email protected]>
To: "Flash Developers List" <[email protected]>
Subject: [fugli] RE: firefox vs ie compatability
Date: Thu, 12 May 2005 21:13:57 +1000

I have a compatability issue between firefox and internet explorer.
my site is http://www.tedscycles.com.au/tedsCycles.htm you will see the home
page loads in firefox but not explorer (it also words in my flash IDE).
I thought the flash plug-in would handle the .swf the same in either
browser?


Bjorn



  _____

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bill Lane
Sent: Thursday, 12 May 2005 1:12 PM
To: Flash Developers List
Subject: [fugli] Re: dynamically referring to components



Ignore this post.  I was half way through writing it when I got your reply.
I meant to cancel.  But instead sent it.



Bill



>>> [EMAIL PROTECTED] 05/12/05 1:04 pm >>>

In browser DOM you use getElementById to get a reference to the object using
it's name. There are numerous ways to do this in Flash. Modifying your
example slightly:




function something(componentInstanceName) {
    this[componentInstanceName].text = "something";
}

>>> [EMAIL PROTECTED] 05/12/05 12:35 pm >>>
thanks bill,  but it's the conditional if () that i'm trying to avoid.
i'm thinking of the way it's implemented in browser DOM models with
document.getElementById(elementID).

surely there's a way?

On 5/12/05, Bill Lane <[EMAIL PROTECTED]> wrote:
>
> Using components you can use getFocus to get a reference to the currently
> active component. I use this in conjunction with an event listener to
> respond to component events. Not sure that this is the best way. I'd be
> interested to hear what others are doing.
>
> //example
>
> var new_object = createClassObject(mx.controls.TextInput,id,next_depth,o);


> new_object.addEventListener("change", change_action);
>
> function change_action(evt:Object)
> {
>   //get focussed item
>   var f:Object = evt.target.getFocus();
> if(f.className == "TextInput")
>   {
> f.text = "something"
> }
>
> }
>
>
>
>
> Bill Lane
> =====================
> Web Developer
> Educational Media Group
> PVC Teaching and Learning Portfolio
> RMIT University
> Tel:   61 3 9925 9804
> Fax:  61 3 9925 9625
> [EMAIL PROTECTED]
> =====================

---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/ ---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/



---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]


Aussie Macromedia Developers: http://lists.daemon.com.au/

_________________________________________________________________ MSN Messenger v7. Download now: http://messenger.ninemsn.com.au/


--- You are currently subscribed to fugli as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to