Re: [Flashcoders] Image in dynamic text field

2008-05-28 Thread Rajiv Seth (Pixelated)
XML is like:

imageshow
image path=images/home1.jpg url=www.google.com data=The Department
of Education has several options for youth aged between 16 to 21 who are
either not attending school or are at risk of droppinglt;img id='arrow'
src='arrow' /gt; /
/imageshow

Actually I want this arrow image which is in data attribute, to be linked
to url given in url attribute of above XML.

I am using following for loop to push xml values into array

for (i=0; itotalImages; i++) {
images.push(xmlNode[i].attributes.path);
imgContent.push(xmlNode[i].attributes.data);
//trace(images);
}

And later using a function, i am setting text field value:

movTxt.imageData.htmlText = imgContent[j];

Thanks

On Wed, May 28, 2008 at 12:33 AM, Helmut Granda [EMAIL PROTECTED]
wrote:

 what does the XML Looks like?

 On Tue, May 27, 2008 at 6:33 AM, Rajiv Seth (Pixelated) 
 [EMAIL PROTECTED] wrote:

  When I am trying to call an image inside text field dynamically, it is
  appearing after a line break, but I want the image to come in line with
 the
  text.
  I have created the text field dynamically:
 
  [i]txtHolder.createTextField(imageData,1,0,0,550,60);[/i]
 
  and set these properties:
[i]txtHolder.imageData.multiline = true;[/i]
 [i]txtHolder.imageData.wordWrap = true;[/i]
 [i]txtHolder.imageData.html = true;[/i]
 [i]txtHolder.imageData.border = true;[/i]
 [i]txtHolder.imageData.htmlText = ;[/i]
 
  Now I am loading an image along with text into it using XML. I want to
 use
  and arrow image which will come in the end but in same line. But the
 image
  is taking a line break.
 
  Can anyone suggest me how to use img in text field so that it appears
  without line-break.
 
  Thanks
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



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




-- 
Regards

Rajiv Seth
Ph: 09839157388
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Ideas for a Fill in the gaps activity

2008-05-28 Thread [EMAIL PROTECTED]
Piers,

I thank you kindly. In fact, I fall humbly to my knees and offer you my
first-born goat. A rough draft of your idea can be seen here:
http://snipurl.com/2azzy-meep

There was a concern regarding large chunks of (non-editable) text dropping
to the next line, so I've temporarily gotten around it by putting each
non-editable word into its own textfield. Is that overkill? Will there be
problems with drawing hundreds of textfields onChange?

Next hurdle: working out how to deal with reeeally long text entry. ie, when
the input textfield width exceeds line space remaining. Creating a new,
symbiotic input textfield for user input to flow into strikes me as a
massive headache, especially when it comes evaluating the user data later. I
spose we can but try.

I'll keep posting improvements as (or if) they happen. Thanks again!



On Tue, May 27, 2008 at 8:21 PM, Piers Cowburn [EMAIL PROTECTED] wrote:

 Here's a solution (in English rather than code though):

 Create an array of your two different types of fields (editable and
 non-editable).

 Create a render function (triggered once at the start, and then
 subsequently by the Change event of any of the editable fields) which loops
 through this array making labels / input fields for each one accordingly.

 Each time you create a new label, check to see if the width of it will
 exceed the width of the page, and if so, split it into two fields, with the
 second being on a new line.


 I think that should work.

 Piers




 On 27 May 2008, at 10:52, Paul Andrews wrote:

  - Original Message - From: [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Sent: Tuesday, May 27, 2008 5:29 AM
 Subject: [Flashcoders] Ideas for a Fill in the gaps activity


  Hello Flashcoders,

 I have a Fill in the gaps activity, done in HTML and Javascript (very
 quickly). It can be seen here: http://snipurl.com/2askk-meep.

 I have to make something like this in Flash, and it's leaving me stumped.
 It
 seems like I'd need all the text (plus growable gaps) to be within one
 text field, to retain the flow of the words in the paragraph. However,
 said
 text field can't just be an input text field because that would make all
 the
 text editable.

 Any ideas very welcome. Even a very small idea  0 idea, which is what I
 have at the moment. Thanks!


 I have done this for a commercial product using drag and drop. All the
 gaps were just drop zones, suitably sized to accept the (largest possible)
 draggable answer. The non editable text was just labels. The layout was
 fixed with text flow done by hand. It was a multiple choicedrag and drop
 thing though - in your case you can just substitute the drop zone for input
 fields.

 It is messy, so I'm looking forward to some clever solutions..

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


 [EMAIL PROTECTED]
 0207 631 3278



 ___
 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] Flash Player security hole

2008-05-28 Thread Gerrit Grobbelaar
The UPDATE section here:
http://www.securityfocus.com/bid/29386/exploit

states that website hacks let the pages forward to the malicious Flash files.

So unless you haven't compiled a malicious SWF yourself (which I'm not up to 
speed yet how to do) you are only vulnerable if your site is hackable, 
forcing code onto your site, e.g. via SQL injection, to redirect to malicious 
SWF files hosted elsewhere.

Thanks,
Gerrit

 -Original Message-
 From: Bob Wohl [EMAIL PROTECTED]
 Sent: Wednesday 28 May 2008 00:22
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 CC: 
 Subject: Re: [Flashcoders] Flash Player security hole


 egads! My apologies, I quickly skimmed over it and figured it was the same
 as last month.


 B.

 On Tue, May 27, 2008 at 3:09 PM, Merrill, Jason 

 [EMAIL PROTECTED] wrote:
  have them upgrade to 9.0.124.
 
  Bob, the article states,  the flaw affects both the recently released
  Flash Player version 9.0.124 .0 and version 9.0.115.0
 
  Jason Merrill
  Bank of America
  Global Technology  Operations  Global Risk LLD
  eTools  Multimedia
 
  Join the Bank of America Flash Platform Developer Community
 
  Are you a Bank of America associate interested in innovative learning
  ideas and technologies?
  Check out our internal  GTO Innovative Learning Blog  subscribe.
 
 
  ___
  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] Flash Player security hole

2008-05-28 Thread Peter B
 you are only vulnerable if your site is hackable

No no - you are vulnerable if you *visit* a site that has been hacked.

2008/5/28 Gerrit Grobbelaar [EMAIL PROTECTED]:
 The UPDATE section here:
 http://www.securityfocus.com/bid/29386/exploit

 states that website hacks let the pages forward to the malicious Flash files.

 So unless you haven't compiled a malicious SWF yourself (which I'm not up to
 speed yet how to do) you are only vulnerable if your site is hackable,
 forcing code onto your site, e.g. via SQL injection, to redirect to malicious
 SWF files hosted elsewhere.

 Thanks,
 Gerrit

 -Original Message-
 From: Bob Wohl [EMAIL PROTECTED]
 Sent: Wednesday 28 May 2008 00:22
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 CC:
 Subject: Re: [Flashcoders] Flash Player security hole


 egads! My apologies, I quickly skimmed over it and figured it was the same
 as last month.


 B.

 On Tue, May 27, 2008 at 3:09 PM, Merrill, Jason 

 [EMAIL PROTECTED] wrote:
  have them upgrade to 9.0.124.
 
  Bob, the article states,  the flaw affects both the recently released
  Flash Player version 9.0.124 .0 and version 9.0.115.0
 
  Jason Merrill
  Bank of America
  Global Technology  Operations  Global Risk LLD
  eTools  Multimedia
 
  Join the Bank of America Flash Platform Developer Community
 
  Are you a Bank of America associate interested in innovative learning
  ideas and technologies?
  Check out our internal  GTO Innovative Learning Blog  subscribe.
 
 
  ___
  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] Dynamically loaded Image in textfield - AS3

2008-05-28 Thread Rajiv Seth (Pixelated)
Hi,

I am also facing the similar problem. In my case image is in the end of the
text. I want the image to be displayed in the same line of text, but it is
showing with a line break.
Though this left margin issue can be resolved providing hspace in image
tag. Default value of hspace is 8. If you want to reduce this space,
provide less value e.g. hspace='3'

Rajiv

On Wed, May 28, 2008 at 3:40 PM, Vayu Robins [EMAIL PROTECTED] wrote:

 Hi.

 I am loading some dynamically html text into a textfield.  There is an
 image
 in the text.

 The problem is that the image is aligned maybe 5-6 px away from the right,
 whereas the text isnt.  Its as if there is a left margin or apadding on the
 image.

 Furthermore, is there a way of not having the text wrap around the image?
  I
 have some text above and under the image.  Not on the sides.

 Cordially.
 Vayu


 ___
 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] Dynamically loaded Image in textfield - AS3

2008-05-28 Thread Vayu Robins
Hi.

I am loading some dynamically html text into a textfield.  There is an image
in the text.

The problem is that the image is aligned maybe 5-6 px away from the right,
whereas the text isnt.  Its as if there is a left margin or apadding on the
image.

Furthermore, is there a way of not having the text wrap around the image?  I
have some text above and under the image.  Not on the sides.

Cordially.
Vayu


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


Re: [Flashcoders] Flash Player security hole

2008-05-28 Thread Gerrit Grobbelaar
 No no - you are vulnerable if you *visit* a site that has been hacked.

lol, of course, obviously that too, I wasn't paying attention there for a 
moment.  Good think you pointed that out :)

Thanks,
Gerrit

 -Original Message-
 From: Peter B [EMAIL PROTECTED]
 Sent: Wednesday 28 May 2008 11:36
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 CC: 
 Subject: Re: [Flashcoders] Flash Player security hole


  you are only vulnerable if your site is hackable

 No no - you are vulnerable if you *visit* a site that has been hacked.

 2008/5/28 Gerrit Grobbelaar [EMAIL PROTECTED]:
  The UPDATE section here:
  http://www.securityfocus.com/bid/29386/exploit
 
  states that website hacks let the pages forward to the malicious Flash
  files.
 
  So unless you haven't compiled a malicious SWF yourself (which I'm not up
  to speed yet how to do) you are only vulnerable if your site is hackable,
  forcing code onto your site, e.g. via SQL injection, to redirect to
  malicious SWF files hosted elsewhere.
 
  Thanks,
  Gerrit
 
  -Original Message-
  From: Bob Wohl [EMAIL PROTECTED]
  Sent: Wednesday 28 May 2008 00:22
  To: Flash Coders List flashcoders@chattyfig.figleaf.com
  CC:
  Subject: Re: [Flashcoders] Flash Player security hole
 
 
  egads! My apologies, I quickly skimmed over it and figured it was the
  same as last month.
 
 
  B.
 
  On Tue, May 27, 2008 at 3:09 PM, Merrill, Jason 
 
  [EMAIL PROTECTED] wrote:
   have them upgrade to 9.0.124.
  
   Bob, the article states,  the flaw affects both the recently released
   Flash Player version 9.0.124 .0 and version 9.0.115.0
  
   Jason Merrill
   Bank of America
   Global Technology  Operations  Global Risk LLD
   eTools  Multimedia
  
   Join the Bank of America Flash Platform Developer Community
  
   Are you a Bank of America associate interested in innovative learning
   ideas and technologies?
   Check out our internal  GTO Innovative Learning Blog  subscribe.
  
  
   ___
   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] Dynamically loaded Image in textfield - AS3

2008-05-28 Thread Vayu Robins
HI Rajiv.

I have tried setting the hspace, but it doesnt solve the problem.  There are
a few letters that insist on creeping up along side the image.

Thanks anyway for the suggestion.

Vayu 


On 5/28/08 1:12 PM, Rajiv Seth (Pixelated) [EMAIL PROTECTED] wrote:

 Hi,
 
 I am also facing the similar problem. In my case image is in the end of the
 text. I want the image to be displayed in the same line of text, but it is
 showing with a line break.
 Though this left margin issue can be resolved providing hspace in image
 tag. Default value of hspace is 8. If you want to reduce this space,
 provide less value e.g. hspace='3'
 
 Rajiv
 
 On Wed, May 28, 2008 at 3:40 PM, Vayu Robins [EMAIL PROTECTED] wrote:
 
 Hi.
 
 I am loading some dynamically html text into a textfield.  There is an
 image
 in the text.
 
 The problem is that the image is aligned maybe 5-6 px away from the right,
 whereas the text isnt.  Its as if there is a left margin or apadding on the
 image.
 
 Furthermore, is there a way of not having the text wrap around the image?
  I
 have some text above and under the image.  Not on the sides.
 
 Cordially.
 Vayu
 
 
 ___
 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] Image in dynamic text field

2008-05-28 Thread Gerry Creighton
Try concatenating the html text and the image if you want the image  
inline.
By your code snippet I'm assuming that you are setting the text in the  
field then setting

the image which is why you get a line break after the data.
Try this...

ie. movTxt.imageData.htmlText = images[j]+imgContent[j];

You could get more complex on where you'd want that image to sit in  
the text

if you did an indexOf for a particular on the string (data).

-Gerry

On May 28, 2008, at 2:15 AM, Rajiv Seth (Pixelated) wrote:


XML is like:

imageshow
   image path=images/home1.jpg url=www.google.com data=The  
Department
of Education has several options for youth aged between 16 to 21 who  
are
either not attending school or are at risk of droppinglt;img  
id='arrow'

src='arrow' /gt; /
/imageshow

Actually I want this arrow image which is in data attribute, to be  
linked

to url given in url attribute of above XML.

I am using following for loop to push xml values into array

for (i=0; itotalImages; i++) {
   images.push(xmlNode[i].attributes.path);
   imgContent.push(xmlNode[i].attributes.data);
   //trace(images);
   }

And later using a function, i am setting text field value:

movTxt.imageData.htmlText = imgContent[j];

Thanks

On Wed, May 28, 2008 at 12:33 AM, Helmut Granda [EMAIL PROTECTED] 


wrote:


what does the XML Looks like?

On Tue, May 27, 2008 at 6:33 AM, Rajiv Seth (Pixelated) 
[EMAIL PROTECTED] wrote:

When I am trying to call an image inside text field dynamically,  
it is
appearing after a line break, but I want the image to come in line  
with

the

text.
I have created the text field dynamically:

[i]txtHolder.createTextField(imageData,1,0,0,550,60);[/i]

and set these properties:
 [i]txtHolder.imageData.multiline = true;[/i]
  [i]txtHolder.imageData.wordWrap = true;[/i]
  [i]txtHolder.imageData.html = true;[/i]
  [i]txtHolder.imageData.border = true;[/i]
  [i]txtHolder.imageData.htmlText = ;[/i]

Now I am loading an image along with text into it using XML. I  
want to

use

and arrow image which will come in the end but in same line. But the

image

is taking a line break.

Can anyone suggest me how to use img in text field so that it  
appears

without line-break.

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





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





--
Regards

Rajiv Seth
Ph: 09839157388
___
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] Rectangle doesnt have scaleX/Y?

2008-05-28 Thread Matt S.
So I tried to the do the following:

var rectangle:Rectangle = new
Rectangle(0,0,[EMAIL PROTECTED],[EMAIL PROTECTED]);
if(cS.height  rectangle.height){
rectangle.height = cS.height;
rectangle.scaleX = rectangle.scaleY;
}

But it gives me the following error:
1119: Access of possibly undefined property scaleY through a reference
with static type flash.geom:Rectangle.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Rectangle doesnt have scaleX/Y?

2008-05-28 Thread Sidney de Koning

Hi Matt,

Try casting it to the XML data to a Number. Because XML data is a  
String.

Like so:
 var rectangle:Rectangle = new  
Rectangle 
(0,0,Number([EMAIL PROTECTED]),Number([EMAIL PROTECTED]));


Hope This helps.

Sid

On May 28, 2008, at 4:43 PM, Matt S. wrote:


So I tried to the do the following:

var rectangle:Rectangle = new
Rectangle(0,0,[EMAIL PROTECTED],[EMAIL PROTECTED]);
if(cS.height  rectangle.height){
rectangle.height = cS.height;
rectangle.scaleX = rectangle.scaleY;
}

But it gives me the following error:
1119: Access of possibly undefined property scaleY through a reference
with static type flash.geom:Rectangle.
___
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] Rectangle doesnt have scaleX/Y?

2008-05-28 Thread Viktor Hesselbom

Hi Matt,

It's quite obvious that Rectangle doesn't have scaleX and scaleY.

Why would you need it for the Rectangle class anyway?
What use for it could you possible have?

/ Viktor H

On Wed, 28 May 2008 16:43:04 +0200, Matt S. [EMAIL PROTECTED] wrote:


So I tried to the do the following:

var rectangle:Rectangle = new
Rectangle(0,0,[EMAIL PROTECTED],[EMAIL PROTECTED]);
if(cS.height  rectangle.height){
rectangle.height = cS.height;
rectangle.scaleX = rectangle.scaleY;
}

But it gives me the following error:
1119: Access of possibly undefined property scaleY through a reference
with static type flash.geom:Rectangle.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

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


Re: [Flashcoders] Rectangle doesnt have scaleX/Y?

2008-05-28 Thread Matt S.
Hmm, that didnt help. It seems to be recognizing it as a number, and I
can set the Width and Height of Rectangle, but when I try to set the
scaleX and scaleY is when I get the error message.

.m

On Wed, May 28, 2008 at 10:56 AM, Sidney de Koning
[EMAIL PROTECTED] wrote:
 Hi Matt,

 Try casting it to the XML data to a Number. Because XML data is a String.
 Like so:
  var rectangle:Rectangle = new
 Rectangle(0,0,Number([EMAIL PROTECTED]),Number([EMAIL PROTECTED]));

 Hope This helps.

 Sid

 On May 28, 2008, at 4:43 PM, Matt S. wrote:

 So I tried to the do the following:

 var rectangle:Rectangle = new
 Rectangle(0,0,[EMAIL PROTECTED],[EMAIL PROTECTED]);
 if(cS.height  rectangle.height){
rectangle.height = cS.height;
rectangle.scaleX = rectangle.scaleY;
 }

 But it gives me the following error:
 1119: Access of possibly undefined property scaleY through a reference
 with static type flash.geom:Rectangle.
 ___
 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] Understanding Error 2036

2008-05-28 Thread Helmut Granda
Hi All,

I am trying to understand Error 2036

[IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2
text=Error #2036: Load Never Completed. URL: file:url]

When I test in Flash IDE I am able to see the error noted above in the Flash
Log but it does not show in the Tracer panel and I was wondering if anyone
knows why. I know the files are loading because the application depend on
the files. So I am able to interact with the application and everything
works as expected. Yet when I run the applicatin then close the preview
window. I get the error listed for every file I loaded into the app.
Does anyone has any insight of why this is happening?
Needless to say I am able to catch the error and I just just do a blank
trace -trace()- which works but I am still wondering why this error gets
triggered even after the file has been loaded.

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


Re: [Flashcoders] Re: Assets quality Question.

2008-05-28 Thread Omar Fouad
What do you mean by Crisp.

On 5/27/08, leolea [EMAIL PROTECTED] wrote:


 Make sure your graphics are on full pixels. Not ony the graphics, but also
 their containers and the containers of their containers, and so on.

 ex:
 You have navMc.pixelButtonMc ( pixelButtonMc is contained in navMc )

 pixelButtonMc.x = 10;

 ... but navMc.x = 5.6;

 result: pixelButtonMc will not be crisp.


 Also, make sure your PNG or JPG is crisp at the source. Drawing in
 photoshop
 using the pencil tool with a 1px brush size helps.




 On 27/05/08 13:12, Omar Fouad [EMAIL PROTECTED] wrote:

  Why no one is answering to me
 
  On Tue, May 27, 2008 at 2:39 AM, Omar Fouad [EMAIL PROTECTED]
 wrote:
 
  List,
  I was Checking out this site www.nalden.net and I found out how clear
 are
  the assets used in it. I tried to create similar assets but they always
 look
  blurry or ruined. I tried PNGs and JPGs but I get the same result. I use
  pixel fonts, and I put them in rounded x and y in order not to get them
  blurry. But how can I do this with assets? Look at the site, it sounds
 like
  some of the assets like the bootom bar buttons or the buttons in the
 upper
  hidden menu, are made of pixels just like pixel fonts, so they look so
  perfect and pleasant. What is the trick? How can I get a similar result?
 
  Cordially.
 
  --
  Omar M. Fouad - Digital Emotions
  http://www.omarfouad.net
 
  This e-mail and any attachment is for authorised use by the intended
  recipient(s) only. It may contain proprietary material, confidential
  information and/or be subject to legal privilege. It should not be
 copied,
  disclosed to, retained or used by, any other party. If you are not an
  intended recipient then please promptly delete this e-mail and any
  attachment and all copies and inform the sender. Thank you.
 
 
 


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




-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Rectangle doesnt have scaleX/Y?

2008-05-28 Thread Ricky Bacon

Matt S. wrote:

So I tried to the do the following:

var rectangle:Rectangle = new
Rectangle(0,0,[EMAIL PROTECTED],[EMAIL PROTECTED]);
if(cS.height  rectangle.height){
rectangle.height = cS.height;
rectangle.scaleX = rectangle.scaleY;
}

But it gives me the following error:
1119: Access of possibly undefined property scaleY through a reference
with static type flash.geom:Rectangle.


Look up the public properties of the Rectangle class and you'll see 
scaleX and scaleY don't exist.  Draw the rectangle in a Sprite and scale 
the Sprite instead.


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


Re: [Flashcoders] Rectangle doesnt have scaleX/Y?

2008-05-28 Thread Helmut Granda
If you take a look at the Rectangle public properties scaleX and scaleY is
not listed:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/geom/Rectangle.html#propertySummary

Maybe you can wrap the rectangle with a sprite and then you can scaleX and
scaleY

..helmut

On Wed, May 28, 2008 at 10:10 AM, Matt S. [EMAIL PROTECTED] wrote:

 Hmm, that didnt help. It seems to be recognizing it as a number, and I
 can set the Width and Height of Rectangle, but when I try to set the
 scaleX and scaleY is when I get the error message.

 .m

 On Wed, May 28, 2008 at 10:56 AM, Sidney de Koning
 [EMAIL PROTECTED] wrote:
  Hi Matt,
 
  Try casting it to the XML data to a Number. Because XML data is a String.
  Like so:
   var rectangle:Rectangle = new
 
 Rectangle(0,0,Number([EMAIL PROTECTED]),Number([EMAIL PROTECTED]));
 
  Hope This helps.
 
  Sid
 
  On May 28, 2008, at 4:43 PM, Matt S. wrote:
 
  So I tried to the do the following:
 
  var rectangle:Rectangle = new
  Rectangle(0,0,[EMAIL PROTECTED],[EMAIL PROTECTED]);
  if(cS.height  rectangle.height){
 rectangle.height = cS.height;
 rectangle.scaleX = rectangle.scaleY;
  }
 
  But it gives me the following error:
  1119: Access of possibly undefined property scaleY through a reference
  with static type flash.geom:Rectangle.
  ___
  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




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


Re: [Flashcoders] Rectangle doesnt have scaleX/Y?

2008-05-28 Thread Helmut Granda
to add to Sid's comments
From the docs:
*Note:* The Rectangle class does not define a rectangular Shape display
object. To draw a rectangular Shape object onscreen, use thedrawRect() method
of the Graphics class.

...Sid... could you elaborate on using the Rectangle class to measure
objects on the stage?

On Wed, May 28, 2008 at 10:15 AM, Sidney de Koning [EMAIL PROTECTED]
wrote:

 Hi Matt,

 For what do you want to use the Rectangle? Normally you would use it for
 instance to measure objects on the stage (at least i do )
 For what you are doing cant you use a Shape? or a Sprite?

 Sid


 On May 28, 2008, at 5:10 PM, Matt S. wrote:

  Hmm, that didnt help. It seems to be recognizing it as a number, and I
 can set the Width and Height of Rectangle, but when I try to set the
 scaleX and scaleY is when I get the error message.

 .m

 On Wed, May 28, 2008 at 10:56 AM, Sidney de Koning
 [EMAIL PROTECTED] wrote:

 Hi Matt,

 Try casting it to the XML data to a Number. Because XML data is a String.
 Like so:
 var rectangle:Rectangle = new

 Rectangle(0,0,Number([EMAIL PROTECTED]),Number([EMAIL PROTECTED]));

 Hope This helps.

 Sid

 On May 28, 2008, at 4:43 PM, Matt S. wrote:

  So I tried to the do the following:

 var rectangle:Rectangle = new
 Rectangle(0,0,[EMAIL PROTECTED],[EMAIL PROTECTED]);
 if(cS.height  rectangle.height){
  rectangle.height = cS.height;
  rectangle.scaleX = rectangle.scaleY;
 }

 But it gives me the following error:
 1119: Access of possibly undefined property scaleY through a reference
 with static type flash.geom:Rectangle.
 ___
 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




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


[Flashcoders] AS3 GModeler?

2008-05-28 Thread Ali Drongo
Hiya, I'm starting planning an AS3 project and have previously used  
Gmodeler to plan my classes.
Are there any similar apps that will generate my stub classes in the  
same way GModeler did for AS2?

Or can anyone recommend other AS3 // OOP planning apps they find useful?
Cheers
Ali


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


Re: [Flashcoders] Rectangle doesnt have scaleX/Y?

2008-05-28 Thread Sidney de Koning

Hi Matt,

For what do you want to use the Rectangle? Normally you would use it  
for instance to measure objects on the stage (at least i do )

For what you are doing cant you use a Shape? or a Sprite?

Sid

On May 28, 2008, at 5:10 PM, Matt S. wrote:


Hmm, that didnt help. It seems to be recognizing it as a number, and I
can set the Width and Height of Rectangle, but when I try to set the
scaleX and scaleY is when I get the error message.

.m

On Wed, May 28, 2008 at 10:56 AM, Sidney de Koning
[EMAIL PROTECTED] wrote:

Hi Matt,

Try casting it to the XML data to a Number. Because XML data is a  
String.

Like so:
var rectangle:Rectangle = new
Rectangle 
(0,0,Number([EMAIL PROTECTED]),Number([EMAIL PROTECTED]));


Hope This helps.

Sid

On May 28, 2008, at 4:43 PM, Matt S. wrote:


So I tried to the do the following:

var rectangle:Rectangle = new
Rectangle(0,0,[EMAIL PROTECTED],[EMAIL PROTECTED]);
if(cS.height  rectangle.height){
  rectangle.height = cS.height;
  rectangle.scaleX = rectangle.scaleY;
}

But it gives me the following error:
1119: Access of possibly undefined property scaleY through a  
reference

with static type flash.geom:Rectangle.
___
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] Re: Assets quality Question.

2008-05-28 Thread Glen Pike

Could you not use vector assets?

Omar Fouad wrote:

What do you mean by Crisp.

On 5/27/08, leolea [EMAIL PROTECTED] wrote:
  

Make sure your graphics are on full pixels. Not ony the graphics, but also
their containers and the containers of their containers, and so on.

ex:
You have navMc.pixelButtonMc ( pixelButtonMc is contained in navMc )

pixelButtonMc.x = 10;

... but navMc.x = 5.6;

result: pixelButtonMc will not be crisp.


Also, make sure your PNG or JPG is crisp at the source. Drawing in
photoshop
using the pencil tool with a 1px brush size helps.




On 27/05/08 13:12, Omar Fouad [EMAIL PROTECTED] wrote:



Why no one is answering to me

On Tue, May 27, 2008 at 2:39 AM, Omar Fouad [EMAIL PROTECTED]
  

wrote:


List,
I was Checking out this site www.nalden.net and I found out how clear


are


the assets used in it. I tried to create similar assets but they always


look


blurry or ruined. I tried PNGs and JPGs but I get the same result. I use
pixel fonts, and I put them in rounded x and y in order not to get them
blurry. But how can I do this with assets? Look at the site, it sounds


like


some of the assets like the bootom bar buttons or the buttons in the


upper


hidden menu, are made of pixels just like pixel fonts, so they look so
perfect and pleasant. What is the trick? How can I get a similar result?

Cordially.

--
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be


copied,


disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.


  

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






  


--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

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


Re: [Flashcoders] Rectangle doesnt have scaleX/Y?

2008-05-28 Thread Sidney de Koning

Ofcourse :)

Right now I'm working on a project that does involve a scrollbar.
What i do with the Rectangle class is i measure the handle of the  
scrollbar and use it for the bounds to drag it to.

Like so:

_maxScroll = _track.height - _handler.height;
_bounds = new Rectangle( _handler.x, _handler.y, 0, _maxScroll );

And then in my function where i do the actual dragging, i do this:

_handler.startDrag( false, _bounds );

If you look at the documentation for the Rectangle Class it also says  
this:


The following methods and properties use Rectangle objects:
* The bounds parameter for the startDrag() method of the Sprite class

Hope this makes sense, to me it does :)

Sid

On May 28, 2008, at 5:33 PM, Helmut Granda wrote:


to add to Sid's comments

From the docs:
*Note:* The Rectangle class does not define a rectangular Shape  
display
object. To draw a rectangular Shape object onscreen, use  
thedrawRect() method

of the Graphics class.

...Sid... could you elaborate on using the Rectangle class to measure
objects on the stage?

On Wed, May 28, 2008 at 10:15 AM, Sidney de Koning [EMAIL PROTECTED] 


wrote:


Hi Matt,

For what do you want to use the Rectangle? Normally you would use  
it for

instance to measure objects on the stage (at least i do )
For what you are doing cant you use a Shape? or a Sprite?

Sid


On May 28, 2008, at 5:10 PM, Matt S. wrote:

Hmm, that didnt help. It seems to be recognizing it as a number,  
and I

can set the Width and Height of Rectangle, but when I try to set the
scaleX and scaleY is when I get the error message.

.m

On Wed, May 28, 2008 at 10:56 AM, Sidney de Koning
[EMAIL PROTECTED] wrote:


Hi Matt,

Try casting it to the XML data to a Number. Because XML data is a  
String.

Like so:
var rectangle:Rectangle = new

Rectangle 
(0,0 
,Number([EMAIL PROTECTED]),Number([EMAIL PROTECTED]));


Hope This helps.

Sid

On May 28, 2008, at 4:43 PM, Matt S. wrote:

So I tried to the do the following:


var rectangle:Rectangle = new
Rectangle(0,0,[EMAIL PROTECTED],[EMAIL PROTECTED]);
if(cS.height  rectangle.height){
rectangle.height = cS.height;
rectangle.scaleX = rectangle.scaleY;
}

But it gives me the following error:
1119: Access of possibly undefined property scaleY through a  
reference

with static type flash.geom:Rectangle.
___
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





--
...helmut
___
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] Rectangle doesnt have scaleX/Y?

2008-05-28 Thread Matt S.
On Wed, May 28, 2008 at 11:04 AM, Viktor Hesselbom
[EMAIL PROTECTED] wrote:
 Hi Matt,

 It's quite obvious that Rectangle doesn't have scaleX and scaleY.

 Why would you need it for the Rectangle class anyway?
 What use for it could you possible have?


What use could I possibly have? well, one use... I used it to
calculate the draggable area of an object using startDrag(), and that
worked well, like so:

var rectangle:Rectangle = new
Rectangle(e.currentTarget.parent.gutter.x,e.currentTarget.parent.gutter.y,e.currentTarget.parent.gutter.x,e.currentTarget.parent.gutter.y+e.currentTarget.parent.gutter.height-e.currentTarget.height);
e.currentTarget.startDrag(false,rectangle);

But then I tried to use it for calculating image size and positioning
prior to the image being loaded, and thats where I ran into the Scale
problem. Anyhow, I used an old fashioned Maths to calculate it
instead, so I'm good, thanks to all for the suggestions.

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


RE: [Flashcoders] AS3 GModeler?

2008-05-28 Thread Romuald Quantin
The most well-known as3 frameworks are:

http://labs.adobe.com/wiki/index.php/Cairngorm
http://puremvc.org/

A full list there:
http://seantheflashguy.com/blog/2007/11/20/actionscript-30-uml-and-code-gene
ration-tools/

If you're an eclipse user (which I recommend):
http://alexdp.free.fr/violetumleditor/page.php

cross-platform:
http://staruml.sourceforge.net/en/

Romu


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ali Drongo
Sent: 28 May 2008 16:28
To: Flash Coders List
Subject: [Flashcoders] AS3 GModeler?

Hiya, I'm starting planning an AS3 project and have previously used  
Gmodeler to plan my classes.
Are there any similar apps that will generate my stub classes in the  
same way GModeler did for AS2?
Or can anyone recommend other AS3 // OOP planning apps they find useful?
Cheers
Ali


___
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] Rectangle doesnt have scaleX/Y?

2008-05-28 Thread Romuald Quantin
A rectangle is invisible, instead of using the scale properties that don't
exist; maybe you can calculate the real width and height values?

Or If your problem is keeping a ratio, maybe this post on my blog will help?

http://www.soundstep.com/blog/2008/05/08/background-fitting-the-browser-and-
image-ratio/

Romu

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney de
Koning
Sent: 28 May 2008 16:48
To: Flash Coders List
Subject: Re: [Flashcoders] Rectangle doesnt have scaleX/Y?

Ofcourse :)

Right now I'm working on a project that does involve a scrollbar.
What i do with the Rectangle class is i measure the handle of the  
scrollbar and use it for the bounds to drag it to.
Like so:

_maxScroll = _track.height - _handler.height;
_bounds = new Rectangle( _handler.x, _handler.y, 0, _maxScroll );

And then in my function where i do the actual dragging, i do this:

_handler.startDrag( false, _bounds );

If you look at the documentation for the Rectangle Class it also says  
this:

The following methods and properties use Rectangle objects:
* The bounds parameter for the startDrag() method of the Sprite class

Hope this makes sense, to me it does :)

Sid

On May 28, 2008, at 5:33 PM, Helmut Granda wrote:

 to add to Sid's comments
 From the docs:
 *Note:* The Rectangle class does not define a rectangular Shape  
 display
 object. To draw a rectangular Shape object onscreen, use  
 thedrawRect() method
 of the Graphics class.

 ...Sid... could you elaborate on using the Rectangle class to measure
 objects on the stage?

 On Wed, May 28, 2008 at 10:15 AM, Sidney de Koning [EMAIL PROTECTED]

 
 wrote:

 Hi Matt,

 For what do you want to use the Rectangle? Normally you would use  
 it for
 instance to measure objects on the stage (at least i do )
 For what you are doing cant you use a Shape? or a Sprite?

 Sid


 On May 28, 2008, at 5:10 PM, Matt S. wrote:

 Hmm, that didnt help. It seems to be recognizing it as a number,  
 and I
 can set the Width and Height of Rectangle, but when I try to set the
 scaleX and scaleY is when I get the error message.

 .m

 On Wed, May 28, 2008 at 10:56 AM, Sidney de Koning
 [EMAIL PROTECTED] wrote:

 Hi Matt,

 Try casting it to the XML data to a Number. Because XML data is a  
 String.
 Like so:
 var rectangle:Rectangle = new

 Rectangle 
 (0,0 
 ,Number([EMAIL PROTECTED]),Number([EMAIL PROTECTED]));

 Hope This helps.

 Sid

 On May 28, 2008, at 4:43 PM, Matt S. wrote:

 So I tried to the do the following:

 var rectangle:Rectangle = new
 Rectangle(0,0,[EMAIL PROTECTED],[EMAIL PROTECTED]);
 if(cS.height  rectangle.height){
 rectangle.height = cS.height;
 rectangle.scaleX = rectangle.scaleY;
 }

 But it gives me the following error:
 1119: Access of possibly undefined property scaleY through a  
 reference
 with static type flash.geom:Rectangle.
 ___
 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




 -- 
 ...helmut
 ___
 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] Understanding Error 2036

2008-05-28 Thread Merrill, Jason
That's odd if the file is being loaded afterall.  You're sure the same
file is being loaded that you think is being loaded and not a cache or
another copy somewhere else?  That error is the same error I get when
the file cannot be found that was requested to be loaded.  Have you
tried removing the file that you think is being loaded to be sure it
really is the same file being loaded?

Jason Merrill 
Bank of America 
Global Technology  Operations  Global Risk LLD 
eTools  Multimedia 

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GTO Innovative Learning Blog  subscribe. 

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


Re: [Flashcoders] Rectangle doesnt have scaleX/Y?

2008-05-28 Thread Matt S.
yeah thats what I ended up doing. Thanks for passing on your post though :)

.m

On Wed, May 28, 2008 at 12:34 PM, Romuald Quantin
[EMAIL PROTECTED] wrote:
 A rectangle is invisible, instead of using the scale properties that don't
 exist; maybe you can calculate the real width and height values?

 Or If your problem is keeping a ratio, maybe this post on my blog will help?

 http://www.soundstep.com/blog/2008/05/08/background-fitting-the-browser-and-
 image-ratio/

 Romu

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Sidney de
 Koning
 Sent: 28 May 2008 16:48
 To: Flash Coders List
 Subject: Re: [Flashcoders] Rectangle doesnt have scaleX/Y?

 Ofcourse :)

 Right now I'm working on a project that does involve a scrollbar.
 What i do with the Rectangle class is i measure the handle of the
 scrollbar and use it for the bounds to drag it to.
 Like so:

 _maxScroll = _track.height - _handler.height;
 _bounds = new Rectangle( _handler.x, _handler.y, 0, _maxScroll );

 And then in my function where i do the actual dragging, i do this:

 _handler.startDrag( false, _bounds );

 If you look at the documentation for the Rectangle Class it also says
 this:

 The following methods and properties use Rectangle objects:
 * The bounds parameter for the startDrag() method of the Sprite class

 Hope this makes sense, to me it does :)

 Sid

 On May 28, 2008, at 5:33 PM, Helmut Granda wrote:

 to add to Sid's comments
 From the docs:
 *Note:* The Rectangle class does not define a rectangular Shape
 display
 object. To draw a rectangular Shape object onscreen, use
 thedrawRect() method
 of the Graphics class.

 ...Sid... could you elaborate on using the Rectangle class to measure
 objects on the stage?

 On Wed, May 28, 2008 at 10:15 AM, Sidney de Koning [EMAIL PROTECTED]

 
 wrote:

 Hi Matt,

 For what do you want to use the Rectangle? Normally you would use
 it for
 instance to measure objects on the stage (at least i do )
 For what you are doing cant you use a Shape? or a Sprite?

 Sid


 On May 28, 2008, at 5:10 PM, Matt S. wrote:

 Hmm, that didnt help. It seems to be recognizing it as a number,
 and I
 can set the Width and Height of Rectangle, but when I try to set the
 scaleX and scaleY is when I get the error message.

 .m

 On Wed, May 28, 2008 at 10:56 AM, Sidney de Koning
 [EMAIL PROTECTED] wrote:

 Hi Matt,

 Try casting it to the XML data to a Number. Because XML data is a
 String.
 Like so:
 var rectangle:Rectangle = new

 Rectangle
 (0,0
 ,Number([EMAIL PROTECTED]),Number([EMAIL PROTECTED]));

 Hope This helps.

 Sid

 On May 28, 2008, at 4:43 PM, Matt S. wrote:

 So I tried to the do the following:

 var rectangle:Rectangle = new
 Rectangle(0,0,[EMAIL PROTECTED],[EMAIL PROTECTED]);
 if(cS.height  rectangle.height){
 rectangle.height = cS.height;
 rectangle.scaleX = rectangle.scaleY;
 }

 But it gives me the following error:
 1119: Access of possibly undefined property scaleY through a
 reference
 with static type flash.geom:Rectangle.
 ___
 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




 --
 ...helmut
 ___
 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] Understanding Error 2036

2008-05-28 Thread Helmut Granda
Yeah, I know it is weird that is why I was wondering if anyone else is
getting the same error. Notice that this error wont get traced in the Flash
IDE but it is in flashlog.txt.
I removed one of the images that is being loaded and it breaks the
application (as expected) so it must be something else but not sure what it
is.

Maybe a bug? I guess I can log it in to Adobe to confirm if it is a bug or
not.

On Wed, May 28, 2008 at 11:59 AM, Merrill, Jason 
[EMAIL PROTECTED] wrote:

 That's odd if the file is being loaded afterall.  You're sure the same
 file is being loaded that you think is being loaded and not a cache or
 another copy somewhere else?  That error is the same error I get when
 the file cannot be found that was requested to be loaded.  Have you
 tried removing the file that you think is being loaded to be sure it
 really is the same file being loaded?

 Jason Merrill
 Bank of America
 Global Technology  Operations  Global Risk LLD
 eTools  Multimedia

 Join the Bank of America Flash Platform Developer Community

 Are you a Bank of America associate interested in innovative learning
 ideas and technologies?
 Check out our internal  GTO Innovative Learning Blog  subscribe.


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




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


Re: [Flashcoders] Flash Player security hole

2008-05-28 Thread John Dowdell

Dave Segal wrote:

Does anyone have more info on this? What is the flaw and what can we do to
protect our users?
http://www.pcworld.com/businesscenter/article/146343/new_adobe_flaw_being_
used_in_attacks_says_symantec.html


The Flash Player Security Team had an interim response up yesterday 
(when Symantec's release hit), and a more full response this morning:

http://blogs.adobe.com/psirt

The issue is still being researched, but as the security team says, this 
appears to be a known issue, already addressed in the current Player 
9.0.124 (and the Astro preview). It usually takes a few days to 
completely nail down all variables within a report however, so keep an 
eye on the security blog for best info.


I haven't gone into this issue deeply yet myself, but some press reports 
yesterday said a malformed SWF was hosted on two servers in China, and 
that there were HTML injections into many mainstream websites to refer 
to those two SWF. However, I've read that those two Chinese addresses 
were already taken offline, meaning that the webpage references won't 
resolve, and that this route to trouble has already been effectively 
closed. That's just my understanding, though, and would need first-hand 
confirmation to be sure.


jd




--
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Understanding Error 2036

2008-05-28 Thread Merrill, Jason
I would say if it's  not an error that the Flash IDE is messaging you
about, or the Flash 9 debug player, then I wouldn't worry about it.  

Jason Merrill 
Bank of America 
Global Technology  Operations  Global Risk LLD 
eTools  Multimedia 

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GTO Innovative Learning Blog  subscribe. 

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


RE: [Flashcoders] Flash Player security hole

2008-05-28 Thread Merrill, Jason
John wrote:

this appears to be a known issue, already addressed in 
the current Player
9.0.124 (and the Astro preview)

Adobe statement also says, customers with Flash Player 9.0.124.0 should
not be vulnerable to this exploit.

I'm confused, the PC World article said,  The flaw affects both the
recently released Flash Player version 9.0.124 .0 and version
9.0.115.0,

http://www.pcworld.com/businesscenter/article/146343/new_adobe_flaw_bein
g_used_in_attacks_says_symantec.html

Are there or are there not existing security flaws in the 9.0.124.0
version of the player?



Jason Merrill 
Bank of America 
Global Technology  Operations  Global Risk LLD 
eTools  Multimedia 

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GTO Innovative Learning Blog  subscribe. 



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


RE: [Flashcoders] Understanding Error 2036

2008-05-28 Thread Merrill, Jason
Are you by any chance inadvertently calling a load again after the
initial file gets loaded?  I wonder if the error is due to something
else, not the load you think you're doing...

Jason Merrill 
Bank of America 
Global Technology  Operations  Global Risk LLD 
eTools  Multimedia 

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GTO Innovative Learning Blog  subscribe. 

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


Re: [Flashcoders] Understanding Error 2036

2008-05-28 Thread Helmut Granda
I think I would have never noticed it (and a lot of people do not see it) if
I didn't use the flashlog.txt as my debug system. Basically instead of
using the Flash IDE output window I use a program that shows me the contents
of flashlog.txt and that is when I see the issue.
I wouldn't mind at all (and I don't) when I am only loading a few files but
at times I am loading several items and I get a long row of errors that
cover all the real items that I care about.

Besides, in the back of my mind I know they are there! :)

On Wed, May 28, 2008 at 3:55 PM, Merrill, Jason 
[EMAIL PROTECTED] wrote:

 I would say if it's  not an error that the Flash IDE is messaging you
 about, or the Flash 9 debug player, then I wouldn't worry about it.

 Jason Merrill
 Bank of America
 Global Technology  Operations  Global Risk LLD
 eTools  Multimedia

 Join the Bank of America Flash Platform Developer Community

 Are you a Bank of America associate interested in innovative learning
 ideas and technologies?
 Check out our internal  GTO Innovative Learning Blog  subscribe.


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




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


Re: [Flashcoders] Understanding Error 2036

2008-05-28 Thread Helmut Granda
Good point... but to make my point I have created a very simple sample.
1. Copy and paste the code below to a blank FLA and run it (NOTICE: You have
to provide a file to load and it can be a simple png)2. You should see a
trace statement FILE LOADED
3. Close the window
4. Nothing appears on the trace window
5. Open flashlog.txt on your system
6. You should see the very last line of text something similar to the
following:

THERE WAS AN ERROR
[IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2
text=Error #2036: Load Never Completed. URL:
file:./layout.png]


//--START COPY AND PASTE CODE

var loader : Loader;
var request : URLRequest;

function load ( file : String) : void {
request = new URLRequest( file );
loader.load(request);
}

function init() : void {
loader = new Loader();
loader.contentLoaderInfo.addEventListener ( Event.COMPLETE, onComplete);
loader.contentLoaderInfo.addEventListener ( IOErrorEvent.IO_ERROR, onError);
}

function onComplete ( e:Event ) : void {
var target = e.target;
var icon = loader;
trace(FILE LOADED);
}

function onError ( e : IOErrorEvent ) : void {
trace(THERE WAS AN ERROR);
trace(e)
}

init();
load(layout.png);

//END OF CODE FOR FLASH

Interesting huh?

helmut

On Wed, May 28, 2008 at 4:10 PM, Merrill, Jason 
[EMAIL PROTECTED] wrote:

 Are you by any chance inadvertently calling a load again after the
 initial file gets loaded?  I wonder if the error is due to something
 else, not the load you think you're doing...

 Jason Merrill
 Bank of America
 Global Technology  Operations  Global Risk LLD
 eTools  Multimedia

 Join the Bank of America Flash Platform Developer Community

 Are you a Bank of America associate interested in innovative learning
 ideas and technologies?
 Check out our internal  GTO Innovative Learning Blog  subscribe.


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




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


RE: [Flashcoders] Understanding Error 2036

2008-05-28 Thread Merrill, Jason
Where is flashlog.txt normally?   I couldn't locate it.

Jason Merrill 
Bank of America 
Global Technology  Operations  Global Risk LLD 
eTools  Multimedia 

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GTO Innovative Learning Blog  subscribe. 

 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Helmut Granda
Sent: Wednesday, May 28, 2008 5:48 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Understanding Error 2036

Good point... but to make my point I have created a very 
simple sample.
1. Copy and paste the code below to a blank FLA and run it 
(NOTICE: You have to provide a file to load and it can be a 
simple png)2. You should see a trace statement FILE LOADED
3. Close the window
4. Nothing appears on the trace window
5. Open flashlog.txt on your system
6. You should see the very last line of text something similar to the
following:

THERE WAS AN ERROR
[IOErrorEvent type=ioError bubbles=false cancelable=false 
eventPhase=2 text=Error #2036: Load Never Completed. URL:
file:./layout.png]


//--START COPY AND PASTE CODE

var loader : Loader;
var request : URLRequest;

function load ( file : String) : void {
request = new URLRequest( file );
loader.load(request);
}

function init() : void {
loader = new Loader();
loader.contentLoaderInfo.addEventListener ( Event.COMPLETE, 
onComplete); loader.contentLoaderInfo.addEventListener ( 
IOErrorEvent.IO_ERROR, onError); }

function onComplete ( e:Event ) : void { var target = 
e.target; var icon = loader; trace(FILE LOADED); }

function onError ( e : IOErrorEvent ) : void { trace(THERE 
WAS AN ERROR);
trace(e)
}

init();
load(layout.png);

//END OF CODE FOR FLASH

Interesting huh?

helmut

On Wed, May 28, 2008 at 4:10 PM, Merrill, Jason  
[EMAIL PROTECTED] wrote:

 Are you by any chance inadvertently calling a load again after the 
 initial file gets loaded?  I wonder if the error is due to 
something 
 else, not the load you think you're doing...

 Jason Merrill
 Bank of America
 Global Technology  Operations  Global Risk LLD eTools  
Multimedia

 Join the Bank of America Flash Platform Developer Community

 Are you a Bank of America associate interested in 
innovative learning 
 ideas and technologies?
 Check out our internal  GTO Innovative Learning Blog  subscribe.


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




--
...helmut
___
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] Flash Player security hole

2008-05-28 Thread Francis Cheng
PCWorld has updated its report:

Symantec Backtracks on Adobe Flash Warning
http://www.pcworld.com/businesscenter/article/146396

Francis Cheng | Senior Technical Writer | Adobe Systems, Inc.
http://blogs.adobe.com/fcheng

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Wednesday, May 28, 2008 2:08 PM
To: Flash Coders List
Subject: RE: [Flashcoders] Flash Player security hole

John wrote:

this appears to be a known issue, already addressed in 
the current Player
9.0.124 (and the Astro preview)

Adobe statement also says, customers with Flash Player 9.0.124.0 should
not be vulnerable to this exploit.

I'm confused, the PC World article said,  The flaw affects both the
recently released Flash Player version 9.0.124 .0 and version
9.0.115.0,

http://www.pcworld.com/businesscenter/article/146343/new_adobe_flaw_bein
g_used_in_attacks_says_symantec.html

Are there or are there not existing security flaws in the 9.0.124.0
version of the player?



Jason Merrill 
Bank of America 
Global Technology  Operations  Global Risk LLD 
eTools  Multimedia 

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GTO Innovative Learning Blog  subscribe. 



 
___
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] Understanding Error 2036

2008-05-28 Thread Helmut Granda
MAC:
/Users/YOURUSERID/Library/Preferences/Macromedia/Flash
Player/Logs/flashlog.txt

PC:
Not sure...

You have to have flash player debug version and here are some tips in case
you have the flash player debug and you can't find it:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19323

Note that the information in the article is talking about Flex but it also
applies to flash.


On Wed, May 28, 2008 at 4:51 PM, Merrill, Jason 
[EMAIL PROTECTED] wrote:

 Where is flashlog.txt normally?   I couldn't locate it.

 Jason Merrill
 Bank of America
 Global Technology  Operations  Global Risk LLD
 eTools  Multimedia

 Join the Bank of America Flash Platform Developer Community

 Are you a Bank of America associate interested in innovative learning
 ideas and technologies?
 Check out our internal  GTO Innovative Learning Blog  subscribe.



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Helmut Granda
 Sent: Wednesday, May 28, 2008 5:48 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] Understanding Error 2036
 
 Good point... but to make my point I have created a very
 simple sample.
 1. Copy and paste the code below to a blank FLA and run it
 (NOTICE: You have to provide a file to load and it can be a
 simple png)2. You should see a trace statement FILE LOADED
 3. Close the window
 4. Nothing appears on the trace window
 5. Open flashlog.txt on your system
 6. You should see the very last line of text something similar to the
 following:
 
 THERE WAS AN ERROR
 [IOErrorEvent type=ioError bubbles=false cancelable=false
 eventPhase=2 text=Error #2036: Load Never Completed. URL:
 file:./layout.png]
 
 
 //--START COPY AND PASTE CODE
 
 var loader : Loader;
 var request : URLRequest;
 
 function load ( file : String) : void {
 request = new URLRequest( file );
 loader.load(request);
 }
 
 function init() : void {
 loader = new Loader();
 loader.contentLoaderInfo.addEventListener ( Event.COMPLETE,
 onComplete); loader.contentLoaderInfo.addEventListener (
 IOErrorEvent.IO_ERROR, onError); }
 
 function onComplete ( e:Event ) : void { var target =
 e.target; var icon = loader; trace(FILE LOADED); }
 
 function onError ( e : IOErrorEvent ) : void { trace(THERE
 WAS AN ERROR);
 trace(e)
 }
 
 init();
 load(layout.png);
 
 //END OF CODE FOR FLASH
 
 Interesting huh?
 
 helmut
 
 On Wed, May 28, 2008 at 4:10 PM, Merrill, Jason 
 [EMAIL PROTECTED] wrote:
 
  Are you by any chance inadvertently calling a load again after the
  initial file gets loaded?  I wonder if the error is due to
 something
  else, not the load you think you're doing...
 
  Jason Merrill
  Bank of America
  Global Technology  Operations  Global Risk LLD eTools 
 Multimedia
 
  Join the Bank of America Flash Platform Developer Community
 
  Are you a Bank of America associate interested in
 innovative learning
  ideas and technologies?
  Check out our internal  GTO Innovative Learning Blog  subscribe.
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
 --
 ...helmut
 ___
 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




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


Re: [Flashcoders] Understanding Error 2036

2008-05-28 Thread Glen Pike

PC

%SYSTEMROOT%:\Documents and Settings\username\Application 
Data\Macromedia\Flash Player\Logs


Helmut Granda wrote:

MAC:
/Users/YOURUSERID/Library/Preferences/Macromedia/Flash
Player/Logs/flashlog.txt

PC:
Not sure...

You have to have flash player debug version and here are some tips in case
you have the flash player debug and you can't find it:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19323

Note that the information in the article is talking about Flex but it also
applies to flash.


On Wed, May 28, 2008 at 4:51 PM, Merrill, Jason 
[EMAIL PROTECTED] wrote:

  

Where is flashlog.txt normally?   I couldn't locate it.

Jason Merrill
Bank of America
Global Technology  Operations  Global Risk LLD
eTools  Multimedia

Join the Bank of America Flash Platform Developer Community

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GTO Innovative Learning Blog  subscribe.





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Helmut Granda
Sent: Wednesday, May 28, 2008 5:48 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Understanding Error 2036

Good point... but to make my point I have created a very
simple sample.
1. Copy and paste the code below to a blank FLA and run it
(NOTICE: You have to provide a file to load and it can be a
simple png)2. You should see a trace statement FILE LOADED
3. Close the window
4. Nothing appears on the trace window
5. Open flashlog.txt on your system
6. You should see the very last line of text something similar to the
following:

THERE WAS AN ERROR
[IOErrorEvent type=ioError bubbles=false cancelable=false
eventPhase=2 text=Error #2036: Load Never Completed. URL:
file:./layout.png]


//--START COPY AND PASTE CODE

var loader : Loader;
var request : URLRequest;

function load ( file : String) : void {
request = new URLRequest( file );
loader.load(request);
}

function init() : void {
loader = new Loader();
loader.contentLoaderInfo.addEventListener ( Event.COMPLETE,
onComplete); loader.contentLoaderInfo.addEventListener (
IOErrorEvent.IO_ERROR, onError); }

function onComplete ( e:Event ) : void { var target =
e.target; var icon = loader; trace(FILE LOADED); }

function onError ( e : IOErrorEvent ) : void { trace(THERE
WAS AN ERROR);
trace(e)
}

init();
load(layout.png);

//END OF CODE FOR FLASH

Interesting huh?

helmut

On Wed, May 28, 2008 at 4:10 PM, Merrill, Jason 
[EMAIL PROTECTED] wrote:



Are you by any chance inadvertently calling a load again after the
initial file gets loaded?  I wonder if the error is due to
  

something


else, not the load you think you're doing...

Jason Merrill
Bank of America
Global Technology  Operations  Global Risk LLD eTools 
  

Multimedia


Join the Bank of America Flash Platform Developer Community

Are you a Bank of America associate interested in
  

innovative learning


ideas and technologies?
Check out our internal  GTO Innovative Learning Blog  subscribe.


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

  


--
...helmut
___
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






  


--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

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


[Flashcoders] Firefox popup blocker and flash 9

2008-05-28 Thread Dan Wade
I'm having problems with Fireox blocking my popup windows. I've tried
everything I can think of. It seems to happen on Windows running Firefox but
I can't replicate the issue on all machines I've tested(it works on most
machines but not all).

Here is the class I'm using:

package {

import flash.external.ExternalInterface;

public class URLUtil{

protected static const WINDOW_OPEN_FUNCTION : String =
window.open;

public static function openWindow(url : String, window : String =
_blank, features : String = ) : void {
ExternalInterface.call(WINDOW_OPEN_FUNCTION, url, window,
features);
}

}

}


//being called this way
function recholder1Release(event:MouseEvent) {
URLUtil.openWindow(res1link);
}


Any ideas?

TIA,

-D

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


RE: [Flashcoders] Firefox popup blocker and flash 9

2008-05-28 Thread Robert Leisle
This is probably not what your client wants to hear but the question has to
be asked. Isn't Firefox popup blocker there for a reason? When blocking is
active there is a message when a popup is attempted. Users have the choice
to block or not, or to white-list your popups. I recommend allowing them
that choice.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dan Wade
Sent: Wednesday, May 28, 2008 4:22 PM
To: Flash Coders List
Subject: [Flashcoders] Firefox popup blocker and flash 9

I'm having problems with Fireox blocking my popup windows. I've tried
everything I can think of. It seems to happen on Windows running Firefox but
I can't replicate the issue on all machines I've tested(it works on most
machines but not all).

Here is the class I'm using:

package {

import flash.external.ExternalInterface;

public class URLUtil{

protected static const WINDOW_OPEN_FUNCTION : String =
window.open;

public static function openWindow(url : String, window : String =
_blank, features : String = ) : void {
ExternalInterface.call(WINDOW_OPEN_FUNCTION, url, window,
features);
}

}

}


//being called this way
function recholder1Release(event:MouseEvent) {
URLUtil.openWindow(res1link);
}


Any ideas?

TIA,

-D

___
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