[Flashcoders] How can I set stage dimensions ? (AS3)

2008-06-05 Thread Ali Drongo
Hiya, I can't understand why the dimensions I've set in my app class aren't being implemented. If someone could have a look at my code and show me the error of my ways I'd be very happy :) Cheers, Ali / package { import flash.events.*; import

Re: [Flashcoders] How can I set stage dimensions ? (AS3)

2008-06-05 Thread Rich Shupe
You didn't specify if this was for Flash or Flex. If it's Flash, metadata isn't supported. If it's for Flex, it looks correct to me: I don't know enough about Flex to offer a suggestion. You might try the FlexCoders list? Rich http://www.LearningActionScript3.com

Re: [Flashcoders] How can I set stage dimensions ? (AS3)

2008-06-05 Thread Rich Shupe
Sorry, that previous post was sent prematurely: You didn't specify if this was for Flash or Flex. If it's Flash, metadata isn't supported. If it's for Flex, it looks correct to me: http://www.morearty.com/blog/2006/06/27/setting-the-width-and-height-of-a-pu re-actionscript-application/ I don't

Re: [Flashcoders] AS3 - A simple questions

2008-06-05 Thread EECOLOR
I would recommend using event.currentTarget instead of event.target at all times. the event.currentTarget property contains a reference to the instance at which you registered the event listener. event.target refers to the class that dispatches the event. In this case there is no difference

Re: [Flashcoders] AS3 - A simple questions

2008-06-05 Thread Viktor Hesselbom
I use event.target in the current application I'm developing. It's nice in MouseEvents for determing what is currently under the mouse and not what dispatches the event. On Thu, 05 Jun 2008 14:17:43 +0200, EECOLOR [EMAIL PROTECTED] wrote: I would recommend using event.currentTarget instead

[Flashcoders] Creating a list from actionscript cue points in Flash video

2008-06-05 Thread Paul Jinks
I'm something of a noob, so bear with me here. I think this is pretty straightforward, but I'm stuck. I have a 'talking head' flv with actionscript cue points whose names I want to appear in a textfield named mainText to act as a summary of what's being said, a bit like powerpoint. Thus:

[Flashcoders] flex 3 Event.RESIZE

2008-06-05 Thread Patrick J. Jankun
Hello Everyone, This is something probably very stupid, but i have an basic problem with my AS code: i got an event Listener added to stage instance in the main class function/constructor stage.addEventListener(Event.RESIZE, initialise); problem is, this event never gets fired, and i

Re: [Flashcoders] Creating a list from actionscript cue points in Flash video

2008-06-05 Thread Paul Jinks
Aaaargh! There's a typo in my code there. It should read mainText.htmlText = mainText.htmlText+texthtml; I had a stray text field called secondText in there previously. This isn't/wasn't the source of the problem. Many apologies. Paul

Re: [Flashcoders] flex 3 Event.RESIZE

2008-06-05 Thread Sidney de Koning
Hi Patrick, How is your Flash set in your HTML? in pixels or in percent? GReets, Sid On Jun 5, 2008, at 4:04 PM, Patrick J. Jankun wrote: Hello Everyone, This is something probably very stupid, but i have an basic problem with my AS code: i got an event Listener added to stage instance

RE: [Flashcoders] flex 3 Event.RESIZE

2008-06-05 Thread Romuald Quantin
This event is the right one, maybe because the stage == null when you add the listener? If it helps, I wrote classes to handle liquid UI based on this event: http://www.soundstep.com/blog/downloads/baseui/ Even if you don't use it, you can probably check the code and find something. You might

RE: [Flashcoders] flex 3 Event.RESIZE

2008-06-05 Thread Romuald Quantin
Sorry didn't see it was flex. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick J. Jankun Sent: 05 June 2008 15:04 To: Flashcoder Mailinglist Subject: [Flashcoders] flex 3 Event.RESIZE Hello Everyone, This is something probably very stupid, but i

Re: [Flashcoders] flex 3 Event.RESIZE

2008-06-05 Thread Patrick J. Jankun
Sidney: i didnt even checked it out, cause the event don't fire in the stand alone player as well, i mean, what the f*k am i doing wrong here? im trying to use flex 3 only for this project, and not flash ide, honestly i don't know even how to change the .html wrappers settings inside flex

Re: [Flashcoders] flex 3 Event.RESIZE

2008-06-05 Thread Patrick J. Jankun
already done this, before even adding that listener, this is the whole code i want to get working: public function PbMain() : void { StageAlign.TOP_LEFT; StageQuality.HIGH; StageScaleMode.NO_SCALE; stage.addEventListener(Event.RESIZE, initialise); } private

Re: [Flashcoders] Creating a list from actionscript cue points in Flash video

2008-06-05 Thread Paul Jinks
Fixed it. I think all I had to do was set mainText.multiline = true; Cheers Paul On Thu, June 5, 2008 3:05 pm, Paul Jinks wrote: Aaaargh! There's a typo in my code there. It should read mainText.htmlText = mainText.htmlText+texthtml; I had a stray text field called

Re: [Flashcoders] flex 3 Event.RESIZE

2008-06-05 Thread Viktor Hesselbom
Is that your actual code? Because if it is, I think I see the problem. You can't just write a reference to the constants. You have to actually use them to set the stage's align, quality etc. public function PbMain() : void { stage.align = StageAlign.TOP_LEFT; stage.quality =

Re: [Flashcoders] Creating a list from actionscript cue points in Flash video

2008-06-05 Thread Viktor Hesselbom
Congratulations on fixing it. ;) / Viktor H On Thu, 05 Jun 2008 18:08:46 +0200, Paul Jinks [EMAIL PROTECTED] wrote: Fixed it. I think all I had to do was set mainText.multiline = true; Cheers Paul On Thu, June 5, 2008 3:05 pm, Paul Jinks wrote: Aaaargh! There's a typo in my code

Re: [Flashcoders] flash animations Slow on IE7

2008-06-05 Thread Derek Nugent
I wonder how many it's because IE 7 is poo replies you'll get I guess this could be the first! That is odd :( Best regards Derek Nugent email: [EMAIL PROTECTED] [EMAIL PROTECTED] web: http://www.dereknugent.com - Original Message From: maurice sallave [EMAIL PROTECTED] To:

Re: [Flashcoders] flex 3 Event.RESIZE

2008-06-05 Thread Patrick J. Jankun
Viktor, you were completly right, i have actually fully overseen that mistake :-/ after correcting that mistakes everything seems to work. Thank you for pointing it out! P. On Jun 5, 2008, at 7:10 PM, Viktor Hesselbom wrote: Is that your actual code? Because if it is, I think I see the