Re: [Flashcoders] target object under mouse-AS3 syntax?

2007-12-17 Thread Charles Parcell
Perhaps...
event.currentTarget;

private function mouseOverHandler(event:Event) {
trace(event.currentTarget);
}


http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/Event.html#currentTarget

Charles P.


On Dec 17, 2007 1:10 PM, dave matthews <[EMAIL PROTECTED]>
wrote:

>
> hi all,
>
>  What is the correct syntax to target any named symbol on stage, please?
>
>  Looking for the "event target" or something like that - just can't find
> the exact syntax to look it up in Moock's book!
>
>  The app has many named symbols on stage, trying to use same 'widget' to
> drag/resize/rotate/etc.  It's painful to code each individually with
> listeners etc.  or dive into each symbol and pasting the frame with the code
> and buttons inside each... i'm seeing a pattern here and wish to use the
> same 'widget' to act on any symbol.
>
>  Read about targeting the 'victim' of a mouse over for example:
>
> pseudo code:
>  addEventListener.target.eventTarget(MouseEvent.MOUSE_OVER,
> set_targetname_to_var);
>
>
> thanks,
>  Dave Matthewshttp://www.2GoTo.com
> _
> Share life as it happens with the new Windows Live.
>
> http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_122007___
> 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] Another sort of Off Topic Flex question

2007-12-17 Thread Paul Andrews
- Original Message - 
From: "Muzak" <[EMAIL PROTECTED]>

To: "Flash Coders List" 
Sent: Monday, December 17, 2007 6:56 PM
Subject: Re: [Flashcoders] Another sort of Off Topic Flex question



Avoid states.. they're hard to maintain, control, etc..

Look into using ViewStacks and controling application state through 
actionscript.


That's kind of good to hear. I thought I was the only one that thought 
states weren't the easiest thing to look after.. 


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


Re: [Flashcoders] Another sort of Off Topic Flex question

2007-12-17 Thread Muzak

Avoid states.. they're hard to maintain, control, etc..

Look into using ViewStacks and controling application state through 
actionscript.

- Original Message - 
From: "ben gomez farrell" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Monday, December 17, 2007 6:07 PM
Subject: [Flashcoders] Another sort of Off Topic Flex question




I'm working with an application in Flex, and using states to switch back 
and forth between components.  You can kind of think of each component 
as a "page" of my Flex application, and each "page" is a state that I go 
back and forth to from a main navigation.


It first occurred to me that my states don't really go away when I had 
an enter frame event attached to one of my component pages.  Of course 
it's easy and good practice to clean those kinds of things up when I'm 
not using them - but even then - when I go back to my component page, 
it's in exactly the same state as I left it.  Anything I interacted with 
on screen is there in the exact same state and position.


So this stuff is not going away when I switch states.  I guess, when I 
think about it, it makes sense.  But I'm wondering if I should be 
worried as my application picks up complexity?  Essentially, it's a 
question of when I remove children from the stage - should I worry they 
still exist?


I guess its a question of best practices in Flex.  Do you folks author 
applications in this way - using states to navigate between several 
large component pieces?  Or do you get smarter and break it out into 
smaller SWFs using an AS3 only shell to do all the garbage collecting 
yourself of the SWFs?


Thanks!  Things seem to work pretty well right now, but I'd just hate at 
the end of this project when we have all our graphics in that it runs 
all sluggishly because everything's running at once.


ben


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


Re: [Flashcoders] AVM1 loadMovie problems

2007-12-17 Thread ben gomez farrell

That's an interesting twist on what I found.
I had a Flash 9 SWF.  The Flash 9 SWF loaded a Flash 8 SWF.  The F8 SWF 
had a movieclip instance that would grab several different animation 
SWFs that would get loaded into the movieclip.


So, first it would load animation1.swf into the MC instance, and then 
when it was done, it would unload and load up animation2.swf.  Of course 
it worked fine in just Flash 8, but inside the Flash 9 SWF - I could 
never load that second animation into the same movieclip instance.  I 
could only get around it by loading it into a different movieclip instance.


I wonder if you're experiencing sort of the same thing.  Even though you 
have 2 different loaders, maybe they somehow talk about the same 
movieclip instance in memory.


Not that its a reasonable problem.  It's pretty ridiculous if you can't 
do it.  But thats what I've found, and I've found that I just have to 
work around it.


ben

Dave Segal wrote:

I am  having some problems loading multiple Flash 8 movies into Flash 9. I
understand that this not recommended and that is preferred to work with
all Flash 9/AS 3 content. 

 


Here is the situation. I have 2 Flash 8 swfs, let's call these
"f8loader1.swf" and "f8loader2.swf". Both of these swfs instantiate the
same class, "F8AssestClass",  which loads another Flash 8 swf,
"f8asset.swf".   In my Flash 9 application I am loading "f8loader1.swf"
which instantiates "F8AssetClass" which loads "f8asset.swf" just as
planned.  However, when I then load "f8loader2.swf", it starts up and
instantiates "F8AssetClass" but "f8asset.swf" never loads. I have tried to
load "f8asset.swf" with both loadMovie and with the MovieClipLoader. It
never loads the second time.

 


I have a project where the above scenario is going to be in play multiple
times and I don't have much flexibility to adjust the Flash 8 content. I'm
hoping someone can help me understand what is happening here and let me
know if whether it is possible to achieve this. 

 

I have example files I can send if anyone is interested. 


___
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] target object under mouse-AS3 syntax?

2007-12-17 Thread dave matthews

hi all,
 
  What is the correct syntax to target any named symbol on stage, please?
  
  Looking for the "event target" or something like that - just can't find the 
exact syntax to look it up in Moock's book!
 
  The app has many named symbols on stage, trying to use same 'widget' to 
drag/resize/rotate/etc.  It's painful to code each individually with listeners 
etc.  or dive into each symbol and pasting the frame with the code and buttons 
inside each... i'm seeing a pattern here and wish to use the same 'widget' to 
act on any symbol.
  
  Read about targeting the 'victim' of a mouse over for example:
 
pseudo code:
  addEventListener.target.eventTarget(MouseEvent.MOUSE_OVER, 
set_targetname_to_var);
 
 
thanks,
  Dave Matthewshttp://www.2GoTo.com
_
Share life as it happens with the new Windows Live.
http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_122007___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] [Sort of OT] Flex Usage - IDE

2007-12-17 Thread Francis Cheng
Speaking of Flex Builder, if you are a current student or faculty member
at an educational institution, you can get it for free for educational
purposes:

http://www.adobe.com/products/flex/productinfo/faq/#flex_faculty

Francis Cheng | Sr. Technical Writer | Adobe Systems Incorporated

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Monday, December 17, 2007 8:12 AM
To: Flash Coders List
Subject: RE: [Flashcoders] [Sort of OT] Flex Usage - IDE

You can use Flex for any commercial project (Flex is the framework, not
the tool, and Flash is the platform).  For example, there is a free Flex
SDK that will compile Flex .swfs for you. If you're referring to the
Flexbuilder tool, you can use it for any commercial project granted you
have purchased a legal copy.  Trial version of Flexbuilder are just for
trying it out, not building commercial products.


Jason Merrill
Bank of America  
L&LD GT&O 
eTools & Multimedia Research & 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] Another sort of Off Topic Flex question

2007-12-17 Thread Paul Andrews


- Original Message - 
From: "ben gomez farrell" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Monday, December 17, 2007 5:07 PM
Subject: [Flashcoders] Another sort of Off Topic Flex question



First of all, I'll ask this
Where is that flexcoders list you all talk about?  I don't see anything 
under figleaf, and the only Flex coders list I found on google is a yahoo 
groups one, and I haven't gotten a single email from them yet - so I'm 
thinking there's some kind of SECRET one.


Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links

Anyway, my question that I will post once I find the flexcoders list ties 
into the Flash 9 player, and I guess is really both a Flex AND Flash 
question, so I'll ask you guys first.


I'm working with an application in Flex, and using states to switch back 
and forth between components.  You can kind of think of each component as 
a "page" of my Flex application, and each "page" is a state that I go back 
and forth to from a main navigation.


It first occurred to me that my states don't really go away when I had an 
enter frame event attached to one of my component pages.  Of course it's 
easy and good practice to clean those kinds of things up when I'm not 
using them - but even then - when I go back to my component page, it's in 
exactly the same state as I left it.  Anything I interacted with on screen 
is there in the exact same state and position.


So this stuff is not going away when I switch states.  I guess, when I 
think about it, it makes sense.  But I'm wondering if I should be worried 
as my application picks up complexity?  Essentially, it's a question of 
when I remove children from the stage - should I worry they still exist?


A lot of people use states to control viewstacks that represent a page of 
the application. It all depends what you are trying to achieve.


I guess its a question of best practices in Flex.  Do you folks author 
applications in this way - using states to navigate between several large 
component pieces?  Or do you get smarter and break it out into smaller 
SWFs using an AS3 only shell to do all the garbage collecting yourself of 
the SWFs?


I don't do that, but Flex does have modules.

Paul

Thanks!  Things seem to work pretty well right now, but I'd just hate at 
the end of this project when we have all our graphics in that it runs all 
sluggishly because everything's running at once.


ben 


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


RE: [Flashcoders] Another sort of Off Topic Flex question

2007-12-17 Thread Merrill, Jason
>>First of all, I'll ask this
>>Where is that flexcoders list you all talk about?  I don't 
>>see anything under figleaf, and the only Flex coders list I 
>>found on google is a yahoo groups one, and I haven't gotten a 
>>single email from them yet - so I'm thinking there's some 
>>kind of SECRET one.

It's the Yahoo list.  If you're not getting e-mail from that list, it
could be either 1) You have not been approved as a member yet -
sometimes moderators get busy or are unavailable to approve people, 2)
Your group settings in Yahoo are not set to receive e-mail, or the
e-mail address is incorrect or some other kind of malfunction, 3) the
Flexcoders list is occassionally slow in sending out e-mails.  

We set up a Yahoo list like Flashcoders on Yahoo and it performs very
well - much faster response than Flexcoders - not sure if it's because
Flexcoders has so much more volume or if it's on a different Yahoo
server.

I don't know the exact answer to your question, but I do know that
people make use of Flex modules (which is a way to break your Flex app
into several .swfs) so that the initial .swf size is much smaller, and
thus, smaller initial download.



Jason Merrill
Bank of America  
L&LD GT&O 
eTools & Multimedia Research & Development



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


[Flashcoders] AVM1 loadMovie problems

2007-12-17 Thread Dave Segal
I am  having some problems loading multiple Flash 8 movies into Flash 9. I
understand that this not recommended and that is preferred to work with
all Flash 9/AS 3 content. 

 

Here is the situation. I have 2 Flash 8 swfs, let's call these
"f8loader1.swf" and "f8loader2.swf". Both of these swfs instantiate the
same class, "F8AssestClass",  which loads another Flash 8 swf,
"f8asset.swf".   In my Flash 9 application I am loading "f8loader1.swf"
which instantiates "F8AssetClass" which loads "f8asset.swf" just as
planned.  However, when I then load "f8loader2.swf", it starts up and
instantiates "F8AssetClass" but "f8asset.swf" never loads. I have tried to
load "f8asset.swf" with both loadMovie and with the MovieClipLoader. It
never loads the second time.

 

I have a project where the above scenario is going to be in play multiple
times and I don't have much flexibility to adjust the Flash 8 content. I'm
hoping someone can help me understand what is happening here and let me
know if whether it is possible to achieve this. 

 

I have example files I can send if anyone is interested. 

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


[Flashcoders] Another sort of Off Topic Flex question

2007-12-17 Thread ben gomez farrell

First of all, I'll ask this
Where is that flexcoders list you all talk about?  I don't see anything 
under figleaf, and the only Flex coders list I found on google is a 
yahoo groups one, and I haven't gotten a single email from them yet - so 
I'm thinking there's some kind of SECRET one.


Anyway, my question that I will post once I find the flexcoders list 
ties into the Flash 9 player, and I guess is really both a Flex AND 
Flash question, so I'll ask you guys first.


I'm working with an application in Flex, and using states to switch back 
and forth between components.  You can kind of think of each component 
as a "page" of my Flex application, and each "page" is a state that I go 
back and forth to from a main navigation.


It first occurred to me that my states don't really go away when I had 
an enter frame event attached to one of my component pages.  Of course 
it's easy and good practice to clean those kinds of things up when I'm 
not using them - but even then - when I go back to my component page, 
it's in exactly the same state as I left it.  Anything I interacted with 
on screen is there in the exact same state and position.


So this stuff is not going away when I switch states.  I guess, when I 
think about it, it makes sense.  But I'm wondering if I should be 
worried as my application picks up complexity?  Essentially, it's a 
question of when I remove children from the stage - should I worry they 
still exist?


I guess its a question of best practices in Flex.  Do you folks author 
applications in this way - using states to navigate between several 
large component pieces?  Or do you get smarter and break it out into 
smaller SWFs using an AS3 only shell to do all the garbage collecting 
yourself of the SWFs?


Thanks!  Things seem to work pretty well right now, but I'd just hate at 
the end of this project when we have all our graphics in that it runs 
all sluggishly because everything's running at once.


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


[Flashcoders] external flv only playing one frame

2007-12-17 Thread Mendelsohn, Michael
Hi list...

I'm putting an external flv on the stage like so: (AS2)

var vid:MovieClip = _root.createEmptyMovieClip("vid", 1);
var videoContainer:MovieClip = vid.attachMovie("videoContainer",
"videoContainer", 1);
// videoContainer MC in the library contains a video object named
videoObj
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
videoContainer.videoObj.attachVideo(ns);
ns.play("myVid.flv");

I'm probably overlooking something dumb, but it's only playing one
frame.  The _root timeline is one frame, and the videoContainer mc is
also only one frame.  But even when I add 1000 frames to each, still the
video only plays the first frame.  Any ideas?

Thanks,
- Michael M.

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


RE: [Flashcoders] [Sort of OT] Flex Usage - IDE

2007-12-17 Thread Merrill, Jason
You can use Flex for any commercial project (Flex is the framework, not
the tool, and Flash is the platform).  For example, there is a free Flex
SDK that will compile Flex .swfs for you. If you're referring to the
Flexbuilder tool, you can use it for any commercial project granted you
have purchased a legal copy.  Trial version of Flexbuilder are just for
trying it out, not building commercial products.


Jason Merrill
Bank of America  
L&LD GT&O 
eTools & Multimedia Research & Development



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


Re: [Flashcoders] pause a loop for an set amount of time

2007-12-17 Thread Zeh Fernando
You don't use a loop. Instead, you create the variables needed as 
properties, then create a function that does an *iteration* of the loop. 
Then on every frame you do N calls to that iteration, until it's over.


Or if you want:
http://labs.zeh.com.br/blog/?page_id=97#lzw

This is an AS2 LZW compression/decompression class that splits code 
between frames (with varied CPU utilization) and get the data once it's 
done.


Zeh

thomas nordahl wrote:

I have an string made from using getpixel on an image.
I want to compress this string using lzw compression, but the string is way
too big so my flash application hangs.
is there anyway to make flash pause 50 milliseconds every 3 sekunds? or
every 1000 iteration?

here is the part of the code that compress the string

public static function compress(str:String):String {
var dico:Array = new Array();
var skipnum:Number = xmlsafe ? 5 : 0;
for (var i = 0; i<256; i++) {
dico[String.fromCharCode(i)] = i;
}
if (xmlsafe) {
dico["<"] = 256;
dico[">"] = 257;
dico["&"] = 258;
dico["\""] = 259;
dico["'"] = 260;
}
var res:String = "";
var txt2encode:String = str;
//var txtArray:Array = new Array();
//


var splitStr:Array = txt2encode.split("");
var len:Number = splitStr.length;
var nbChar:Number = 256+skipnum;
var buffer:String = "";

//<--->// her is the
compression

for (var i = 0; i<=len; i++) {
var current = splitStr[i];
if (dico[buffer+current] !== undefined) {
buffer += current;
} else {
res += String.fromCharCode(dico[buffer]);
dico[buffer+current] = nbChar;
nbChar++;
buffer = current;
}
}

//<--->//
return res;
}
___
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] pause a loop for an set amount of time

2007-12-17 Thread thomas nordahl
I have an string made from using getpixel on an image.
I want to compress this string using lzw compression, but the string is way
too big so my flash application hangs.
is there anyway to make flash pause 50 milliseconds every 3 sekunds? or
every 1000 iteration?

here is the part of the code that compress the string

public static function compress(str:String):String {
var dico:Array = new Array();
var skipnum:Number = xmlsafe ? 5 : 0;
for (var i = 0; i<256; i++) {
dico[String.fromCharCode(i)] = i;
}
if (xmlsafe) {
dico["<"] = 256;
dico[">"] = 257;
dico["&"] = 258;
dico["\""] = 259;
dico["'"] = 260;
}
var res:String = "";
var txt2encode:String = str;
//var txtArray:Array = new Array();
//


var splitStr:Array = txt2encode.split("");
var len:Number = splitStr.length;
var nbChar:Number = 256+skipnum;
var buffer:String = "";

//<--->// her is the
compression

for (var i = 0; i<=len; i++) {
var current = splitStr[i];
if (dico[buffer+current] !== undefined) {
buffer += current;
} else {
res += String.fromCharCode(dico[buffer]);
dico[buffer+current] = nbChar;
nbChar++;
buffer = current;
}
}

//<--->//
return res;
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] LoadVars and cookies

2007-12-17 Thread Guillaume Bedleem

Hi,

just a little add in the debugging script tools.
I've tried a lot, and the better I've found is :
http://www.fiddlertool.com/fiddler/
very useful and show a lot of data. moreover it's free and should work with 
most of browser / connected app


sorry for the non-really-pure-flash-object-post

regards.

Guillaume


- Original Message - 
From: "Andrew Sinning" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Flash Coders List" 


Sent: Sunday, December 16, 2007 7:11 PM
Subject: Re: [Flashcoders] LoadVars and cookies



This is very helpful to understand.  Thanks Glen!

Glen Pike wrote:

Hi,

   Your session should be browser based and I think Flash does it's 
requests through the browser.  The only time you may have problems with 
this is if you start using FileReference uploads in Flash 8.  I am 
guessing this may be a bit of a B***H to debug using the standalone 
player / IDE.  I would recommend loading it in the browser if you can as 
this may save headaches later on if you try and develop for standalone 
then switch.


   This may shed some light too, not sure: 
http://readlist.com/lists/chattyfig.figleaf.com/flashcoders/2/10530.html


   Check your PHP ini settings to see if PHP is using Cookies to transmit 
the Session ID ("session.use_cookies") - this could be what you are 
seeing.
 Also, for debugging scripts, you can use a number of tools to see 
what is being requested:


   Firefox has "LiveHTTPHeaders" which you have to manually install from 
the download site:  http://livehttpheaders.mozdev.org/


   This will work with LoadVars type requests.

   There are also some other tools, which are not free, but work better 
with AMF type remoting:


   http://xk72.com/charles/
 http://kevinlangdon.com/serviceCapture/

   I can't remember any others at the moment - they have been mentioned a 
few times on this list and OSFlash so check the archives or Google for 
them.


   HTH

   Glen

Andrew Sinning wrote:
I'm working in author mode in FMX04, using AS2.  It appears that 
LoadVars exchanges cookies with the server, and that the cookie persists 
until you relaunch Flash.  Is this documented anywhere?  Is this 
reliable across browsers and platforms and plugings?


I discovered this because I was trying to exchange the PHPSESSID as a 
_GET param from Flash, but it was getting overridden by a _COOKIE value 
in the _REQUEST array by php.



___
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] Flex 3 & Air Beta 3

2007-12-17 Thread Matthew James Poole
Right, that will probably be becuase the stage.nativeWindow hasn't yet
initialized you can test this theory by using this code:


var timer:Timer = new Timer(100)
timer.addEventListener(Timer.TIMER, teststage);
timer.start();

function teststage (): void
{
if (stage.nativeWindow != undefined)
{
timer.stop();
backgroundClip.addEventListener(MouseEvent.MOUSE_DOWN,
doDrag); 
// any other set up
}
}

Something alon g those lines

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 13 December 2007 18:00
To: Flash Coders List
Subject: Re: [Flashcoders] Flex 3 & Air Beta 3

Hi Matthew,

Yes i'm using Flash IDE to publish.
i'm getting a bunch of errors:

1119: Access of possibly undefined property nativeWindow through a
reference with static type flash.display:Stage.

And also i get an error about a ArtemisJSExtension.cpp on line 563 -
importPublishProfile: Argument number 1 is invalid

So i cant trace the output of the event fired.

(i'll prabably replay tomorrow, have to be on my way now, but i'll read
your reply).

Cheers, Sidney

Matthew James Poole wrote:
> Hi Sidney,
>
> Assumiung you are working in Flex the following will work just fine 
> (just tested it myself)
>
>   xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="absolute" creationComplete="init()">
>   
>   
>   
>color="#ff9900" />
> 
>
> If you are working in Flash, I cant help you immediately as I don't 
> have the Flash Air extension installed, but does the event get fired??

> If it does what do you get when you trace(window)??
>
> Cheers
> Matt
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sidney

> de Koning
> Sent: 09 December 2007 17:29
> To: Flash Coders List
> Subject: Re: [Flashcoders] Flex 3 & Air Beta 3
>
> Hi Mathew,
>
> Currently i'm developing a AIR application and it needs to drag when i

> click with my mouse on the background of the app.
> But that does not work any more. Can you lend assistence? Belwo is the
> code:
>
> import flash.events.MouseEvent;
> import flash.display.MovieClip;
>
> import flash.display.NativeWindow;
> import flash.display.Stage.nativeWindow; import 
> flash.events.MouseEvent;
>
> backgroundClip.addEventListener(MouseEvent.MOUSE_DOWN, doDrag); var 
> window:NativeWindow = stage.nativeWindow;
>
> function doDrag(event:MouseEvent):void {
> window.startMove();
> }
>
> Is there anything i'm forgetting?
>
> Regards, Sidney
>
>
> Matthew James Poole wrote:
>   
>> Heres a couple of differences I found in the framework since Beta 2:
>>
>> Air - the Shell object is no more it is replaced by the 
>> NativeApplication Singleton Air - the flash.desktop.DragManager is 
>> now
>> 
>
>   
>> mx.managers.DragManager Flex / Air - Clipboard object no longer has 
>> the dataFormats() method now use getData() instead
>>
>> ... That's it so far - I'll post more ifd I find any. Has anyone else

>> found any?
>>
>> Cheers
>> Matt
>> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> __
> This e-mail has been scanned for viruses by the Virtual Universe 
> e-mail security system - powered by MessageLabs.
> http://www.virtual-universe.net
>
> __
>
> Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  
> NW6 6RJ
>
> Tel:  +44 (0) 870 788 6000  
>
> Fax: +44 (0) 870 788 6689
>
> Web:www.virtual-universe.net
>
> --
> ---
>
> CONFIDENTIALITY NOTICE
>
> This e-mail may contain information which is confidential and
privileged. If you are not the named addressee of this e-mail, you may
not copy or use it, or forward or otherwise disclose it to anyone else.
If you have received this e-mail in error, please e-mail the sender by
replying to this message and then fully delete it from your system. 
>
> Any views or opinions presented in this e-mail are solely those of the
author and do not necessarily represent those of Amplefuture Group.
Amplefuture Group reserves the right to monitor e-mail communications
from both external and internal sources for the purposes of ensuring
correct and appropriate use of our communication equipment.
>
>
>
> __
> This e-mail has been scanned for viruses by the Virtual Universe 
> e-mail security system - powered by MessageLabs. 
> http://www.virtual-universe.net
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>   

__