[Flashcoders] TextField width bizarrenesss

2010-02-16 Thread Glen Pike
Okay teddy bears, I may be doing something really dumb here, but I have 
checked my code through thoroughly and can't find any stupid mistakes, 
maybe you can spot the deliberate one??


I have a button with a background and a text field.
The button is resized dynamically according to the length of time it 
represents and the resolution.

The size is applied to both the background and the text field.
For some reason, my text field width always ends up 1.5 x the width of 
the background 


Here is some code below - as you can see the _renderWidth is calculated 
and applied to both _text and _bg - the trace always shows the text is 
1.5 x the _renderWidth - any ideas???


protected function _styleButton(xmlConf:XML):void {
   switch(_btnType) {
  
   case CLIP_DRAG_TYPE:

   case TIMELINE_TYPE:
   //Button maybe sized according to length and has 
icon or text label.

   this._bg.height = TIMELINE_BTN_HEIGHT;
   this._numText.visible = false;
   _attachIcon(xmlConf, TIMELINE_BTN_HEIGHT);
   //resize button!
   var dur:int = duration;
   if (_minDuration  duration) {
   dur = _minDuration;
   }
   _renderWidth = int(PIX_PER_SEC * int(Math.max((dur / 
_minDuration), 1)));

   this._bg.width = _renderWidth;
   this._text.width = _renderWidth;
   this._text.x = Math.floor((this._bg.width - 
this._text.width) / 2);

   break;

   }
   _initialised = true;
   trace(ComposeButton::_styleButton  + this.name +  type  
+ _btnType +  width  + this.width +  _numText width  + 
this._numText.width +  _text width  + this._text.width +  
_renderWidth  + _renderWidth);

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


Re: [Flashcoders] TextField width bizarrenesss

2010-02-16 Thread Jer Brand
StupuidQuestionSoPleaseDon'tHitMeI'mTryingToHelpEvenThoughThisIsLame...

Has there been a scaleX applied to any of the items (_bg, _text, this).
That's the only way I could reproduce your results.

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


Re: [Flashcoders] TextField width bizarrenesss

2010-02-16 Thread Glen Pike
Thanks - I don't think so - I have checked through the code for scaling, 
but not apparent.  I even resized my graphics for the clips so the 
children are not scaled at all in the IDE...




Jer Brand wrote:

StupuidQuestionSoPleaseDon'tHitMeI'mTryingToHelpEvenThoughThisIsLame...

Has there been a scaleX applied to any of the items (_bg, _text, this).
That's the only way I could reproduce your results.

Jer
___
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] TextField width bizarrenesss

2010-02-16 Thread Jer Brand
Yeah, I tried different ways of scaling the mc's in the IDE and couldn't
reproduce the results -- scaling in the IDE is just adjusting width/height
not scalex/y. Nother stupid question, but this is a MovieClip instance type
or an actual Button instance type? I assumed MC, just because I haven't used
Buttons in years.

Don't know if it helps, but your code does exactly what it's supposed to do
for me.

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


Re: [Flashcoders] TextField width bizarrenesss

2010-02-16 Thread Glen Pike
It's a subclass of a subclass of Sprite, both of which are handrolled.  
I thought it was possibly to do with 9slice scaling or something, but 
no.  It's bizarre - I might clear out my FLA and see..


Sprite-SimpleButton-ComposeButton

Jer Brand wrote:

Yeah, I tried different ways of scaling the mc's in the IDE and couldn't
reproduce the results -- scaling in the IDE is just adjusting width/height
not scalex/y. Nother stupid question, but this is a MovieClip instance type
or an actual Button instance type? I assumed MC, just because I haven't used
Buttons in years.

Don't know if it helps, but your code does exactly what it's supposed to do
for me.

Jer
___
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] TextField width bizarrenesss

2010-02-16 Thread Henrik Andersson

Glen Pike wrote:

It's a subclass of a subclass of Sprite, both of which are handrolled.

Sprite-SimpleButton-ComposeButton



You do realize that flash already has a class called SimpleButton, 
right? It is far from impossible to make one with the same name, but you 
are asking for name collisions.


I hope that you have a good reason for the name.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Has everyone seen this yet?

2010-02-16 Thread Gregory Boudreaux
Pretty cool. 


http://mashable.com/2010/02/16/wired-magazine-ipad-demo/


gregb

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


[Flashcoders] Distributable Player Solution (aka: Mobile Packager) (yet again)

2010-02-16 Thread Andrew Murphy
Hi.

Just wanted to post a follow-up on my previous posts regarding Adobe
dropping the beta version of the Distributable Player Solution (aka: Mobile
Packages).


Today I read an article that Adobe will be bringing AIR to mobile devices
along with the v10.1 Flash plugin.

http://blog.everythingflex.com/2010/02/15/adobe-air-on-mobile-heres-the-most
-important-sentence/?utm_source=feedburnerutm_medium=feedutm_campaign=Feed
:+Everythingflex+(EverythingFlex)utm_content=Google+Reader

With AIR going mobile, it certainly makes sense to me now that the Mobile
Packager probably wouldn't be a sustainable project.

Still...  AIR Mobile!  Woo! :)



(ps:  Sorry for posting something more Flex related to the Flash Coders
list.)
 

--
Andrew Murphy
Interactive Media Developer
amur...@delvinia.com

Delvinia
370 King Street West, 5th Floor, Box 4 
Toronto Canada M5V 1J9
P (416) 364-1455 ext. 232
F (416) 364-9830  
W www.delvinia.com http://www.delvinia.com/ 

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


RE: [Flashcoders] Distributable Player Solution (aka: Mobile Packager)(yet again)

2010-02-16 Thread Gregory Boudreaux
Check out that link I just posted.  Wired Magazine is all over this
already.

gregb

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Andrew
Murphy
Sent: Tuesday, February 16, 2010 2:35 PM
To: 'Flash Coders List'
Subject: [Flashcoders] Distributable Player Solution (aka: Mobile
Packager)(yet again)

Hi.

Just wanted to post a follow-up on my previous posts regarding Adobe
dropping the beta version of the Distributable Player Solution (aka:
Mobile
Packages).


Today I read an article that Adobe will be bringing AIR to mobile
devices
along with the v10.1 Flash plugin.

http://blog.everythingflex.com/2010/02/15/adobe-air-on-mobile-heres-the-
most
-important-sentence/?utm_source=feedburnerutm_medium=feedutm_campaign=
Feed
:+Everythingflex+(EverythingFlex)utm_content=Google+Reader

With AIR going mobile, it certainly makes sense to me now that the
Mobile
Packager probably wouldn't be a sustainable project.

Still...  AIR Mobile!  Woo! :)



(ps:  Sorry for posting something more Flex related to the Flash Coders
list.)
 

--
Andrew Murphy
Interactive Media Developer
amur...@delvinia.com

Delvinia
370 King Street West, 5th Floor, Box 4 
Toronto Canada M5V 1J9
P (416) 364-1455 ext. 232
F (416) 364-9830  
W www.delvinia.com http://www.delvinia.com/ 

___
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] Distributable Player Solution (aka: MobilePackager)(yet again)

2010-02-16 Thread Andrew Murphy
Ah, I hadn't checked out the link yet.  I'm looking at the video now.  Thank
you. :)

--
Andrew Murphy
Interactive Media Developer
amur...@delvinia.com

Delvinia
370 King Street West, 5th Floor, Box 4 
Toronto Canada M5V 1J9
P (416) 364-1455 ext. 232
F (416) 364-9830  
W www.delvinia.com



 

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com 
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf 
 Of Gregory Boudreaux
 Sent: Tuesday, February 16, 2010 3:41 PM
 To: Flash Coders List
 Subject: RE: [Flashcoders] Distributable Player Solution 
 (aka: MobilePackager)(yet again)
 
 Check out that link I just posted.  Wired Magazine is all 
 over this already.
 
 gregb
 
 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf 
 Of Andrew Murphy
 Sent: Tuesday, February 16, 2010 2:35 PM
 To: 'Flash Coders List'
 Subject: [Flashcoders] Distributable Player Solution (aka: 
 Mobile Packager)(yet again)
 
 Hi.
 
 Just wanted to post a follow-up on my previous posts 
 regarding Adobe dropping the beta version of the 
 Distributable Player Solution (aka:
 Mobile
 Packages).
 
 
 Today I read an article that Adobe will be bringing AIR to 
 mobile devices along with the v10.1 Flash plugin.
 
 http://blog.everythingflex.com/2010/02/15/adobe-air-on-mobile-
 heres-the-
 most
 -important-sentence/?utm_source=feedburnerutm_medium=feedutm
_campaign=
 Feed
 :+Everythingflex+(EverythingFlex)utm_content=Google+Reader
 
 With AIR going mobile, it certainly makes sense to me now 
 that the Mobile Packager probably wouldn't be a sustainable project.
 
 Still...  AIR Mobile!  Woo! :)
 
 
 
 (ps:  Sorry for posting something more Flex related to the 
 Flash Coders
 list.)
  
 
 --
 Andrew Murphy
 Interactive Media Developer
 amur...@delvinia.com
 
 Delvinia
 370 King Street West, 5th Floor, Box 4
 Toronto Canada M5V 1J9
 P (416) 364-1455 ext. 232
 F (416) 364-9830
 W www.delvinia.com http://www.delvinia.com/ 
 
 ___
 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] Has everyone seen this yet?

2010-02-16 Thread Ktu
Looks like a great example of how Flash with AIR can create experiences that
would otherwise be impossible. Too bad it will be on the iPad.



On Tue, Feb 16, 2010 at 3:29 PM, Gregory Boudreaux gjboudre...@fedex.comwrote:

 Pretty cool.


 http://mashable.com/2010/02/16/wired-magazine-ipad-demo/


 gregb

 ___
 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] Has everyone seen this yet?

2010-02-16 Thread Jon Bradley

It's an Adobe AIR application running on an unknown tablet device.

It's not an iPad and has nothing to do with it. Someone made a mistake  
with the copy for the article.


FYI, it's not impossible to do this in other languages or  
environments. There are other, more powerful frameworks that are  
robust for UI development and multi-touch systems than Flash.



- jon


On Feb 16, 2010, at 7:55 PM, Ktu wrote:

Looks like a great example of how Flash with AIR can create  
experiences that

would otherwise be impossible. Too bad it will be on the iPad.


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


Re: [Flashcoders] Has everyone seen this yet?

2010-02-16 Thread Eric E. Dolecki
It's how printed media might be transformed if people warm up to the whole
concept. It doesn't really matter what platform or device it runs on. We saw
some AIR and some Cocoa-touch. Looks pretty juicy but also a little
confusing and non-standardized (yet).



On Tue, Feb 16, 2010 at 8:45 PM, Jon Bradley shiftedpix...@gmail.comwrote:

 It's an Adobe AIR application running on an unknown tablet device.

 It's not an iPad and has nothing to do with it. Someone made a mistake with
 the copy for the article.

 FYI, it's not impossible to do this in other languages or environments.
 There are other, more powerful frameworks that are robust for UI development
 and multi-touch systems than Flash.


 - jon



 On Feb 16, 2010, at 7:55 PM, Ktu wrote:

  Looks like a great example of how Flash with AIR can create experiences
 that
 would otherwise be impossible. Too bad it will be on the iPad.


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




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


Re: [Flashcoders] Has everyone seen this yet?

2010-02-16 Thread Ktu
My mistake for saying such a strong statement. Of course there are other
frameworks available to do the same thing. Glad its not actually an iPad.

I think I'm just glad to see Flash being used for more than just flashy
websites and games. Flash can do a lot more than I see it get credit for on
a day to day basis. (And I know flash is used for more than just websites.
I've developed quite a few things outside the website realm)

I would like to see it in my hands to evaluate the usability. In theory it
could be brilliant but yes, people will have to warm up to it, and it will
have to be standardized.

Strictly out of curiosity Jon, would anyone actually choose a different
framework to develop this type of application? Does it make sense
considering development life cycle and platform availability?

Ktu

On Tue, Feb 16, 2010 at 9:02 PM, Eric E. Dolecki edole...@gmail.com wrote:

 It's how printed media might be transformed if people warm up to the whole
 concept. It doesn't really matter what platform or device it runs on. We
 saw
 some AIR and some Cocoa-touch. Looks pretty juicy but also a little
 confusing and non-standardized (yet).



 On Tue, Feb 16, 2010 at 8:45 PM, Jon Bradley shiftedpix...@gmail.com
 wrote:

  It's an Adobe AIR application running on an unknown tablet device.
 
  It's not an iPad and has nothing to do with it. Someone made a mistake
 with
  the copy for the article.
 
  FYI, it's not impossible to do this in other languages or environments.
  There are other, more powerful frameworks that are robust for UI
 development
  and multi-touch systems than Flash.
 
 
  - jon
 
 
 
  On Feb 16, 2010, at 7:55 PM, Ktu wrote:
 
   Looks like a great example of how Flash with AIR can create experiences
  that
  would otherwise be impossible. Too bad it will be on the iPad.
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



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

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


Re: [Flashcoders] Has everyone seen this yet?

2010-02-16 Thread Jon Bradley
I think the statement was justified... this is Flashcoders. I just  
wanted to state that developing UIs like that isn't limited to Flash,  
that's all. :)


After doing more research, it's entirely possible that this is running  
on an iPad. We just can't tell from the video if that really is, in  
fact, the case. Whether or not it's an iPad though doesn't mean much  
in the context of the coolness of the application itself.


I think any technology could be used to develop an application like  
this - from WPF/SL, Flash to more complex environments using Cocoa,  
openFrameworks and .


That last comment though – whether or not it makes sense – is probably  
the largest unknown. I can see many reasons why choosing Cocoa would  
be better than choosing Flash, in the case of iPhone development. Or,  
in the case of a windows platform target, I can see reasons why WPF/SL  
or Surface would be chosen.


I think we're all past the question of 'what framework/kit/language  
can we do that in?' If given the time, we can do pretty much anything  
in any language.


I like to think that these days, it's the hardware that limits us.

- j



On Feb 16, 2010, at 9:47 PM, Ktu wrote:

My mistake for saying such a strong statement. Of course there are  
other
frameworks available to do the same thing. Glad its not actually an  
iPad.


I think I'm just glad to see Flash being used for more than just  
flashy
websites and games. Flash can do a lot more than I see it get credit  
for on
a day to day basis. (And I know flash is used for more than just  
websites.

I've developed quite a few things outside the website realm)

I would like to see it in my hands to evaluate the usability. In  
theory it
could be brilliant but yes, people will have to warm up to it, and  
it will

have to be standardized.

Strictly out of curiosity Jon, would anyone actually choose a  
different

framework to develop this type of application? Does it make sense
considering development life cycle and platform availability?

Ktu


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


Re: [Flashcoders] Has everyone seen this yet?

2010-02-16 Thread Gregory Boland
guys,

according to Lee Brimelow who was tweeting from the MWC in Barcelona its a
tablet running the Android tablet OS

http://mobile.venturebeat.com/2010/02/15/android-tablet-adobe-nvidia/

looks pretty cool

greg

On Tue, Feb 16, 2010 at 7:45 PM, Jon Bradley shiftedpix...@gmail.comwrote:

 I think the statement was justified... this is Flashcoders. I just wanted
 to state that developing UIs like that isn't limited to Flash, that's all.
 :)

 After doing more research, it's entirely possible that this is running on
 an iPad. We just can't tell from the video if that really is, in fact, the
 case. Whether or not it's an iPad though doesn't mean much in the context of
 the coolness of the application itself.

 I think any technology could be used to develop an application like this -
 from WPF/SL, Flash to more complex environments using Cocoa, openFrameworks
 and .

 That last comment though – whether or not it makes sense – is probably the
 largest unknown. I can see many reasons why choosing Cocoa would be better
 than choosing Flash, in the case of iPhone development. Or, in the case of a
 windows platform target, I can see reasons why WPF/SL or Surface would be
 chosen.

 I think we're all past the question of 'what framework/kit/language can we
 do that in?' If given the time, we can do pretty much anything in any
 language.

 I like to think that these days, it's the hardware that limits us.

 - j




 On Feb 16, 2010, at 9:47 PM, Ktu wrote:

  My mistake for saying such a strong statement. Of course there are other
 frameworks available to do the same thing. Glad its not actually an iPad.

 I think I'm just glad to see Flash being used for more than just flashy
 websites and games. Flash can do a lot more than I see it get credit for
 on
 a day to day basis. (And I know flash is used for more than just websites.
 I've developed quite a few things outside the website realm)

 I would like to see it in my hands to evaluate the usability. In theory it
 could be brilliant but yes, people will have to warm up to it, and it will
 have to be standardized.

 Strictly out of curiosity Jon, would anyone actually choose a different
 framework to develop this type of application? Does it make sense
 considering development life cycle and platform availability?

 Ktu


 ___
 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