Josh Sager Media: Creative Technologies Blog

Josh Sager Media: Creative Technologies Blog
Creative Technologies Blog
Home | Portfolio |Blog | Presentations | music | About

Archive for the ‘Adobe Flash’ Category

AS 3.0 Drawing Dynamic Shapes

Wednesday, November 7th, 2007

So I have started my journey down the path of upgrading to AS 3.0 and I’m finding some very strange things. Here we go.

I’ve created a rounded rectangle from code and I wanted to place it vertically in the center of my stage. No big deal so this is what I did.

sp = new Sprite();
addChild(sp);
sp.graphics.beginFill(0xff0000);
sp.graphics.drawRoundRect(0,stage.stageHeight/2-sp.height/2,100,50,20);
sp.graphics.endFill();

What happened? It was not in the center. At first I thought my math was wrong but I ran a trace.
trace(”sprite height: “+ sp.y); // sprite height: 0

Are you kidding me? 0? Really? All that I can think is that the alleged y value is really the anchor point in the sprite. Interesting.

I was able to achieve my goal by doing this.

sp = new Sprite();
addChild(sp);
sp.graphics.beginFill(0xff0000);
sp.graphics.drawRoundRect(0,0,100,50,20);
sp.graphics.endFill();
sp.x=10
sp.y=stage.stageHeight/2-sp.height/2;

So all is wall in AS 3.0 land but some strange things in my journey.

IK in Flash

Tuesday, October 9th, 2007

The title says it all.
http://www.coldhardflash.com/2007/10/adobe-max-event-unveils-ik-for-flash.html

Pittsburgh Flash Users Group September Meeting

Sunday, September 23rd, 2007

Although I missed the September meeting physically I was able to call in my participation via a cell phone and a shaky web stream. As usually the Pittmfug is right on top of the latest and greatest when it comes to the flash world.

Val did a presentation on Flash Player MovieStar now with HD support for video. From what I have seen, the quality is amazing. And not this is good for flash amazing, it’s actually amazing. I honestly think it rivals what broadcast TV can provide. Internet video has just taken a huge step forward.

Ben released iFreelance which is a great AIR application written completely in JavaScript and HTML for tracking invoices on freelance projects. I love the slickness in interface style mixed with strong functionality. Great job Ben. Once again you have put the rest of the muffergs to shame with you mad skills.

Our resident mobile development guru, Isaac, presented on AIR-based kiosks with html and flash.

Other item of note is the release the first official PittMFUG wallpaper, a very slick design.