Re: [Flashcoders] Actionscript 3.0 help w/ simple HelloWorld

2007-03-23 Thread DannyT

Hi Jason,

I wrote a simple tutorial for AS3 (and Flex2) in FlashDevelop, doesn't
involve the FlashIDE but a good place to get started playing with AS3 and if
you're interested in flex it covers the basics of that too. Also explains my
setup for having an FD for AS2 and one for AS3.

http://danny-t.co.uk/index.php/tutorials/free-flex2-development-environment/

Hope it helps you or anyone.

On 22/03/07, elibol [EMAIL PROTECTED] wrote:


I should mention why I thought it was a width/height issue.

UITextField and extending components (and some other components) in the
Flex
framework initialize to a width/height of 0... It really took me by
surprise
.

On 3/22/07, elibol [EMAIL PROTECTED] wrote:

 I see,

 You need to add HelloWorld to the main DisplayList.


 import MyPackage.*
 var hw:HelloWorld = new HelloWorld();

 addChild(hw);

 On 3/22/07, elibol [EMAIL PROTECTED] wrote:
 
  Hi Jason,
 
  Try setting the width and the height of the Textfield.
 
   http://www.pierinc.com
 
  On 3/22/07, Merrill, Jason [EMAIL PROTECTED] wrote:
  
   Getting my feet wet with AS3, I just bought the AS3 cookbook and
have
   learned a lot already - great book.  I feel like an idiot asking
this
   as
   I'm pretty good in AS2, but with AS3, I'm not getting a simple
script
   working. I have the Flash 9 AS3 preview, trying to write a simple
   HelloWorld class (based on an example in the book) to show a
   TextField:
  
   //MyPackage.as
   package MyPackage
   {
   //do I actually need this one?:
   import flash.display.DisplayObjectContainer;
  
   import flash.display.Sprite;
   import flash.text.TextField;
  
   public class HelloWorld extends Sprite
   {
   public function HelloWorld()
   {
   var message_txt:TextField = new TextField();
   message_txt.text = Hello World;
   addChild(message_txt);  //does not show!
   trace(constructor runs)//traces fine
   }
   }
   }
  
   Then in the .fla, I put:
  
   import MyPackage.*
   var hw:HelloWorld = new HelloWorld();
  
   The constructor traces fine in the output window, but the TextField
   does
   not show.  What have I done wrong?  My Export settings in F9 As3
   preview
   are for AS 3.0 and FP9.  In later scripts, I tried moving the
   textfield,
   changing the color, changing the stage color to be sure it wasn't
   matching the textfield and this invisible, etc...(but it should show
   as
   black Times New Roman text by default anyway...)
  
   Thanks,
  
   Oh, and as a side note, I use FlashDevelop 2.0.1 and have my syntax
   set
   to AS3, but have notices code hinting doesn't always work or is
   sometimes incomplete - has anyone else noticed that?  Maybe I just
   need
   to update it.
  
   Jason Merrill
   Bank of America
   GTO Learning  Leadership Development
   eTools  Multimedia Team
  
  
  
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
 
 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
http://danny-t.co.uk
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash video, works locally not online

2007-03-22 Thread DannyT

I've no idea what i did but it works now, think it was something to do with
the attachMovie. Very frustrating for a while tho.

Thanks for the suggestions guys.

On 22/03/07, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote:


it could also be that your server doesn't have the right mime settings for
flvees
cheers

On 3/21/07, DannyT [EMAIL PROTECTED] wrote:

 I am trying to get some video loaded at runtime using the following:

 var my_nc:NetConnection;
 var my_ns:NetStream;
 my_nc = new NetConnection();
 my_nc.connect(null);
 my_ns = new NetStream(my_nc);
 curMedia = createEmptyMovieClip(videoPlayer, getNextHighestDepth());
 curMedia.attachMovie(FlvManager,video, curMedia.getNextHighestDepth
 ());
 //FLVManager is a movieclip in the library which contains an instance of
 FlvPlayer called FlvPlayer

 curMedia[video].FlvPlayer.attachVideo(my_ns);

 my_ns.onStatus = function(infoObject)
 {
 for (var prop in infoObject)
 {
 debugRef.text += \t+prop+:\t+infoObject[prop] +
\n;
 //
 output to textfield
 }
 }
 my_ns.play(this.curClient.videos[0]); // reference to video
object
 debugRef.text += this.curClient.videos[0]+\n; // which is
 outputted here and is correct

 When i try to run this locally it works fine, when i try to run it
online
 I
 get no status response from my_ns.
 However the flv file will run when I use a video component wizard
 (FLVPlayback)

 Can someone suggest what is wrong or how i can debug this?

 Cheers,
 --
 http://danny-t.co.uk
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
http://danny-t.co.uk
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Flash video, works locally not online

2007-03-21 Thread DannyT

I am trying to get some video loaded at runtime using the following:

var my_nc:NetConnection;
var my_ns:NetStream;
my_nc = new NetConnection();
my_nc.connect(null);
my_ns = new NetStream(my_nc);
curMedia = createEmptyMovieClip(videoPlayer, getNextHighestDepth());
curMedia.attachMovie(FlvManager,video, curMedia.getNextHighestDepth());
//FLVManager is a movieclip in the library which contains an instance of
FlvPlayer called FlvPlayer

curMedia[video].FlvPlayer.attachVideo(my_ns);

   my_ns.onStatus = function(infoObject)
   {
   for (var prop in infoObject)
   {
   debugRef.text += \t+prop+:\t+infoObject[prop] + \n; //
output to textfield
   }
   }
   my_ns.play(this.curClient.videos[0]); // reference to video object
   debugRef.text += this.curClient.videos[0]+\n; // which is
outputted here and is correct

When i try to run this locally it works fine, when i try to run it online I
get no status response from my_ns.
However the flv file will run when I use a video component wizard
(FLVPlayback)

Can someone suggest what is wrong or how i can debug this?

Cheers,
--
http://danny-t.co.uk
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Banner Ad Statistics

2007-02-12 Thread DannyT

We need to record click through statistics from some flash banner ads,
having not done much in the way of banner advertising in the past what are
the common approaches people use for recording impressions and click
throughs from ads?

The ads won't always be served from our servers so might we have security
implications if trying to send information cross domains? Is a remote object
call the most common/efficient approach?

Any pointers as what others do mucho appreciated.

Dan

--
http://danny-t.co.uk
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] {OT} Job Postings?

2006-09-12 Thread DannyT

I completely agree with Johannes approach. Knowledge of the ins and outs of
flash/flex/actionscript isn't half as important as an ability to pick up new
technologies, follow best practices and work effectively as a member of a
team.

I think if you ask if they can do something, and they can't that's fine,
it's how they'll find out how to do it that's key.

Dan

On 12/09/06, Johannes Nel [EMAIL PROTECTED] wrote:


paul barnes-hogget had an argument about supply and demand in the
flex/flasharena which i thought is very apt. he stated that as flex and
flash is such a hot technology the demand is very high, thus with normal
market factors wages tend to rise. big companies want to use the
technology,
but due to the cost and lack of supply they struggle to use it, thus
making
them consider other alternatives.

personally we have started hirring developers who are skilled in other
areas, upskilling them into this one via peer programming and code reviews
in order to try and meet some of this demand, this unfortunatly is a slow
process, but one most companies have to do if they want to expand.

On 9/12/06, Zeh Fernando [EMAIL PROTECTED] wrote:

  I have been on this list for years and have seen all the job postings
 and
  have posted some myself. I am looking to hire 5 Flex 2.0 and 3 flash
  developers. I have tried posting on dice and monster and have yet to
 get
  resumes that come close to the qualifications that I need. So I have
to
  ask
  where are people finding flash and flex guru's? If you are a flash or
  flex
  guru please email me your resume, we pay well!

 I live in another world, but I can say the same about our (Brazilian)
 market
 aswell. There's an absurd lack of competent people, and trying to find
 someone with the level you expect and that you can trust is an exercise
in

 frustration. I have to refuse almost daily, and inevitably I have to
 repeat
 the same choir over and over again - No, I can't do your specific job
but
 thanks, and no, I don't know anyone who could that I can point you at,
I'm

 sorry, that's the truth. I get baffled replies at best; people usually
 think I'm bullsh*tting them.

 Unfortunatelly it seems much of this is due to the nature and the
history
 of
 Flash. Sure, there's a lot of people working with Flex and Flash from
all
 the walks of the design/IT life, but differently from other technologies
 like, say, Java, the technology isn't seen as being integral part of a
 dedicated field. Take as an example the school (university) I go to: we
 have
 design/interface design/multimedia bachelor degrees, as well as computer
 science degrees. On the computer science courses, they learn C, C++,
 Python,
 Java, and stuff like that; on the other design courses, they learn basic
 Flash (and I mean, *really* basic flash).

 Sure, I'm not the one to trust blindly in school degrees (I've worked
for
 12
 years and never had a degree) and I sure hope someone will come out of
 graduation with 100 design patterns memorized. But the fact that no
 university course around here sees Flash as a 'serious' programming
field
 speaks a lot when you see the absense of good professionals on the
market.
 You usually have a lot of 'hacks' that come from, say, the
creative/design

 area, and think they're good because they can tween a banner, but it's
 hard
 to someone that go a little further and actually wants to get better at
 coding, or people from the 'cold coding' market moving into what's seen
as
 a
 designerish tool. Sad but true.


 Zeh

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
http://danny-t.co.uk
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Installing Flash Remoting Components InstallAnywhere issue

2006-07-03 Thread DannyT

I'm trying to do the basic of basic tasks and install the flash remoting
components, I downloaded from
http://www.adobe.com/products/flashremoting/downloads/components/#flr_as2but
when I double click the extractor i get an error: Please choose
another
location to extract the installer to. I chose another folder, same error,
plenty of hdd space available.

Any ideas much appreciated.

Dan

http://danny-t.co.uk
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Installing Flash Remoting Components InstallAnywhere issue

2006-07-03 Thread DannyT

Was on windowsXP, however turned out to be my antivirus, stopped that and it
installed fine.
more info:
http://danny-t.co.uk/index.php/2006/07/04/installanywhere-please-select-another-location-to-extract-the-installer-to/

Cheers,

Dan

http://danny-t.co.uk

On 04/07/06, lincoln [EMAIL PROTECTED] wrote:


What platform are we talking about here?

-l

On Jul 3, 2006, at 5:21 PM, DannyT wrote:

 I'm trying to do the basic of basic tasks and install the flash
 remoting
 components, I downloaded from
 http://www.adobe.com/products/flashremoting/downloads/components/
 #flr_as2but
 when I double click the extractor i get an error: Please choose
 another
 location to extract the installer to. I chose another folder, same
 error,
 plenty of hdd space available.

 Any ideas much appreciated.

 Dan

 http://danny-t.co.uk
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com