Re: [Flashcoders] find and delete XML nodes

2009-03-09 Thread Joel Stransky
Thanks guys, those were both very helpful.

On Mon, Mar 9, 2009 at 3:35 AM, Muzak  wrote:

>
>> delete xml.child.(@id=="b");
>>
>>
> You might wanna try that first..
>
>   TypeError: Error #1119: Delete operator is not supported with operand of
> type XMLList.
> "delete" works as long as the XMLList is not retrieved using an expression,
> which in this case it is: (@id == "b").
>
> So the following works (and deletes all elements):
>
>   var s:String = ' />';
>   var xml:XML = new XML(s);
>   delete xml.child;
>
> Bug or feature? Who knows..
>
> regards,
> Muzak
>
> - Original Message - From: "liutoday" 
> To: 
> Sent: Monday, March 09, 2009 5:28 AM
> Subject: RE: [Flashcoders] find and delete XML nodes
>
>
>
>>
>>
>>  Date: Sun, 8 Mar 2009 23:38:17 -0400
>>> From: j...@stranskydesign.com
>>> To: flashcoders@chattyfig.figleaf.com
>>> Subject: [Flashcoders] find and delete XML nodes
>>>
>>> I have some xml nodes where I need to evaluate their attributes and
>>> delete
>>> them if they meet certain criteria. It's probably simple but its late and
>>> brain fatigue is setting in.
>>>
>>> Say I had this node
>>>
>>> 
>>>  
>>>  
>>>  
>>>  
>>> 
>>>
>>> How would I find and delete any  who's id is "b" ?
>>> --
>>> --Joel Stransky
>>> stranskydesign.com
>>> ___
>>>
>>
>>
>> delete xml.child.(@id=="b");
>>
>>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
--Joel Stransky
stranskydesign.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3 - XML Filter by Date

2009-03-09 Thread David Hershberger
You can filter XML with arbitrary boolean functions, so the answer is
definitely yes.

See http://livedocs.adobe.com/flex/3/html/13_Working_with_XML_08.html#131880

One of the examples there shows XML stored in var x with a list of  type elements, and you can use this syntax to get an XMLList of
employees with id attributes over 300:

x.employee.(@id > 300)

Similarly, if you had a birthdate field stored as milliseconds since 1970
you could filter on that like so:

x.employee.(new Date(@birthdate).getFullYear() == 2000)

to return a list of employees who were born in the year 2000.  (Presumably a
short list. :-)

Dave

On Mon, Mar 9, 2009 at 1:07 PM, Eric E. Dolecki  wrote:

> I suppose if the XML has that kind of data in it you could.
>
> On Mon, Mar 9, 2009 at 12:02 PM, Doug Coning  wrote:
>
> > Greetings everyone,
> >
> > In AS3, can you filter xml by a date value or range?
> >
> > Thanks,
> >
> > Doug Coning
> >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
> http://ericd.net
> Interactive design and development
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3 - XML Filter by Date

2009-03-09 Thread Eric E. Dolecki
I suppose if the XML has that kind of data in it you could.

On Mon, Mar 9, 2009 at 12:02 PM, Doug Coning  wrote:

> Greetings everyone,
>
> In AS3, can you filter xml by a date value or range?
>
> Thanks,
>
> Doug Coning
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: include directive ...

2009-03-09 Thread Nate Beck
We had a conversation about this on FlexCoders a little while ago.  Here
were my thoughts on using include:

http://blog.natebeck.net/2009/01/tip-of-the-day-when-to-use-include/


On Sat, Mar 7, 2009 at 9:01 PM, SJF  wrote:

> Thanks All,
>
> I have to externalize the AS in this application because it's driving me
> insane not being able to search the code.
>
> There is approx. 25-30+ objects with no real encapsulation or consistency
> in
> place regarding the code.
>
> I can't put the whole thing into classes, as the risk is too high,
> considering I've been handed this beast a couple of weeks before it becomes
> the corner stone of a substantial project launch, and don't have the time
> to
> be certain everything will work using classes/packages/oop (as it should
> have been created).
>
> Thanks again - here goes!
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 

Cheers,
Nate

http://blog.natebeck.net
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Position available: Actionscript expert needed for full time position in Sweden, or Finland.

2009-03-09 Thread Jeremy Brown
Hello everyone!

I am looking for a full time ActionScript developer in Sweden or Finland for
long term employment.

Level: Expert.
Pay: Very good for the right person.
Work: From home. =)

Basically it would be like freelancing, but with a stable paycheck.

The main two things are:

You are an expert with Flash / AS3 / oop / design patterns etc!
You are looking for a company to settle down with long term!

The work is mostly with online gambling.

If you think this sounds interesting shoot me an email.

cheers

Jer

-- 
J3R Multimedia AB
+358 40 855 8171
email & msn: j...@j3r.com

http://www.j3r.com/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Capture sound input in Flash as MP3?

2009-03-09 Thread Nate Beck
FFMPEG does support the NellyMoser Asao codec (which the Flash Player uses).

It says so in the 0.5 changelog.  http://www.ffmpeg.org/changelog.html

Cheers

On Sat, Mar 7, 2009 at 1:25 AM, Anthony Pace wrote:

> Hi,
>
> Extracting the audio from the flv is a great idea.
>
> I originally wanted to do a port for red5, from java to php or c++; yet,
> after receiving some advice from the red5 guy Paul Gregoire at FITC TO 2008,
> and after looking at the code and how tied into mina it was, I figured it
> would be easier to learn the protocol, and then come up with a custom
> solution; yet, even though learning the protocol would be easier, I must
> admit that I have been really really lazy with going ahead and doing it, and
> it sucks cause if I had actually started during the summer I would have had
> everything functioning by now and probably been getting paid quite well
> because of it.
>
> Does anyone actually have any totally clear info/documentation on how the
> protocol works step by step?  Share what you know and I promise I will share
> my solution.  I took a look at the IoConstants.java file, along with the an
> image that seems to have most of the info, and they both look like they will
> be quite helpful; yet, I would really love some total documentation.
>
> I would write the documentation if I only knew what the hell I was doing.
>
> Thanks,
> Anthony
>
>
>
>
> Juan Pablo Califano wrote:
>
>> Cool, I thought ffmpeg didn't support the nelly moser codec used by the
>> player to publish audio data.
>>
>> Cheers
>> Juan Pablo Califano
>>
>>
>> 2009/3/6, BOYD SPEER :
>>
>>
>>> After getting the oflaDemo to work one solution is to use ffmpeg to
>>> change
>>> the file type from .flv to .mp3 using a php script that has a
>>> 'shell_exec()'
>>> line. I placed the ffmpeg.exe in the same 'streams' folder as the .flv
>>> files
>>> and then after the conversion has taken place the php script moves and
>>> renames the .mp3 file to its final location.
>>>
>>> -
>>> Boyd
>>> - Original Message -
>>> From: Glen Pike 
>>> Date: Friday, March 6, 2009 3:14 am
>>> Subject: Re: [Flashcoders] Capture sound input in Flash as MP3?
>>> To: Flash Coders List 
>>>
>>>
>>>
 It's scary, but not that scary when you get into it...  ...
 I posted a
 rough outline for someone a week or so ago on the Osflash list -
 there
 is a basic recording application in the examples...

 http://www.mail-archive.com/osfl...@osflash.org/msg15410.html

 Don't forget to ask Red5 specific questions on the Red5 list -
 Osflashers sometimes get a bee in their bonnet about this one :)

 Glen

 confustic...@gmail.com wrote:


> Thanks for your reply Glen. That is really handy to know.
>
> Now to plunge into what looks like the terrifying world of
>
>
 Red5. *shiver*


> Cheers,
> CB.
>
> On Thu, Mar 5, 2009 at 11:10 PM, Glen Pike
>
>
 wrote:>


> Hi,
>>
>>  You can "capture" the microphone sound in Flash
>>
>>
> by publishing it to a


> server via a Netstream connected to Flash Media Server or
>>
>>
> Red5 (OS media


> server).
>>
>>  You can't get the sound from the microphone and
>>
>>
> save it to an mp3 on your


> machine without sending it to be recorded by the server first...
>>
>>  HTH
>>
>>  Glen
>>
>>
>> confustic...@gmail.com wrote:
>>
>>
>>
>>
>>>  Hello List,
>>>
>>> I wonder if I could get this sorted out once and for all.
>>>
>>> A colleague is convinced that you can capture a SWF's sound input
>>> (possibly
>>> through the Microphone class) and save it as an MP3.
>>>
>>>
>> However, said


> colleague
>>> has not yet provided any proof or examples.
>>>
>>> I meanwhile have been trying to find examples / tutorials /
>>>
>>>
>> documentation>>> regarding this and have come up empty.


> Would anyone know if this is / isn't possible? We would love
>>>
>>>
>> for our users


> to be able to record their speech onto a server or their
>>>
>>>
>> local hard


> drives.
>>>
>>> Cheers,
>>> CB.
>>> ___
>>> Flashcoders mailing list
>>> Flashcoders@chattyfig.figleaf.com
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
>>
>>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/l

[Flashcoders] Changing width of seekBar during playback (AS2, FLVPlayback)

2009-03-09 Thread jonas magnusson
Hi List,

I would like to make a FLV player that scales up the width depending on
Stage.width.
The width is different depending on size when starting up, and the user
monitor size when in fullscreen.

I am using the FLVPlayback component AS2.0 (several months of work put in
already).
Video can easily be scaled up, but the seekbar is a big problem.

When i change the width of the seekbar, the flvplayback/seekbar does not
"realize" the new limits of the handle.

Most often the seekBar just takes on a temporary look but then reverts back
after video-end.
So no new left-right limits + temporary graphic change.

Solutions tried:

Placing differently sized seekbars of the same name in different keyframes,
jumping between keyframes (no change at all)

Setting width: "seekBar._width = 300" or "seekBar.progress_mc._width = 300"
(temporary background-only change)

Switching streams after width-change to force update.


Having double seekbars, updating the size of one, then switching between
them (flvplb.seekBar = seekBar2).
Works really well for the new limits, the handle now moves between new
limits. Problem with this solution is that the new handle is not clickable.
Also, there are a lot of "dead handles" from the previous switches. The
"click-area" remains behind the first dead handle.
I managed to remove the graphics of previous handles by
using "handle_mc.removeMovieClip()", but the new handle does not get
assigned the functionality"onPress" -> "startDragging.."


Any and all suggestions appreciated!

/Jonas
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS3 - XML Filter by Date

2009-03-09 Thread Doug Coning
Greetings everyone,

In AS3, can you filter xml by a date value or range?

Thanks,

Doug Coning

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problem with export linkage definition in a loaded swf

2009-03-09 Thread laurent

ok it's something to do with bulkloader, I let it go from here :)
thanks
L

laurent a écrit :

even if I delete map.swf it's still loading it.

[BulkLoader] Loaded  LoadingItem url: 
http://localhost:2000/?action=map, type:xml, status: finished
[BulkLoader] Items to load LoadingItem url: 
http://localhost:2000/swf/map.swf, type:movieclip, status: null
[BulkLoader] Will load item: LoadingItem url: 
http://localhost:2000/swf/map.swf, type:movieclip, status: null
[BulkLoader] Started loading LoadingItem url: 
http://localhost:2000/swf/map.swf, type:movieclip, status: started

Opening one: 1
TypeError: Error #1009: Il est impossible d'accéder à la propriété ou 
à la méthode d'une référence d'objet nul.

   at client.sitc::Map()[D:\dev\as3lib\client\sitc\Map.as:24]



laurent a écrit :

that's great, it fixes the compile time issues. Good to know that.

Now, I know it can be anything now as the bug is really strange. For 
line 24, actually there's a braket there so...


It looks like it's loading always the same swf, I emptied the cache, 
deleted the http://localhost:2000/swf/map.swf, rebuild it.
Still same 24 line error...I know you might not be able to solve 
that, without coming to my office, but in any case I show it here.


Thank you so far
Laurent


laurent a écrit :

Ian Thomas a écrit :

I suspect this is a compile-time issue - your loading SWF has no idea
what 'Paris' means when trying to compile?

  
Yes, I mean france.Paris, maybe the compiler thinks its usa.Paris 
... :)

In which case you need to pick it up at runtime.

Try flash.system.ApplicationDomain.currentDomain.getDefinition()

e.g.

var 
myClass:Class=ApplicationDomain.currentDomain.getDefinition("Paris")

as Class;

var myObject:Object=new myClass();
addChild(myObject);
  

I'm gonna try that

Alternatively, you might need to access the applicationDomain of the
Loader instead (I've no idea how you're loading the SWF). You could
try:

var 
myClass:Class=myLoader.contentLoaderInfo.applicationDomain.getDefinition("Paris") 


as Class;
  

and maybe that and then BoudismeI'm using Bulkloader.
Thank you guys!
Laurent

HTH,
   Ian

On Mon, Mar 9, 2009 at 1:01 PM, Eric E. Dolecki 
 wrote:
 
Are you sure the swf is loaded before trying to instantiate the 
class?


On Mon, Mar 9, 2009 at 8:47 AM, laurent  
wrote:


 

Hi,

I have a map.swf containing a linked movie clip named Paris as a 
exported

Class.

I load this map from another swf. The problem that occure in 
different ways

is that the loading swf don't recognise the Paris definition:
1046: Type was not found or was not a compile-time constant: 
Paris. // this

is for definition : public var view : Paris;
1180: Call to a possibly undefined method Paris. // this is for
instantiation: view = new Paris();

I don't know what to do, except putting that Paris map directly 
on stage to

avoid linkage.

thx
Laurent
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  


--
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problem with export linkage definition in a loaded swf

2009-03-09 Thread laurent

even if I delete map.swf it's still loading it.

[BulkLoader] Loaded  LoadingItem url: http://localhost:2000/?action=map, 
type:xml, status: finished
[BulkLoader] Items to load LoadingItem url: 
http://localhost:2000/swf/map.swf, type:movieclip, status: null
[BulkLoader] Will load item: LoadingItem url: 
http://localhost:2000/swf/map.swf, type:movieclip, status: null
[BulkLoader] Started loading LoadingItem url: 
http://localhost:2000/swf/map.swf, type:movieclip, status: started

Opening one: 1
TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à 
la méthode d'une référence d'objet nul.

   at client.sitc::Map()[D:\dev\as3lib\client\sitc\Map.as:24]



laurent a écrit :

that's great, it fixes the compile time issues. Good to know that.

Now, I know it can be anything now as the bug is really strange. For 
line 24, actually there's a braket there so...


It looks like it's loading always the same swf, I emptied the cache, 
deleted the http://localhost:2000/swf/map.swf, rebuild it.
Still same 24 line error...I know you might not be able to solve that, 
without coming to my office, but in any case I show it here.


Thank you so far
Laurent


laurent a écrit :

Ian Thomas a écrit :

I suspect this is a compile-time issue - your loading SWF has no idea
what 'Paris' means when trying to compile?

  

Yes, I mean france.Paris, maybe the compiler thinks its usa.Paris ... :)

In which case you need to pick it up at runtime.

Try flash.system.ApplicationDomain.currentDomain.getDefinition()

e.g.

var 
myClass:Class=ApplicationDomain.currentDomain.getDefinition("Paris")

as Class;

var myObject:Object=new myClass();
addChild(myObject);
  

I'm gonna try that

Alternatively, you might need to access the applicationDomain of the
Loader instead (I've no idea how you're loading the SWF). You could
try:

var 
myClass:Class=myLoader.contentLoaderInfo.applicationDomain.getDefinition("Paris") 


as Class;
  

and maybe that and then BoudismeI'm using Bulkloader.
Thank you guys!
Laurent

HTH,
   Ian

On Mon, Mar 9, 2009 at 1:01 PM, Eric E. Dolecki  
wrote:
 

Are you sure the swf is loaded before trying to instantiate the class?

On Mon, Mar 9, 2009 at 8:47 AM, laurent  
wrote:


  

Hi,

I have a map.swf containing a linked movie clip named Paris as a 
exported

Class.

I load this map from another swf. The problem that occure in 
different ways

is that the loading swf don't recognise the Paris definition:
1046: Type was not found or was not a compile-time constant: 
Paris. // this

is for definition : public var view : Paris;
1180: Call to a possibly undefined method Paris. // this is for
instantiation: view = new Paris();

I don't know what to do, except putting that Paris map directly on 
stage to

avoid linkage.

thx
Laurent
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  


--
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problem with export linkage definition in a loaded swf

2009-03-09 Thread laurent

that's great, it fixes the compile time issues. Good to know that.

Now, I know it can be anything now as the bug is really strange. For 
line 24, actually there's a braket there so...


It looks like it's loading always the same swf, I emptied the cache, 
deleted the http://localhost:2000/swf/map.swf, rebuild it.
Still same 24 line error...I know you might not be able to solve that, 
without coming to my office, but in any case I show it here.


Thank you so far
Laurent


laurent a écrit :

Ian Thomas a écrit :

I suspect this is a compile-time issue - your loading SWF has no idea
what 'Paris' means when trying to compile?

  

Yes, I mean france.Paris, maybe the compiler thinks its usa.Paris ... :)

In which case you need to pick it up at runtime.

Try flash.system.ApplicationDomain.currentDomain.getDefinition()

e.g.

var myClass:Class=ApplicationDomain.currentDomain.getDefinition("Paris")
as Class;

var myObject:Object=new myClass();
addChild(myObject);
  

I'm gonna try that

Alternatively, you might need to access the applicationDomain of the
Loader instead (I've no idea how you're loading the SWF). You could
try:

var 
myClass:Class=myLoader.contentLoaderInfo.applicationDomain.getDefinition("Paris") 


as Class;
  

and maybe that and then BoudismeI'm using Bulkloader.
Thank you guys!
Laurent

HTH,
   Ian

On Mon, Mar 9, 2009 at 1:01 PM, Eric E. Dolecki  
wrote:
 

Are you sure the swf is loaded before trying to instantiate the class?

On Mon, Mar 9, 2009 at 8:47 AM, laurent  
wrote:


   

Hi,

I have a map.swf containing a linked movie clip named Paris as a 
exported

Class.

I load this map from another swf. The problem that occure in 
different ways

is that the loading swf don't recognise the Paris definition:
1046: Type was not found or was not a compile-time constant: Paris. 
// this

is for definition : public var view : Paris;
1180: Call to a possibly undefined method Paris. // this is for
instantiation: view = new Paris();

I don't know what to do, except putting that Paris map directly on 
stage to

avoid linkage.

thx
Laurent
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  


--
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problem with export linkage definition in a loaded swf

2009-03-09 Thread laurent

Ian Thomas a écrit :

I suspect this is a compile-time issue - your loading SWF has no idea
what 'Paris' means when trying to compile?

  

Yes, I mean france.Paris, maybe the compiler thinks its usa.Paris ... :)

In which case you need to pick it up at runtime.

Try flash.system.ApplicationDomain.currentDomain.getDefinition()

e.g.

var myClass:Class=ApplicationDomain.currentDomain.getDefinition("Paris")
as Class;

var myObject:Object=new myClass();
addChild(myObject);
  

I'm gonna try that

Alternatively, you might need to access the applicationDomain of the
Loader instead (I've no idea how you're loading the SWF). You could
try:

var 
myClass:Class=myLoader.contentLoaderInfo.applicationDomain.getDefinition("Paris")
as Class;
  

and maybe that and then BoudismeI'm using Bulkloader.
Thank you guys!
Laurent

HTH,
   Ian

On Mon, Mar 9, 2009 at 1:01 PM, Eric E. Dolecki  wrote:
  

Are you sure the swf is loaded before trying to instantiate the class?

On Mon, Mar 9, 2009 at 8:47 AM, laurent  wrote:



Hi,

I have a map.swf containing a linked movie clip named Paris as a exported
Class.

I load this map from another swf. The problem that occure in different ways
is that the loading swf don't recognise the Paris definition:
1046: Type was not found or was not a compile-time constant: Paris. // this
is for definition : public var view : Paris;
1180: Call to a possibly undefined method Paris. // this is for
instantiation: view = new Paris();

I don't know what to do, except putting that Paris map directly on stage to
avoid linkage.

thx
Laurent
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  


--
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problem with export linkage definition in a loaded swf

2009-03-09 Thread laurent
ha ok I see what you mean. Those errors where coming at compile time 
because when loaded I cast the swf to Map(). When I dont do that there's 
no problem at compile time of course and then I got the 24 line error I 
sent before, still I change many time what's on 24 and got that error.


L

Eric E. Dolecki a écrit :

Are you sure the swf is loaded before trying to instantiate the class?

On Mon, Mar 9, 2009 at 8:47 AM, laurent  wrote:

  

Hi,

I have a map.swf containing a linked movie clip named Paris as a exported
Class.

I load this map from another swf. The problem that occure in different ways
is that the loading swf don't recognise the Paris definition:
1046: Type was not found or was not a compile-time constant: Paris. // this
is for definition : public var view : Paris;
1180: Call to a possibly undefined method Paris. // this is for
instantiation: view = new Paris();

I don't know what to do, except putting that Paris map directly on stage to
avoid linkage.

thx
Laurent
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders






  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problem with export linkage definition in a loaded swf

2009-03-09 Thread laurent

yes:

[BulkLoader] Items to load LoadingItem url: 
http://localhost:2000/swf/map.swf, type:movieclip, status: null
[BulkLoader] Will load item: LoadingItem url: 
http://localhost:2000/swf/map.swf, type:movieclip, status: null
[BulkLoader] Started loading LoadingItem url: 
http://localhost:2000/swf/map.swf, type:movieclip, status: started

Opening one: 1
TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à 
la méthode d'une référence d'objet nul.//can't acces null property

   at client.sitc::Map()[D:\dev\as3lib\client\sitc\Map.as:24]

and then I got this 24 line error that never change, even I'm deleting 
all map.swf possible I got on my computer, rebuild it and launch again. 
...everythings change many time at line 24 still same error...I don't 
get it grrr :)


L

Eric E. Dolecki a écrit :

Are you sure the swf is loaded before trying to instantiate the class?

On Mon, Mar 9, 2009 at 8:47 AM, laurent  wrote:

  

Hi,

I have a map.swf containing a linked movie clip named Paris as a exported
Class.

I load this map from another swf. The problem that occure in different ways
is that the loading swf don't recognise the Paris definition:
1046: Type was not found or was not a compile-time constant: Paris. // this
is for definition : public var view : Paris;
1180: Call to a possibly undefined method Paris. // this is for
instantiation: view = new Paris();

I don't know what to do, except putting that Paris map directly on stage to
avoid linkage.

thx
Laurent
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders






  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problem with export linkage definition in a loaded swf

2009-03-09 Thread Andrei Thomaz
maybe this help you:
http://jessewarden.com/2007/09/no-excludexml-in-flash-cs3-for-as3-solution-via-bridge-pattern.html

best,
andrei


On Mon, Mar 9, 2009 at 9:47 AM, laurent  wrote:

> Hi,
>
> I have a map.swf containing a linked movie clip named Paris as a exported
> Class.
>
> I load this map from another swf. The problem that occure in different ways
> is that the loading swf don't recognise the Paris definition:
> 1046: Type was not found or was not a compile-time constant: Paris. // this
> is for definition : public var view : Paris;
> 1180: Call to a possibly undefined method Paris. // this is for
> instantiation: view = new Paris();
>
> I don't know what to do, except putting that Paris map directly on stage to
> avoid linkage.
>
> thx
> Laurent
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problem with export linkage definition in a loaded swf

2009-03-09 Thread Ian Thomas
I suspect this is a compile-time issue - your loading SWF has no idea
what 'Paris' means when trying to compile?

In which case you need to pick it up at runtime.

Try flash.system.ApplicationDomain.currentDomain.getDefinition()

e.g.

var myClass:Class=ApplicationDomain.currentDomain.getDefinition("Paris")
as Class;

var myObject:Object=new myClass();
addChild(myObject);

Alternatively, you might need to access the applicationDomain of the
Loader instead (I've no idea how you're loading the SWF). You could
try:

var 
myClass:Class=myLoader.contentLoaderInfo.applicationDomain.getDefinition("Paris")
as Class;

HTH,
   Ian

On Mon, Mar 9, 2009 at 1:01 PM, Eric E. Dolecki  wrote:
> Are you sure the swf is loaded before trying to instantiate the class?
>
> On Mon, Mar 9, 2009 at 8:47 AM, laurent  wrote:
>
>> Hi,
>>
>> I have a map.swf containing a linked movie clip named Paris as a exported
>> Class.
>>
>> I load this map from another swf. The problem that occure in different ways
>> is that the loading swf don't recognise the Paris definition:
>> 1046: Type was not found or was not a compile-time constant: Paris. // this
>> is for definition : public var view : Paris;
>> 1180: Call to a possibly undefined method Paris. // this is for
>> instantiation: view = new Paris();
>>
>> I don't know what to do, except putting that Paris map directly on stage to
>> avoid linkage.
>>
>> thx
>> Laurent
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>
>
>
> --
> http://ericd.net
> Interactive design and development
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problem with export linkage definition in a loaded swf

2009-03-09 Thread Eric E. Dolecki
Are you sure the swf is loaded before trying to instantiate the class?

On Mon, Mar 9, 2009 at 8:47 AM, laurent  wrote:

> Hi,
>
> I have a map.swf containing a linked movie clip named Paris as a exported
> Class.
>
> I load this map from another swf. The problem that occure in different ways
> is that the loading swf don't recognise the Paris definition:
> 1046: Type was not found or was not a compile-time constant: Paris. // this
> is for definition : public var view : Paris;
> 1180: Call to a possibly undefined method Paris. // this is for
> instantiation: view = new Paris();
>
> I don't know what to do, except putting that Paris map directly on stage to
> avoid linkage.
>
> thx
> Laurent
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Problem with export linkage definition in a loaded swf

2009-03-09 Thread laurent

Hi,

I have a map.swf containing a linked movie clip named Paris as a 
exported Class.


I load this map from another swf. The problem that occure in different 
ways is that the loading swf don't recognise the Paris definition:
1046: Type was not found or was not a compile-time constant: Paris. // 
this is for definition : public var view : Paris;
1180: Call to a possibly undefined method Paris. // this is for 
instantiation: view = new Paris();


I don't know what to do, except putting that Paris map directly on stage 
to avoid linkage.


thx
Laurent
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] find and delete XML nodes

2009-03-09 Thread Muzak


delete xml.child.(@id=="b");



You might wanna try that first..

   TypeError: Error #1119: Delete operator is not supported with operand of type XMLList. 


"delete" works as long as the XMLList is not retrieved using an expression, which in this 
case it is: (@id == "b").

So the following works (and deletes all elements):

   var s:String = '';
   var xml:XML = new XML(s);
   delete xml.child;

Bug or feature? Who knows..

regards,
Muzak

- Original Message - 
From: "liutoday" 

To: 
Sent: Monday, March 09, 2009 5:28 AM
Subject: RE: [Flashcoders] find and delete XML nodes







Date: Sun, 8 Mar 2009 23:38:17 -0400
From: j...@stranskydesign.com
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] find and delete XML nodes

I have some xml nodes where I need to evaluate their attributes and delete
them if they meet certain criteria. It's probably simple but its late and
brain fatigue is setting in.

Say I had this node


  
  
  
  


How would I find and delete any  who's id is "b" ?
--
--Joel Stransky
stranskydesign.com
___



delete xml.child.(@id=="b");



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders