Re: [Flashcoders] panels / workspace CS4 bug

2009-09-18 Thread John McCormack

In Flex Builder 3 the project properties panels do something similar.
On the left pane are the options and on the right are a details pane.
The details pane often has it's boxes and tabs misplaced (off screen).
By dragging the separating edge between left and right panes you can fix 
some of it.
In some case you also need to wave the mouse, like a magic wand, and the 
tabs reappear.

In other cases I can't get to the options in the boxes.

Recently I find that I get a black hole (rectangular) in the topmost 
edited file's pane.

If I scroll with the wheel mouse only part of the pane updates.
Once I switch tabs and back its okay.
This hole may have arrived when I added more memory but I can't be sure.

It all sounds like the same kind of problem.

John

CS4, Flex Builder 3, Vista x64

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


Re: [Flashcoders] Using LocalConnection to talk from AS3 file to AS2 in different domain

2009-09-18 Thread Greg Ligierko
Hi,

Two days ago I wrote (email 16.Sep [Flashcoders] allowDomain with wildcard
in the middle swf) about using System.security.allowDomain(*) inside
a file loaded into a base swf. The loaded swf, the one with wildcard
would serve as a container for further external files, potentially
incoming from any domain name but at the same time would block access
to base swf objects.

The purpose of using LocalConnection described by Kurt is
communication between virtual machines. But it seems still a more
secure way to proxy external domain swfs than using a shim file with
a wildcard (*), constantly allowing all incoming files.

Would you use LocalConnection instead of System.security.allowDomain(*)
if the issue would not be connecting between AV1 and AV2 ?
LocalConnection requires a more complex API for accessing internal
object properties than a simple System allowance, but maybe
LocalConnection is more secure at the same time... What is your
opinion ? 

Thanks,

Greg



Wednesday, September 16, 2009 (8:54:30 PM):

 Hi All,

  

 Not a question here, but I wanted to share something that was fairly obscure
 in the help docs.

  

 If you are using LocalConnection to talk to an as2 swf from an as3 swf you
 have to do some things differently than you might expect.

  

 Knowing this can really help in trying to completely unload a loaded as2
 swf.  For instance, you could change the test function to help you the
 loaded as2 swf unload itself.  If you don't successfully do this, things get
 messy quick (memory leak, sound won't stop etc..).

  

 Basic sample code below (hopefully this can help someone in the future).

  

 Kurt

  

 __

  

 Sending swf code (AS3)

  

 var AVM_lc:LocalConnection = new LocalConnection();

  

 // loader loads AVM1 movie

 var loader:Loader = new Loader();

 loader.load(new URLRequest(http://www.yourdomain.com/ as2_receiving.swf));

 addChild(loader);

  

 loader.addEventListener(MouseEvent.CLICK, testfunction); //just to initiate
 test..

  

 function testfunction(event:MouseEvent):void 

 {

 AVM_lc.send(_AVM2toAVM1, receivingfunction);  //IT IS CRUCIAL to add
 the underscore!! (for more info read about superdomains).

 }

  

 AVM_lc.addEventListener(StatusEvent.STATUS,onConnStatus)

 function onConnStatus(event:StatusEvent):void

  {

  switch (event.level)

   {

case status:

 trace(LocalConnection.send() succeeded);

 break;

 case error:

 trace(LocalConnection.send() failed, event)

  break;

   }

  }

  

  

 

  

  

 Receiving swf (AS2):

  

 var AVM_lc:LocalConnection = new LocalConnection();

 AVM_lc.client = this;

 AVM_lc.allowDomain = function ( domain )

 { 

 trace(allow domain called!!)  //You can specify that only
 specific domains are allowed.  In this case I'm allowing ALL domains.

 //Note;  in AS3 code you could just say
 AVM_lc.allowDomain(*);

 return true;

 } 

  

 // stopAnimation event handler

 AVM_lc. receivingfunction = function()

 {

 trace(success);

 }

  

 AVM_lc.connect(_AVM2toAVM1); //Again - the underscore is crucial.

  

  

  

 ___
 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] problem removing multiple instances of preloader

2009-09-18 Thread thomas horner
i  have set up a thumbnail image gallery that drags images from an external
xml file, however now i have come the point of adding a preloader, i want to
add a preloader to each of the thumbnails, however it only seems to work for
one thumbnail or image, if i just target [0] it works fine, but when i add
the preloader to all my image containers and then try to remove them all it
trips up, 

 

many thanks in advance, any help greatly appreciated.

 

my code is below;

 

my_images=myXML.IMAGE;

my_total=my_images.length();

 

function callThumbs():void {

for (var
s:Number = 0; s  my_total; s++) {

 
var thumb_url=my_images[...@small;

 
var thumb_loader = new Loader();

 
thumb_loader.load(new URLRequest(thumb_url));

 
thumb_loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
thumbLoaded);

 
//add preloader to the container

 
var preloader:starPreloader = new starPreloader();

 
container1.addChild(preloader);

 
container1.preloader=preloader;

 


 
thumb_loader.name=s;

 
container1.buttonMode=true;

 
thumb_loader.y = (100+5)*s;

 
zoom.small.addChild(container1);

 
container1.addEventListener(MouseEvent.CLICK, callFull);

 
loadedImages ++; 

 

}

}

 

function
thumbLoaded(e:Event):void {

var
my_thumb:Loader=Loader(e.target.loader);



var
holder:MovieClip=container1[loadedImages];



 
TweenLite.to(container1.preloader, 1, {scaleX: 0, scaleY: 0, alpha: 0,
onComplete:thumbFinished, onCompleteParams:[container1.preloader, holder]});



 
container1.addChild(my_thumb);

}



function
thumbFinished(preloader:MovieClip, container1:MovieClip):void {

 
container1.removeChild(preloader);

//Remove the
preloader 

}

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


[Flashcoders] trouble with adding/removing multiple preloaders on thumbs

2009-09-18 Thread thomas horner
i  have set up a thumbnail image gallery that drags images from an external
xml file, however now i have come the point of adding a preloader, i want to
add a preloader to each of the thumbnails, however it only seems to work for
one thumbnail or image, if i just target [0] it works fine, but when i add
the preloader to all my image containers and then try to remove them all it
trips up, 

 

 

 

 

TypeError: Error #1009: Cannot access a property or method of a null object
reference.

at MethodInfo-448()

at Function/http://adobe.com/AS3/2006/builtin::apply()

at gs::TweenLite/complete()

at gs::TweenLite/render()

at gs::TweenLite$/updateAll()

 

 

my code is below;

 

 

my_images=myXML.IMAGE;

my_total=my_images.length();

 

function callThumbs():void {

for (var s:Number = 0; s  my_total; s++) {

var thumb_url=my_images[...@small;

var thumb_loader = new Loader();

thumb_loader.load(new URLRequest(thumb_url));

thumb_loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
thumbLoaded);

//add preloader to the container

var preloader:starPreloader = new starPreloader();

container1.addChild(preloader);

container1.preloader=preloader;

 

thumb_loader.name=s;

container1.buttonMode=true;

thumb_loader.y = (100+5)*s;

zoom.small.addChild(container1);

container1.addEventListener(MouseEvent.CLICK, callFull);

loadedImages ++;

 

}

}

 

function thumbLoaded(e:Event):void {

var my_thumb:Loader=Loader(e.target.loader);

var holder:MovieClip=container1[loadedImages];

 

TweenLite.to(container1.preloader, 1, {scaleX: 0, scaleY: 0, alpha: 0,
onComplete:thumbFinished, onCompleteParams:[container1.preloader, holder]});

 

container1.addChild(my_thumb);

}

 

function thumbFinished(preloader:MovieClip, container1:MovieClip):void {

container1.removeChild(preloader);

//Remove the preloader

}

 

 

 

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


Re: [Flashcoders] panels / workspace CS4 bug

2009-09-18 Thread Isaac Alves
Pedro, that works, but this way I´m forced to always have this actions
buttons on the screen (when I press F9) and that is quite boring ,
cause (at least for me) it stands in front of important stuff . I ´m
used to F9 to open /close the acitons panel.

I´ll give a try on FlashDevelop!

thanks everyone for replying,
cheers

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


[Flashcoders] Trying to convince people to develop with Flex

2009-09-18 Thread Schnurgle Schnurgle
I'd like to get some people that I work with excited about developing RIAs with 
Flex. We currently do data visualization with fusion charts. I'd like to show 
folks here  Flex apps that go beyond what fusion charts can do. I've googled 
but I've not found much. Also, any links to flex business apps that would help 
make the case that we could be offering amazing user experiences if we were to 
build with Flex would be great ammo.

Thank you very much for any help with this.
sh



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


RE: [Flashcoders] Trying to convince people to develop with Flex

2009-09-18 Thread Merrill, Jason
You'll have much better responses if you ask on the Flexcoders list on
Yahoo - I'm sure you'd get a gazillion guys sending you links to their
business apps.


Jason Merrill 

Bank of  America   Global Learning 
Learning  Performance Soluions

Monthly meetings on making the most of the Adobe Flash Platform -
presented by bank associates, Adobe engineers, and outside experts in
the borader multimedia community - join the Bank of America Flash
Platform Community  (note: this is for Bank of America employees only)




-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of
Schnurgle Schnurgle
Sent: Friday, September 18, 2009 5:37 PM
To: flashcoders
Subject: [Flashcoders] Trying to convince people to develop with Flex

I'd like to get some people that I work with excited about developing
RIAs with Flex. We currently do data visualization with fusion charts.
I'd like to show folks here  Flex apps that go beyond what fusion charts
can do. I've googled but I've not found much. Also, any links to flex
business apps that would help make the case that we could be offering
amazing user experiences if we were to build with Flex would be great
ammo.

Thank you very much for any help with this.
sh



  
___
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] Trying to convince people to develop with Flex

2009-09-18 Thread Schnurgle Schnurgle
point taken. Thanks Jason.




From: Merrill, Jason jason.merr...@bankofamerica.com
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Friday, September 18, 2009 3:39:05 PM
Subject: RE: [Flashcoders] Trying to convince people to develop with Flex

You'll have much better responses if you ask on the Flexcoders list on
Yahoo - I'm sure you'd get a gazillion guys sending you links to their
business apps.


Jason Merrill 

Bank of  America   Global Learning 
Learning  Performance Soluions

Monthly meetings on making the most of the Adobe Flash Platform -
presented by bank associates, Adobe engineers, and outside experts in
the borader multimedia community - join the Bank of America Flash
Platform Community  (note: this is for Bank of America employees only)




-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of
Schnurgle Schnurgle
Sent: Friday, September 18, 2009 5:37 PM
To: flashcoders
Subject: [Flashcoders] Trying to convince people to develop with Flex

I'd like to get some people that I work with excited about developing
RIAs with Flex. We currently do data visualization with fusion charts.
I'd like to show folks here  Flex apps that go beyond what fusion charts
can do. I've googled but I've not found much. Also, any links to flex
business apps that would help make the case that we could be offering
amazing user experiences if we were to build with Flex would be great
ammo.

Thank you very much for any help with this.
sh



  
___
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