[flexcoders] Intellisense not working in Flash Builder 4 plugin for eclipse

2010-07-15 Thread vishal_sodani
Hi,

I am not sure why it is so.I am using Flex 3.5 sdk with AIR 2.0 to develop the 
project.

regards
vishal



Re: [flexcoders] Re: textInput databinding

2010-07-15 Thread Brendan Meutzner
Mark, glad you got it worked out.

However, you need to look at the fact the Spark TextInput extends from
SkinnableTextBase which contains the properties you'd expect.


Brendan


On Thu, Jul 15, 2010 at 5:28 PM, mark.embrey wrote:

>
>
> Bingo! that did it!
>
> the final solution, in my example, is:
>
> text="{myDataProvider.getItemAt(0).name}"
>
> thanks for your help, Oleg, and to everyone who contributed to the
> conversation.
>
> best,
>
> Mark
>
>
> --- In flexcoders@yahoogroups.com , Oleg
> Sivokon  wrote:
> >
> > Hi, I think square brackets may be an obstacle here. I think they didn't
> > always work, or maybe they don't work even now? Anyways, if that's an
> array
> > collection, you'd better use getItemAt() and if that's an XML or XMLList,
> > you'd be better of with the XML / XMLList methods corresponding to what
> you
> > wanted to do (like child(), children() and so on).
> > Also, "data" is often times used in the framework for instances of
> Object,
> > which is not bindable because it is not an IEvetnDispatcher. Check that
> > option too.
> >
>
>  
>


[flexcoders] Re: textInput databinding

2010-07-15 Thread mark.embrey
Bingo! that did it!

the final solution, in my example, is:

text="{myDataProvider.getItemAt(0).name}"


thanks for your help, Oleg, and to everyone who contributed to the conversation.

best,

Mark


--- In flexcoders@yahoogroups.com, Oleg Sivokon  wrote:
>
> Hi, I think square brackets may be an obstacle here. I think they didn't
> always work, or maybe they don't work even now? Anyways, if that's an array
> collection, you'd better use getItemAt() and if that's an XML or XMLList,
> you'd be better of with the XML / XMLList methods corresponding to what you
> wanted to do (like child(), children() and so on).
> Also, "data" is often times used in the framework for instances of Object,
> which is not bindable because it is not an IEvetnDispatcher. Check that
> option too.
>




[flexcoders] Re: textInput databinding

2010-07-15 Thread mark.embrey
Brendan,

Actually, that's where I started, as it worked in Flex 3. The only properties 
of Spark TextInput are:

  wrote:
>
> Why wouldn't you just do this:
> 
> 
> 
> 
> 
> On Thu, Jul 15, 2010 at 4:38 PM, mark.embrey wrote:
> 
> >




Re: [flexcoders] Re: Flash Debugger crashing in Firefox?

2010-07-15 Thread Wesley Acheson
Yup that seems to be more or less it.

https://wiki.mozilla.org/Firefox/Crash_Protection



On Thu, Jul 15, 2010 at 7:08 PM, valdhor wrote:

> So, firefox is checking that the Flash plug-in is running. It seemed to me
> that if I opened a new tab and did something else for awhile and then came
> back to the tab later that it showed the plug-in had crashed. If there is
> nothing happening (Waiting on an event) then Firefox incorrectly assumes the
> plug-in has crashed.
>
> --- In flexcoders@yahoogroups.com, Wesley Acheson 
> wrote:
> >
> > Basically what else will break is firefox automatically checking if a
> plugin
> > is responsive.
> >
> > So if java or flash genuinely crash on you and are not responsive they
> will
> > continue to run potentially killing the browser. This isn't as bad as it
> > seems as this was always the case before firefox 3.6 anyway.
> >
> > Regards,
> >
> > Wesley Acheson
> >
> > On Thu, Jul 15, 2010 at 3:23 PM, valdhor wrote:
> >
> > > After a day of trying this "fix", I can confirm that it works. Of
> course, I
> > > don't know what else it will break ;-}
> > >
> > > --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> > > >
> > > > I'll give this a go and see what happens.
> > > >
> > > > --- In flexcoders@yahoogroups.com, Robert VanCuren Jr
> > >  wrote:
> > > > >
> > > > >
> > >
> http://www.riaxe.com/blog/flex/flex-firefox-flash-debug-player-crash-solved/
> > > > >
> > > > > On Tue, Jul 13, 2010 at 3:40 PM, kris range  wrote:
> > > > >
> > > > > >
> > > > > >
> > > > > > Something like this happens to me on Safari OS X. If an flash
> > > > > > application is loading or doing something and I go to another
> page,
> > > > > > I'll usually get an IOErrorEvent error with the error dialog
> popping
> > > > > > up, then it disappears and I can't click on anything in the
> browser
> > > > > > (Flash or not). Very annoying. I hope they fix this soon as this
> > > > > > didn't happen for me before 10.1
> > > > > >
> > > > > >
> > > > > > On Tue, Jul 13, 2010 at 7:12 PM, valdhor  > > >
> > > > > > wrote:
> > > > > > > Yes. I am getting this a lot and not just my own code. The
> crash
> > > report
> > > > > > happens on pretty much any site that has flash content. I don't
> know
> > > if this
> > > > > > is a problem with the Flash debugger or Firefox but it did not
> happen
> > > before
> > > > > > the latest update to Firefox.
> > > > > > >
> > > > > > > --- In flexcoders@yahoogroups.com  40yahoogroups.com>,
> > > Rick
> > > > > > Schmitty  wrote:
> > > > > > >>
> > > > > > >> Is anybody having an issue with Flash 10 debugger and
> Firefox's
> > > new
> > > > > > >> anti crash feature?  Whenever I get a debug popup from flash
> > > Firefox
> > > > > > >> thinks Flash crashed and locks up completely until the lil
> frowny
> > > lego
> > > > > > >> with text that says "The Adobe Flash plugin has crashed.  Send
> > > crash
> > > > > > >> report"
> > > > > > >>
> > > > > > >> The debugger works fine in IE or if no debug popups in FF it
> works
> > > fine
> > > > > > >>
> > > > > > >> Anyone else run into this?
> > > > > > >>
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > 
> > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Flexcoders Mailing List
> > > > > > > FAQ:
> > > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > > > > Alternative FAQ location:
> > > > > >
> > >
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > > > > >  > Search Archives:
> > > > > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
> > > Groups
> > > > > > Links
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > >
> > > 
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Alternative FAQ location:
> > >
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > > Search Archives:
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > > Links
> > >
> > >
> > >
> > >
> >
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


[flexcoders] Re: textInput databinding

2010-07-15 Thread mark.embrey
Brendan,

I've tried this every which way I can imagine... variable assignment within 
quotes, without quotes, within and without braces, and with and without dot 
notation before item selection.

Going back to the beginning, I'm wondering if there might be another way to get 
the value I want into a variable. Specifically, I'm wondering if I can bind the 
value I want to some other type variable and then copy/change/cast it to a 
String variable.

Any other ideas/suggestions?

thanks, Mark

--- In flexcoders@yahoogroups.com, Brendan Meutzner  wrote:
>
> Mark,
> 
> What isn't working... the binding?  What are you getting for your TextInput
> text value with the suggestions from Oleg and myself.  You definitely
> shouldn't be getting the same issue as you first posted about with these
> updates, so where is it falling short now?
> 
> 
> Brendan
> 
> 
> 
> On Thu, Jul 15, 2010 at 4:39 PM, mark.embrey wrote:
> 
> >
> >
> > thanks for the suggestion, Oleg, but that didn't solve my problem... any
> > other ideas?
> >
> > thanks,
> >
> > Mark
> >
> >
> > --- In flexcoders@yahoogroups.com , Oleg
> > Sivokon  wrote:
> > >
> > > That won't also work because there's a redundant dot before the bracket.
> > ;)
> > >
> >
> >  
> >
>




Re: [flexcoders] Re: textInput databinding

2010-07-15 Thread Oleg Sivokon
Hi, I think square brackets may be an obstacle here. I think they didn't
always work, or maybe they don't work even now? Anyways, if that's an array
collection, you'd better use getItemAt() and if that's an XML or XMLList,
you'd be better of with the XML / XMLList methods corresponding to what you
wanted to do (like child(), children() and so on).
Also, "data" is often times used in the framework for instances of Object,
which is not bindable because it is not an IEvetnDispatcher. Check that
option too.


Re: [flexcoders] Re: textInput databinding

2010-07-15 Thread Brendan Meutzner
Why wouldn't you just do this:





On Thu, Jul 15, 2010 at 4:38 PM, mark.embrey wrote:

>
>
> Actually, as I understand it, I am using ActionScript to create a variable,
> but I am then binding that to an mxml component, no?
>
> anyway, any ideas of how to do this?
>
> thanks!
>
> Mark
>
>
> --- In flexcoders@yahoogroups.com ,
> "valdhor"  wrote:
> >
> > That would never have worked in Flex 3.
> >
> > You are trying to use a binding expression in ActionScript code which
> will never work. Binding expressions like that will only work in MXML code.
> >
> > --- In flexcoders@yahoogroups.com ,
> "mark.embrey"  wrote:
> > >
> > > Adobe, in their infinite wisdom, removed the "data" property from Spark
> > > TextInput.
> > >
> > > There is an example of assigning bindable data to a variable for use in
> > > the text value with Flex 4 at Binding to an MXML TextInput control
> > > <
> http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf6\
>  >
> > 9084-7d85.html> . I have tried to implement this technique but have
> > > still been unable to get it to work.
> > >
> > > When I specify the following:
> > >
> > > [Bindable]
> > > public var
> > > collection:String="{myDataProvider.data.name.[0]}";
> > >
> > > I simply receive the following in my textInput field:
> > >
> > >
> > > {myDataProvider.data.name.[0]}
> > >
> > > Does anyone have any ideas as to how I might specify a bindable
> variable
> > > such that it will display as desired ?
> > >
> > > (FWIW, this worked like a charm in Flex 3)
> > >
> > >
> > > thanks!
> > >
> > > MCE
> > >
> >
>
>  
>


Re: [flexcoders] Re: textInput databinding

2010-07-15 Thread Brendan Meutzner
Mark,

What isn't working... the binding?  What are you getting for your TextInput
text value with the suggestions from Oleg and myself.  You definitely
shouldn't be getting the same issue as you first posted about with these
updates, so where is it falling short now?


Brendan



On Thu, Jul 15, 2010 at 4:39 PM, mark.embrey wrote:

>
>
> thanks for the suggestion, Oleg, but that didn't solve my problem... any
> other ideas?
>
> thanks,
>
> Mark
>
>
> --- In flexcoders@yahoogroups.com , Oleg
> Sivokon  wrote:
> >
> > That won't also work because there's a redundant dot before the bracket.
> ;)
> >
>
>  
>


[flexcoders] Re: textInput databinding

2010-07-15 Thread mark.embrey
Actually, as I understand it, I am using ActionScript to create a variable, but 
I am then binding that to an mxml component, no?

anyway, any ideas of how to do this?

thanks!

Mark


--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> That would never have worked in Flex 3.
> 
> You are trying to use a binding expression in ActionScript code which will 
> never work. Binding expressions like that will only work in MXML code.
> 
> --- In flexcoders@yahoogroups.com, "mark.embrey"  wrote:
> >
> > Adobe, in their infinite wisdom, removed the "data" property from Spark
> > TextInput.
> > 
> > There is an example of assigning bindable data to a variable for use in
> > the text value with Flex 4 at  Binding to an MXML TextInput control
> >  > 9084-7d85.html>   . I have tried to implement this technique but have
> > still been unable to get it to work.
> > 
> > When I specify the following:
> > 
> >  [Bindable]
> >  public var
> > collection:String="{myDataProvider.data.name.[0]}";
> > 
> > I simply receive the following in my textInput field:
> > 
> > 
> >  {myDataProvider.data.name.[0]}
> > 
> > Does anyone have any ideas as to how I might specify a bindable variable
> > such that it will display as desired ?
> > 
> > (FWIW, this worked like a charm in Flex 3)
> > 
> > 
> > thanks!
> > 
> > MCE
> >
>




[flexcoders] Re: textInput databinding

2010-07-15 Thread mark.embrey
thanks for the suggestion, Oleg, but that didn't solve my problem... any other 
ideas?

thanks,

Mark


--- In flexcoders@yahoogroups.com, Oleg Sivokon  wrote:
>
> That won't also work because there's a redundant dot before the bracket. ;)
>




[flexcoders] Re: textInput databinding

2010-07-15 Thread mark.embrey
thanks for the suggestion, but that doesn't work

--- In flexcoders@yahoogroups.com, Brendan Meutzner  wrote:
>
> [Bindable]
> public var collection:String = myDataProvider.data.name.[0];
> 
> Does that work?
> 
> 
> 
> 
> On Thu, Jul 15, 2010 at 12:59 PM, mark.embrey wrote:
> 
> >
> >
> > Adobe, in their infinite wisdom, removed the "data" property from Spark
> > TextInput.
> >
> > There is an example of assigning bindable data to a variable for use in the
> > text value with Flex 4 at  Binding to an MXML TextInput 
> > control.
> >  I have tried to implement this technique but have still been unable to get
> > it to work.
> >
> > When I specify the following:
> >
> > [Bindable]
> > public var collection:String="{myDataProvider.data.name.[0]}";
> >
> > I simply receive the following in my textInput field:
> >
> >
> > {myDataProvider.data.name.[0]}
> >
> > Does anyone have any ideas as to how I might specify a bindable variable
> > such that it will display as desired ?
> >
> > (FWIW, this worked like a charm in Flex 3)
> >
> >
> > thanks!
> >
> > MCE
> >  
> >
>




Re: [flexcoders] Re: textInput databinding

2010-07-15 Thread Brendan Meutzner
Good catch Oleg :-)



On Thu, Jul 15, 2010 at 2:59 PM, Oleg Sivokon  wrote:

>
>
> That won't also work because there's a redundant dot before the bracket. ;)
>
>  
>


Re: [flexcoders] Re: textInput databinding

2010-07-15 Thread Oleg Sivokon
That won't also work because there's a redundant dot before the bracket. ;)


[flexcoders] Re: textInput databinding

2010-07-15 Thread valdhor
That would never have worked in Flex 3.

You are trying to use a binding expression in ActionScript code which will 
never work. Binding expressions like that will only work in MXML code.

--- In flexcoders@yahoogroups.com, "mark.embrey"  wrote:
>
> Adobe, in their infinite wisdom, removed the "data" property from Spark
> TextInput.
> 
> There is an example of assigning bindable data to a variable for use in
> the text value with Flex 4 at  Binding to an MXML TextInput control
>  9084-7d85.html>   . I have tried to implement this technique but have
> still been unable to get it to work.
> 
> When I specify the following:
> 
>  [Bindable]
>  public var
> collection:String="{myDataProvider.data.name.[0]}";
> 
> I simply receive the following in my textInput field:
> 
> 
>  {myDataProvider.data.name.[0]}
> 
> Does anyone have any ideas as to how I might specify a bindable variable
> such that it will display as desired ?
> 
> (FWIW, this worked like a charm in Flex 3)
> 
> 
> thanks!
> 
> MCE
>




Re: [flexcoders] textInput databinding

2010-07-15 Thread Brendan Meutzner
[Bindable]
public var collection:String = myDataProvider.data.name.[0];

Does that work?




On Thu, Jul 15, 2010 at 12:59 PM, mark.embrey wrote:

>
>
> Adobe, in their infinite wisdom, removed the "data" property from Spark
> TextInput.
>
> There is an example of assigning bindable data to a variable for use in the
> text value with Flex 4 at  Binding to an MXML TextInput 
> control.
>  I have tried to implement this technique but have still been unable to get
> it to work.
>
> When I specify the following:
>
> [Bindable]
> public var collection:String="{myDataProvider.data.name.[0]}";
>
> I simply receive the following in my textInput field:
>
>
> {myDataProvider.data.name.[0]}
>
> Does anyone have any ideas as to how I might specify a bindable variable
> such that it will display as desired ?
>
> (FWIW, this worked like a charm in Flex 3)
>
>
> thanks!
>
> MCE
>  
>


[flexcoders] textInput databinding

2010-07-15 Thread mark.embrey
Adobe, in their infinite wisdom, removed the "data" property from Spark
TextInput.

There is an example of assigning bindable data to a variable for use in
the text value with Flex 4 at  Binding to an MXML TextInput control
   . I have tried to implement this technique but have
still been unable to get it to work.

When I specify the following:

 [Bindable]
 public var
collection:String="{myDataProvider.data.name.[0]}";

I simply receive the following in my textInput field:


 {myDataProvider.data.name.[0]}

Does anyone have any ideas as to how I might specify a bindable variable
such that it will display as desired ?

(FWIW, this worked like a charm in Flex 3)


thanks!

MCE



[flexcoders] Re: Flash Debugger crashing in Firefox?

2010-07-15 Thread valdhor
So, firefox is checking that the Flash plug-in is running. It seemed to me that 
if I opened a new tab and did something else for awhile and then came back to 
the tab later that it showed the plug-in had crashed. If there is nothing 
happening (Waiting on an event) then Firefox incorrectly assumes the plug-in 
has crashed.

--- In flexcoders@yahoogroups.com, Wesley Acheson  wrote:
>
> Basically what else will break is firefox automatically checking if a plugin
> is responsive.
> 
> So if java or flash genuinely crash on you and are not responsive they will
> continue to run potentially killing the browser. This isn't as bad as it
> seems as this was always the case before firefox 3.6 anyway.
> 
> Regards,
> 
> Wesley Acheson
> 
> On Thu, Jul 15, 2010 at 3:23 PM, valdhor wrote:
> 
> > After a day of trying this "fix", I can confirm that it works. Of course, I
> > don't know what else it will break ;-}
> >
> > --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> > >
> > > I'll give this a go and see what happens.
> > >
> > > --- In flexcoders@yahoogroups.com, Robert VanCuren Jr
> >  wrote:
> > > >
> > > >
> > http://www.riaxe.com/blog/flex/flex-firefox-flash-debug-player-crash-solved/
> > > >
> > > > On Tue, Jul 13, 2010 at 3:40 PM, kris range  wrote:
> > > >
> > > > >
> > > > >
> > > > > Something like this happens to me on Safari OS X. If an flash
> > > > > application is loading or doing something and I go to another page,
> > > > > I'll usually get an IOErrorEvent error with the error dialog popping
> > > > > up, then it disappears and I can't click on anything in the browser
> > > > > (Flash or not). Very annoying. I hope they fix this soon as this
> > > > > didn't happen for me before 10.1
> > > > >
> > > > >
> > > > > On Tue, Jul 13, 2010 at 7:12 PM, valdhor  > >
> > > > > wrote:
> > > > > > Yes. I am getting this a lot and not just my own code. The crash
> > report
> > > > > happens on pretty much any site that has flash content. I don't know
> > if this
> > > > > is a problem with the Flash debugger or Firefox but it did not happen
> > before
> > > > > the latest update to Firefox.
> > > > > >
> > > > > > --- In flexcoders@yahoogroups.com ,
> > Rick
> > > > > Schmitty  wrote:
> > > > > >>
> > > > > >> Is anybody having an issue with Flash 10 debugger and Firefox's
> > new
> > > > > >> anti crash feature?  Whenever I get a debug popup from flash
> > Firefox
> > > > > >> thinks Flash crashed and locks up completely until the lil frowny
> > lego
> > > > > >> with text that says "The Adobe Flash plugin has crashed.  Send
> > crash
> > > > > >> report"
> > > > > >>
> > > > > >> The debugger works fine in IE or if no debug popups in FF it works
> > fine
> > > > > >>
> > > > > >> Anyone else run into this?
> > > > > >>
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > 
> > > > >
> > > > > >
> > > > > > --
> > > > > > Flexcoders Mailing List
> > > > > > FAQ:
> > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > > > Alternative FAQ location:
> > > > >
> > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > > > >  > Search Archives:
> > > > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
> > Groups
> > > > > Links
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location:
> > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > Links
> >
> >
> >
> >
>




Re: [flexcoders] Loaded SWF loses nested child instance name

2010-07-15 Thread Clark Stevenson
Your a gentleman Oleg thanks for explaining.

Clark

On 15 July 2010 11:41, Oleg Sivokon  wrote:

>
>
> Nope, not really, what happens is like this: the document class is a
> sprite, which has some code in it, which is called first in the application
> and this class is automatically added to stage, if it is not loaded.
> However, if the SWF is loaded, then the class isn't automatically added to
> stage, however, the constructor is executed before that.
> Now, Flash will create variables and assign the library instances to those
> variables if you put those instances on the stage, however, if you turn off
> the "automatically declare stage instances", Flash will not create the
> corresponding variables for them (and so you will get an option to define
> them yourself in your class. You don't need to initialize those variables to
> anything, Flash will initialize them to the timeline placed instances of the
> same name.
>  
>


Re: [flexcoders] Re: Flash Debugger crashing in Firefox?

2010-07-15 Thread Wesley Acheson
Basically what else will break is firefox automatically checking if a plugin
is responsive.

So if java or flash genuinely crash on you and are not responsive they will
continue to run potentially killing the browser. This isn't as bad as it
seems as this was always the case before firefox 3.6 anyway.

Regards,

Wesley Acheson

On Thu, Jul 15, 2010 at 3:23 PM, valdhor wrote:

> After a day of trying this "fix", I can confirm that it works. Of course, I
> don't know what else it will break ;-}
>
> --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> >
> > I'll give this a go and see what happens.
> >
> > --- In flexcoders@yahoogroups.com, Robert VanCuren Jr
>  wrote:
> > >
> > >
> http://www.riaxe.com/blog/flex/flex-firefox-flash-debug-player-crash-solved/
> > >
> > > On Tue, Jul 13, 2010 at 3:40 PM, kris range  wrote:
> > >
> > > >
> > > >
> > > > Something like this happens to me on Safari OS X. If an flash
> > > > application is loading or doing something and I go to another page,
> > > > I'll usually get an IOErrorEvent error with the error dialog popping
> > > > up, then it disappears and I can't click on anything in the browser
> > > > (Flash or not). Very annoying. I hope they fix this soon as this
> > > > didn't happen for me before 10.1
> > > >
> > > >
> > > > On Tue, Jul 13, 2010 at 7:12 PM, valdhor  >
> > > > wrote:
> > > > > Yes. I am getting this a lot and not just my own code. The crash
> report
> > > > happens on pretty much any site that has flash content. I don't know
> if this
> > > > is a problem with the Flash debugger or Firefox but it did not happen
> before
> > > > the latest update to Firefox.
> > > > >
> > > > > --- In flexcoders@yahoogroups.com ,
> Rick
> > > > Schmitty  wrote:
> > > > >>
> > > > >> Is anybody having an issue with Flash 10 debugger and Firefox's
> new
> > > > >> anti crash feature?  Whenever I get a debug popup from flash
> Firefox
> > > > >> thinks Flash crashed and locks up completely until the lil frowny
> lego
> > > > >> with text that says "The Adobe Flash plugin has crashed.  Send
> crash
> > > > >> report"
> > > > >>
> > > > >> The debugger works fine in IE or if no debug popups in FF it works
> fine
> > > > >>
> > > > >> Anyone else run into this?
> > > > >>
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > 
> > > >
> > > > >
> > > > > --
> > > > > Flexcoders Mailing List
> > > > > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > > Alternative FAQ location:
> > > >
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > > >  > Search Archives:
> > > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
> Groups
> > > > Links
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> >
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


[flexcoders] Re: Flash Debugger crashing in Firefox?

2010-07-15 Thread valdhor
After a day of trying this "fix", I can confirm that it works. Of course, I 
don't know what else it will break ;-}

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> I'll give this a go and see what happens.
> 
> --- In flexcoders@yahoogroups.com, Robert VanCuren Jr  
> wrote:
> >
> > http://www.riaxe.com/blog/flex/flex-firefox-flash-debug-player-crash-solved/
> > 
> > On Tue, Jul 13, 2010 at 3:40 PM, kris range  wrote:
> > 
> > >
> > >
> > > Something like this happens to me on Safari OS X. If an flash
> > > application is loading or doing something and I go to another page,
> > > I'll usually get an IOErrorEvent error with the error dialog popping
> > > up, then it disappears and I can't click on anything in the browser
> > > (Flash or not). Very annoying. I hope they fix this soon as this
> > > didn't happen for me before 10.1
> > >
> > >
> > > On Tue, Jul 13, 2010 at 7:12 PM, valdhor 
> > > >
> > > wrote:
> > > > Yes. I am getting this a lot and not just my own code. The crash report
> > > happens on pretty much any site that has flash content. I don't know if 
> > > this
> > > is a problem with the Flash debugger or Firefox but it did not happen 
> > > before
> > > the latest update to Firefox.
> > > >
> > > > --- In flexcoders@yahoogroups.com , Rick
> > > Schmitty  wrote:
> > > >>
> > > >> Is anybody having an issue with Flash 10 debugger and Firefox's new
> > > >> anti crash feature?  Whenever I get a debug popup from flash Firefox
> > > >> thinks Flash crashed and locks up completely until the lil frowny lego
> > > >> with text that says "The Adobe Flash plugin has crashed.  Send crash
> > > >> report"
> > > >>
> > > >> The debugger works fine in IE or if no debug popups in FF it works fine
> > > >>
> > > >> Anyone else run into this?
> > > >>
> > > >
> > > >
> > > >
> > > >
> > > > 
> > >
> > > >
> > > > --
> > > > Flexcoders Mailing List
> > > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > Alternative FAQ location:
> > > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > >  > Search Archives:
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > > Links
> > > >
> > > >
> > > >
> > > >
> > >
> > >  
> > >
> >
>




Re: [flexcoders] Loaded SWF loses nested child instance name

2010-07-15 Thread Oleg Sivokon
Nope, not really, what happens is like this: the document class is a sprite,
which has some code in it, which is called first in the application and this
class is automatically added to stage, if it is not loaded. However, if the
SWF is loaded, then the class isn't automatically added to stage, however,
the constructor is executed before that.
Now, Flash will create variables and assign the library instances to those
variables if you put those instances on the stage, however, if you turn off
the "automatically declare stage instances", Flash will not create the
corresponding variables for them (and so you will get an option to define
them yourself in your class. You don't need to initialize those variables to
anything, Flash will initialize them to the timeline placed instances of the
same name.


Re: [flexcoders] Loaded SWF loses nested child instance name

2010-07-15 Thread Clark Stevenson
Thanks for your quick reply Oleg as always.

I have been looking for ways to make this happen over the last few hours.

My latest brainwave (pathetic guess attempt) was a Document class called
Main which looked something like this:

public var itemRef:MovieClip = MovieClip(this.item);
public var colorRef:MovieClip = MovieClip(itemRef.color);
public var overlayRef:MovieClip = MovieClip(itemRef.overlay);

I dont really understand the document class as Flash isnt really my working
tool. However, i assumed this would work. If Main.as is a flas document
class, then Main essentially becomes "root" ? In any case

loadedSWF.itemRef = undefined.

Usually we generate SWCs with Actionscript identifiers but since thats a
compile time process?, and this is a runtime process, im a little confused.
All of these swfs simply have:

root
-item
--color
--overlay


I might just be best to stick to depths as long as im clear to explain that
color must always be on the bottom depth. I still dont understand why names
break however.

Cheers,


Clark.



On 14 July 2010 12:50, Oleg Sivokon  wrote:

>
>
> Well, that wasn't a good idea from the start, as instance name isn't a
> reliable identification (you can assign two identical names to different
> instances and that will compile, while the second instance will not
> be available). What I usually do in such case is: I prepare the class with
> the fields it should have, give it to designer and explain hot to link their
> library items to that class, and then when I compile, I use my own version
> of that class with the functionality added, this way we (me and designer)
> can work on the same class and I don't have problems using it in my project.
> Ah, important to note, this approach requires that the designer turn off
> the "automatically declare stage instances" in publish settings.
>  
>