Re: [Flashcoders] Bezier curve arrows

2010-03-16 Thread Pedro Kostelec
Calculate the derivative (the gradient, slope) at the end of the curve.
But i have no idea how to do it is as3. Can we even calculate derivatives in
AS3?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] corporate history timeline examples

2010-02-25 Thread Pedro Kostelec
http://www.adobe.com/aboutadobe/history/timeline/
https://www.adbusters.org/files/media/flash/hope_and_memory/timeline.swf
http://www.open2.net/ictportal/timeline/timeline.swf

and try searching for timeline filetype:swf in Google (without  )
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] corporate history timeline examples

2010-02-25 Thread Pedro Kostelec
A few more:
http://www.forestcity.net/company/history/Documents/HISTORYflash2.swf
http://newsroom.cisco.com/dlls/timeline/index.swf
http://www.levistrauss.com/swf/swf/timeline.swf

On 25 February 2010 17:50, Pedro Kostelec pedrok...@gmail.com wrote:

 http://www.adobe.com/aboutadobe/history/timeline/
 https://www.adbusters.org/files/media/flash/hope_and_memory/timeline.swf
 http://www.open2.net/ictportal/timeline/timeline.swf

 and try searching for timeline filetype:swf in Google (without  )

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


Re: [Flashcoders] WIRED hates Flash

2010-02-01 Thread Pedro Kostelec
THe CS5 apps for iPhone are not flash based, they are converted to iPhone
code. (i guess)
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Ideas, Please

2010-01-27 Thread Pedro Kostelec
I am not contributing to helping beno now, but i would kindly ask him to
stop replying every single post with not-important phrases. Beno, you're
just filling up my inbox, and you are ruining the list. You've reveiced
plenty of help, now go and code your thing and come back only when you're
done. This is not a chat list, but a mailing list!

Thanks. (you don't have to reply this post, I will notice whether you've
read it when I will see less beno to FlashCoders replies)
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3 can't target seekbar handle

2010-01-13 Thread Pedro Kostelec
I have never used the FLV component, but I suppose you have to import it
first, or nothing will work. (it happens often to me).
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Screencast software

2010-01-12 Thread Pedro Kostelec
Probably the best piece of software or this purpose, under WIndows, is
camtasia studio. I has recording and editing capabilities. But it is not
free. http://www.techsmith.com/camtasia.asp
There are some great ones for Mac users, but I can't remember their name.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Placing sprites on the circumference of a circle

2009-11-09 Thread Pedro Kostelec
If you put the circle and the sprites of building in a movieclip and then
rotate the MC, they should stick to the circle, i think.

Or, keep the variable of the angles and then keep increasing the angles of
all the sprites for the same amount. (angle1++, angle2++, angle3++)

Or, since the angle of each is angle of first + n*spacing  (where n is the
number of sprites and spacing the distance - in angles - of each ) you just
have to increase one angle.

OK, i don't think i am very clear. I've had a bad day and my ideas are
confused.


Below is a modified code of a carousel i once created. I think it should
work for you (haven't check after i just made some modifications), but you
could simplify it a lot.



var original_speed:Number=2;// raise or lower to adjust the orbiting speed
var speed:Number=original_speed;
var currentDegrees:Number=0;// don't change
var thumbNum:Number=this.numChildren; //the number of sprites you have to
rotate
var id:Number=0;// don't adjust
var seperation:Number=Math.round(360/thumbNum);// you could hard code a
number here for the amount each thumb is seperated, but this math works
nicely
var circle_radius:Number=thumbNum*50;// radius of the earth

addEventListener(Event.ENTER_FRAME, movingCode);

function movingCode(event:Event):void {

currentDegrees=currentDegrees+speed;

while ( id  thumbNum) {

var radians:Number = (currentDegrees + (seperation * id)) * Math.PI
/ 180;
var posX:Number=Math.sin(radians)*circle_radius;
var posY:Number=Math.cos(radians)*circle_radius;

this[thumb+id].x=posX;
this[thumb+id].y=posY;
}

id=id+1;

}// ends while loop

if (id==thumbNum) {
id=0;
}

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


Re: [Flashcoders] Flash Video jerky - slow pc?

2009-11-02 Thread Pedro Kostelec
I have experienced similar problems with youtube's and vimeo's player
recently. So i am pretty sure it's a problem with my internet connection or
computer.

Btw, i couldn't agree more for today's fwa award. It's an experiment not a
website!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Drag and drop from desktop to browser

2009-10-31 Thread Pedro Kostelec
Hm...as far as i know they are trying to integrate the drag and drop
technology in Google Wave, but i think it is only a feature of HTML5.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] alpha on text without embedding font

2009-10-25 Thread Pedro Kostelec
Hi,

is there a way to set alpha transparency to dynamically imported text with
as3 without having to embed the font?

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


Re: [Flashcoders] relative positioning with stage.NO_SCALE

2009-10-15 Thread Pedro Kostelec
stage.stageAlign = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;

theStrings.x = stage.stageWidth/2; //this places the mc to the horizontal
center of the swf
theStrings.y=stage.stageHeight/2 //this places the mc to the vertical center
of the swf

or

theStrings.x = 0;//this places the mc to the most top left corner of the swf
the Strings.y=0;

2009/10/15 Mendelsohn, Michael michael.mendels...@fmglobal.com

 Hi list...

 I have a 1920x1080 stage in author mode.  The swf sits in an html page
 aligned absmiddle.  I want a movieclip to always stay in the upper left
 corner, when the stage is resized, but the code I've got isn't working
 perfectly.  Anyone have a good routine for this?

 Thanks,
 - Michael M.


 stage.addEventListener(Event.RESIZE, repositionItems);

 private function repositionItems(e:Event):void{
theStrings.x = ((stage.width - stage.stageWidth)/2);
// the y value doesn't go to the top, even when I subtract
 theStrings.height
theStrings.y = ((stage.height - stage.stageHeight)/2);
 }


 ___
 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] Invitation to connect on LinkedIn

2009-09-24 Thread Pedro Kostelec
LinkedIn


Pedro Kostelec souhaite se connecter à vous sur LinkedIn :
--

Marc,

I'd like to add you to my professional network on LinkedIn.

- Pedro

Accepter l'invitation de Pedro Kostelec
http://www.linkedin.com/e/XEzBlT6odM8buZtuxRkFg2aRojmbrRCwd4dkwunRTj8bdkAw2T/blk/I1458718226_2/pmpxnSRJrSdvj4R5fnhv9ClRsDgZp6lQs6lzoQ5AomZIpn8_cBYScz8UcjsUdjgNiiZLq34MpRtJp2YOdPsUczkVdjsLrCBxbOYWrSlI/EML_comm_afe/

Voir l'invitation de Pedro Kostelec
http://www.linkedin.com/e/XEzBlT6odM8buZtuxRkFg2aRojmbrRCwd4dkwunRTj8bdkAw2T/blk/I1458718226_2/39vdz8Oe34Te3kQckALqnpPbOYWrSlI/svi/

--

Quel est l' intérêt de faire partie du réseau de Pedro Kostelec ?

Vous avez une question ? Le réseau de Pedro Kostelec a probablement une 
réponse :
La rubrique Réponses de LinkedIn vous permet de vous informer auprès de Pedro 
Kostelec et de votre réseau. Obtenez l'information que vous recherchez auprès 
de professionnels expérimentés. 

http://www.linkedin.com/e/ash/inv19_ayn/

 
--
(c) 2009, LinkedIn Corporation

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


Re: [Flashcoders] panels / workspace CS4 bug

2009-09-17 Thread Pedro Kostelec
It often happens to me too and it's boring.  But you don't have to reset the
workspace, you just have to minimize the action panel by click on the top
darker bar, then open it by clicking the new Actions buttons and there
resize.

am i clear enough?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] slideshow works w/ ctrl Enter in Flash but not when exported....

2009-09-10 Thread Pedro Kostelec
Are you loading the images from an internet source?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Error #2044

2009-08-31 Thread Pedro Kostelec
Thanks a lot. Unfortunaltely i can't use relative urls. I am going to try
the cross domain policy thing.

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


Re: [Flashcoders] Error #2044

2009-08-31 Thread Pedro Kostelec


 Thanks, but it seems to work without it.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Error #2044

2009-08-29 Thread Pedro Kostelec
Hi list

I am receiving an error 2044 when loading images with absolute URLs. THey
are correctly spelled.

Here's the error i get (as seen in IE8's flash window that opens as i launch
the swf):

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox
violation: http://londonstudentbible.com/slideshow/slideshow.swf cannot load
data from http://www.londonstudentbible.com/slideshow/items.xml.
 at slideshow_fla::MainTimeline/frame1()

The file i am talking about it this one:
http://londonstudentbible.com/slideshow/slideshow.swf

And you can downlaod the code here:
http://londonstudentbible.com/slideshow/error.zip


Does anyone know why this error is triggered? Any workaraound?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Event.RESIZE

2009-07-02 Thread Pedro Kostelec
Thanks. I fixed it by adding a Footer_mc.scaleX = 1;  just before the
Tweenlite tween so the scale is reset before calculating the new one.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash CS4 very slow

2009-06-11 Thread Pedro Kostelec
I haven't experienced any real slowdowns in cs4 and my computer is not the
best one (1.8GHz and 2 G RAM). I even think that Flash lauches slightly
faster than cs3. Maybe compiling really takes slightly longer (a sec or two)
but i don't think that really matters.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] if only flash would incorporate these features

2009-05-07 Thread Pedro Kostelec
Impressive. But we're gonna have to wait a lot before such think comes to
Flash. First it will be introduced in 3D packages i guess. Such a thing
could make me like 3D modeling.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] cross dissove in slideshow

2009-04-22 Thread Pedro Kostelec
OK, i did it anyway and it works fine.

On Wed, Apr 22, 2009 at 1:35 AM, Paul Andrews p...@ipauland.com wrote:

 I don't think it gets much more straightforward than that.

 - Original Message - From: Pedro Kostelec pedrok...@gmail.com
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Tuesday, April 21, 2009 9:42 PM
 Subject: [Flashcoders] cross dissove in slideshow


  Hi
 How to cross-dissolve two images for a slideshow?
 Do i have to create two Loaders (i load the images with xml) and switch
 alphas or is there a more straight forward way?

 Cheers,
 Pedro
 ___
 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] UK time clock

2009-04-22 Thread Pedro Kostelec
Hello
Is there a way to create a clock that would show UK time, regardless in
which time zone you are?


Thanks,

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


Re: [Flashcoders] UK time clock

2009-04-22 Thread Pedro Kostelec
OH, there is a way to bring out zone related time in Flash? I only knew the
way, that takes the time from the local computer. How'd you do it?
Any tutorial or script?

On Wed, Apr 22, 2009 at 8:31 PM, Weyert de Boer w...@innerfuse.biz wrote:

 Ain't that the same as the UTC time? As far as I know UTC time is GMT which
 is the UK time. Of course, you need to take the daylight saving into
 account.

 Winter: UTC+0 (UTC=GMT)
 Summer: UTC+1 (GMT+1)



 On Apr 22, 2009, at 8:16 PM, Pedro Kostelec wrote:

  Hello
 Is there a way to create a clock that would show UK time, regardless in
 which time zone you are?


 Thanks,

 Pedro Kostelec
 ___
 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] UK time clock

2009-04-22 Thread Pedro Kostelec

 THanks. I'll check getTimezonOffset().

I thought it was going to be harder than that.

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


[Flashcoders] cross dissove in slideshow

2009-04-21 Thread Pedro Kostelec
Hi
How to cross-dissolve two images for a slideshow?
Do i have to create two Loaders (i load the images with xml) and switch
alphas or is there a more straight forward way?

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


Re: [Flashcoders] formal qualifications

2009-04-17 Thread Pedro Kostelec
So it really depends on what kind of company/entity you want to work
for.  In many cases, you won't need it, but possessing degrees and
certifications would never of course be a negative factor.
The could never be a negative factor is country related. I
most countries it is true, but in some (e.g. Slovenia) the salary is related
to the degree and if they don't really need someone with a high degree, they
will rather employ the one with the lower degree.


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


Re: [Flashcoders] Fake Preloading

2009-04-16 Thread Pedro Kostelec
I guess it's the first time he encounters himself with a flash website and
wants to have a shiny one. haha.
Tell him that the Youtube player doesn't have a preloader.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] OOP AS3 learning

2009-03-05 Thread Pedro Kostelec
Hi

Can you recommend a good source for learning OOP in as3?
Until now i found two books:
ActionScript 3.0 Design Patterns - Object Oriented Programming Techniques By
William B. Sanders http://www.oreillynet.com/pub/au/2820, Chandima
Cumaranatunge http://www.oreillynet.com/pub/au/2931
and:
Object-Oriented ActionScript 3.0 by Todd
Yardhttp://www.amazon.com/exec/obidos/search-handle-url/ref=ntt_athr_dp_sr_1?%5Fencoding=UTF8search-type=ssindex=booksfield-author=Todd%20Yard(Author),
Peter
Elsthttp://www.amazon.com/exec/obidos/search-handle-url/ref=ntt_athr_dp_sr_2?%5Fencoding=UTF8search-type=ssindex=booksfield-author=Peter%20Elst(Author),
Sas
Jacobshttp://www.amazon.com/exec/obidos/search-handle-url/ref=ntt_athr_dp_sr_3?%5Fencoding=UTF8search-type=ssindex=booksfield-author=Sas%20Jacobs(Author)
Which
one is better? What i am looking for is a book (max 500 pages) with an
overview of the different design patterns, and some case studies or examples
on how to write OOP

I have one question that i can't really understand: Why people say OOP
programming is only for big projects? What are the pluses and minuses of
sticking to some design patterns?

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


Re: [Flashcoders] OOP AS3 learning

2009-03-05 Thread Pedro Kostelec
Hmmm

Thanks for your answers, but now i am even more confused as i was before
posting the question.
I understand now (~) when i should use Design patterns, and i will
understand it better after learning about them.

The reason for my limitations to 500 pages (symbolic) is because of lack of
time. That's why i don't want to start reading Learning AS3, since i already
know as3 to some extend, and the OOP in there might not be enough to fulfill
my expectations.
Head First Design Pattern isn't the right book for me. I believe i could
learn a lot from it, but the examples are in Java. Java is so similar to
as3, that i could start confusing some small things that may destabilize my
knowledge on as3 (i have enough of it, but i am not sure whether it's stable
in my brains yet)

So i think i will start by Lynda's OOP Programming by Todd Perkins and then
get the book AS3 D. Patterns. If i will need anything else in the future
i'll check more books - but i don't think that's going to happen before as4
is released.

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


Re: [Flashcoders] This is kind of Wonderfl

2009-02-02 Thread Pedro Kostelec
Great!! Now i will be able to create Flash stuff even at school's breaks.
That's just what i always wanted. Sometime i have to be waiting more than 2
hours without anything to do. Great timepass activity.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] preloader block on IE7 FP9

2009-01-25 Thread Pedro Kostelec
Hi

After successfully creating a carousel navigation I added a preloader to it.
It works well on FF3 FP10, but does not on IE7 FP9. I don't know how it
previews on other browser and players.

You can downlaod the swf here:
http://drop.io/carouselPreloadin

The code for preloading is this one:

stop();

this.loaderInfo.addEventListener(ProgressEvent.PROGRESS,checkingProgress);
function checkingProgress(event:ProgressEvent):void {
var procentLoaded:Number=event.bytesLoaded/event.bytesTotal*100;

preloader.loaderPerc.perc_mc.perc.text=String(Math.round(procentLoaded))+
%;

preloader.loaderPerc.kb.text=[+String(Math.round(event.bytesLoaded/1024))+
KB from +String(Math.round(event.bytesTotal/1024))+ KB];

preloader.loaderPerc2.perc_mc.perc.text=String(Math.round(procentLoaded))+
%;

preloader.loaderPerc2.kb.text=String(Math.round(event.bytesTotal/1024))+
KB;

preloader.loaderPerc.bar.scaleX=(procentLoaded/100)
*stage.stageWidth/305;
preloader.loaderPerc2.bar.scaleX=(procentLoaded/100)
*stage.stageWidth/305;

if (procentLoaded=100) {
gotoAndPlay(2);
removeEventListener(ProgressEvent.PROGRESS,checkingProgress);
}
}


Am i maybe using a feature that doean't work on FP9? What else could be the
problem?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Join me on Bebo

2008-12-31 Thread Pedro Kostelec
Who cares? There are already too many social media networks. You can join
all of them!


On Wed, Dec 31, 2008 at 12:23 AM, Matthew Muller matthewmul...@gmail.comwrote:

 It's for human beings and some clever chimps dude, oh and maybe web
 developers researching social networking sites.

 Sent from my iPhone


 On 30 Dec 2008, at 22:47, Paul Andrews p...@ipauland.com wrote:

  According to my kids it's for children..

 - Original Message - From: Scott Janousek 
 sc...@scottjanousek.com
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Tuesday, December 30, 2008 8:29 PM
 Subject: Re: [Flashcoders] Join me on Bebo


  bebo must be crapp-o with invites. ;)

 -sj

 Matthew Muller wrote:

 Sorry stupid thing emailed everyone in my address book

 Sent from my iPhone

 On 30 Dec 2008, at 17:40, Dave Watts dwa...@figleaf.com wrote:






 


  ___
 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] Tab key with flash player in browser

2008-12-29 Thread Pedro Kostelec
Hi

Curiosity made me ask you this:

a)Is there a way to deactivate the Tab key in a flash movie when it's
previewed with a browser?

b)How to prevent the browser page to automatically focus on flash content,
once the content was clicked?
Example: You open two youtube video in different tabs. You pause them both
(or do whatever you want with them. The important is that you click on the
flash content on both tabs). Now if you press Ctrl+TAB you won't be able to
to go to the next tab, but instead you will see that yellow selector around
a button in the flash player.
This auto focus happens in most flash contents on the web. Note that this
doeasn't happen for buzzword.com Why?

Thanks.

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


Re: [Flashcoders] AS3LCR as CHM

2008-12-28 Thread Pedro Kostelec
If you can't open it by double clicking on it (usually i can, but this time
i couldn't) use a software like xCHM (free, 1.1Mb ) to open it.
http://sourceforge.net/project/downloading.php?group_id=87007use_mirror=garrfilename=xchm-1.13.zip15359781

On Sun, Dec 28, 2008 at 11:07 AM, Cor c...@chello.nl wrote:

 Valentin,

 The file seems to be empty??



 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Valentin
 Schmidt
 Sent: zondag 28 december 2008 1:10
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] AS3LCR as CHM

 hi,

 just a little hint for all adherents of the CHM format:
 there is a good CHM version of the ActionScript 3.0 Language and
 Components Reference (english CS4 version) at
 http://rapidshare.com/files/177383554/as3lcr.chm

 cheers,
 valentin

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 No virus found in this incoming message.
 Checked by AVG - http://www.avg.com
 Version: 8.0.176 / Virus Database: 270.10.0/1866 - Release Date: 27-12-2008
 20:49

 ___
 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] effects theory? keeping processes low...

2008-12-11 Thread Pedro Kostelec
I think i once read that filters are improved to work better with number
divisible with 4.
Maybe it's the same with other stuff in as.

On Wed, Dec 10, 2008 at 7:59 PM, Corban Baxter [EMAIL PROTECTED] wrote:

 Hey guys I am working on a fullscreen flash site. I am hoping to bring
 down the CPU cycles. Right now on the PC I'm using to test it on it
 runs high like 90%. I was hoping there might be a way to bring down
 the processor. But I have tried about everything. I'm not sure what I
 could do to get it much lower. I'm sure there are a few pros out there
 that would have a few ideas. Here is the page...
 http://projectx4.com/site_test/. From all my tests it just seems like
 moving that many large objects on the screen is just going to bring
 the processor to its knees no matter what. Would any one have any
 ideas how to help this at all?

 Would doing some sort of bitmap object hack work either? Thanks for
 the help in advance!

 And Here is some code I have written to run the animation...

 import gs.TweenLite;
 import gs.easing.*;

 var shell:MovieClip = this;

 var maxOrbs:Number = 10;
 var numOrbs:Number;

 function animateOrb(mc:MovieClip):void
 {
mc.orbTween = TweenLite.to(mc, 1, { alpha: 1 });
mc.orbTween = TweenLite.to(mc, mc.ranTime, { x: mc.moveToX,
 ease:Linear.easeNone, overwrite: false });
mc.orbTween = TweenLite.to(mc, 1, {delay: mc.ranTime-1, alpha: 0,
 onComplete: removeOrb, onCompleteScope: shell, onCompleteParams: [mc],
 overwrite: false});

 }

 function createOrbs():void
 {

numOrbs = 0; //reset count

for(var i:int=0; imaxOrbs; i++){

createNewOrb(numOrbs);
numOrbs++;

}

 }

 function removeOrb(orb:MovieClip):void
 {
var num:Number = orb.num;
motionBlurHldr.removeChild(orb);
numOrbs--;
var oldNum:Number = orb.num;

orb.orbTween = null;
delete orb.orbTween;

orb = null;
shell[orb + num] = null;
delete(shell[orb + num]);
delete(orb);

//trace(orb);

createNewOrb(oldNum); //replace the orb that was just removed with a
 new one
 }


 function createNewOrb(num:Number):void
 {

shell[orb + num] = new ch_orb();
var orb:MovieClip = shell[orb + num];

//setup random vars
var ranScale:int = Math.round(Math.random() * (4 - 2)) + 2;
var ranX:int = Math.round(Math.random() * (sWidth + 250) + 50);
 //sWidth is really stage.stageWidth
var ranY:int = Math.round(Math.random() * (sHeight + 250) + 50);
 //sWidth is really stage.stageHeight
var moveToX:int = Math.round(Math.random() * (290 - 90)) + 90;
var ranTime:int = Math.round(Math.random() * (6 - 3)) + 3;;

orb.moveToX = ranX - moveToX;
orb.ranTime = ranTime;

//setup properties of the orb
orb.scaleX = ranScale;
orb.scaleY = ranScale;
orb.x = ranX;
orb.y = ranY;
orb.alpha = 0;
orb.num = num;
orb.orbTween;
orb.name = orb + String(num);

var newColorTransform:ColorTransform = orb.transform.colorTransform;
newColorTransform.color = colorTones[Math.round(Math.random() * 5
 )];
orb.transform.colorTransform = newColorTransform;

animateOrb(orb);

motionBlurHldr.addChild(orb);

 }

 createOrbs();


 --
 Corban Baxter
 http://www.projectx4.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] full screen issue

2008-11-24 Thread Pedro Kostelec
Very cool, impressive. I didn't follow your question, but i guess i will
read it all now if this can be a final product of it.


*Pedro D. Kostelec*
[EMAIL PROTECTED]



On Mon, Nov 24, 2008 at 9:23 PM, Cor [EMAIL PROTECTED] wrote:

 I solved my fullscreen problem in AS30.

 But this is something I would like to share with you:

 http://users.telenet.be/kixx/

 Do not maximize your browser when it opens.

 Kind regards
 Cor ;-)


 ___
 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] Flex vs. Flash

2008-11-20 Thread Pedro Kostelec
I see that many people can't decide wheter to use flex. I can't.
So, i think i am going to wait for Thermo. Does anyone know the release year
and month?
I hope that Thermo will really fill the gap between Flash and Flex. If it
will, i am sure to start learning Thermo.


*Pedro Damian Kostelec*
[EMAIL PROTECTED]



On Thu, Nov 20, 2008 at 11:05 PM, Merrill, Jason 
[EMAIL PROTECTED] wrote:

  So in my opinion the real advantages of Flex over Flash for
 UI/data-binding is:

 Sebastian,

 This discussion has barely touched on databinding (just one or two mentions
 of it being an advantage of the native Flash framework over Flex), so I'm
 starting to wonder, have you done any databinding in Flex?  Databinding
 doesn't exist in Flash CS3 or Flash CS4 frameworks, it's simply not a
 feature like it is in the Flex 2/3 framework.  Have you done much work with
 Flex before?


 Jason Merrill
 Bank of America Instructional Technology  Media   ·   GCIB  Staff
 Support LLD

 Interested in Flash Platform technologies?  Join the Bank of America Flash
 Platform Developer Community
 Interested in innovative ideas in Learning?  Check out the Innovative
 Learning Blog and 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] 3d math in AS3

2008-11-18 Thread Pedro Kostelec
I don't think there is anything as a 3D angle value. Angles are shown in a
2D plane. (0-360degrees or 0-2PI radians)
Therefore, you can't use a polar system to do this in 3D.
You have to use a simple x,y,z coordinate system to find a point (rotation)
in 3D,
or maybe you could use the polar system to get the angle on a 2D plane
(atan2(dy, dx)), and then get the z value of the point you are looking for.

Or you may use the rotationX, rotationY and rotationZ properties.

I hope i am right. If not correct me!


*Pedro D. Kostelec*
[EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] 1172: definition flash.desktop:NativeApplication

2008-11-17 Thread Pedro Kostelec
I tried your code and it works well. I got no error.  (using Fl cs4). I
mean, when i press Cntrl+ENTER the app runs all right. (But i have no idea
how to actually make it a real AIR app; when i click on publish i get a
window asking for a digital certificate! Where can i get it?)Maybe you don't
have the latest update Air plug-in?

I just started playing with AIR yesterday, so i don't have any ideas what
else could be the reason for your problem.

Pedro




On Mon, Nov 17, 2008 at 5:46 PM, Michael Stocke [EMAIL PROTECTED] wrote:

 Good afternoon group. I didn't get a response on the Flash Tiger list
 last week, so that's why I'm cross-posting. Hopefully this isn't
 off-topic.



 I am in the process of going through some AIR tutorials using the Flash

 IDE, and I have encountered some errors. I am following the instructions

 exactly and I still can't get the app to compile (although I did

 discover that the tutorial did leave out some key info). I even tried

 the sample file and that won't compile. I am simply trying to make an

 application with custom chrome that is draggable, that can be closed,

 and that can be minimized. I haven't added any other functionality at

 this time. The tutorial says to put the code on a frame in the timeline

 (which I wasn't really comfortable with, but what do I know?). Here is

 the relevant code:



 import flash.desktop.NativeApplication;

 import flash.events.MouseEvent;



 back.addEventListener(MouseEvent.MOUSE_DOWN, back_CLICK);

 function back_CLICK(e:MouseEvent):void {

 stage.nativeWindow.startMove();

 }



 minimize.addEventListener(MouseEvent.CLICK, minimize_CLICK);

 function minimize_CLICK(e:MouseEvent):void {

 stage.nativeWindow.minimize();

 }



 closeButton.addEventListener(MouseEvent.CLICK,closeButton_CLICK);

 function closeButton_CLICK(e:MouseEvent):void {

 NativeApplication.nativeApplication.exit();

 }



 Here is a link to the tutorial:



 http://www.adobe.com/devnet/air/flash/articles/custom_chrome_app.html



 Among other things, I get the following error: 1172: definition

 flash.desktop:NativeApplication. I have installed the Flash AIR
 plug-in,

 and I do get code prompts in the actions window. Does anyone have any

 idea why I am getting this error and how I might overcome it? Also, I'd

 prefer to include this code in a class, but I'm not quite sure how I

 would go about doing that, so any ideas on that would be appreciated as

 well.



 Thanks in advance for any advice.



 Mike Stocke
 Interface Engineer

 Organic, Inc. | Detroit
 2600 S. Telegraph Road -- Suite 100, Bloomfield Hills, MI 48302
 t: 248.454.4015  |  f: 248.454.3370



 Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 Blog: http://Threeminds.Organic.com http://threeminds.organic.com/
 Website: www.Organic.com http://www.organic.com/




 
 This email is intended only for the person or entity to which it is
 addressed and may contain information that is privileged, confidential or
 otherwise protected from disclosure. Dissemination, distribution or copying
 of this email or the information herein by anyone other than the intended
 recipient, or an employee or agent responsible for delivering the message to
 the intended recipient, is prohibited.  If you have received this email in
 error, please immediately notify us by calling our Help Desk at (415)
 581-5552 or by e-mailing us at [EMAIL PROTECTED]


 ___
 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] How much would you charge?

2008-11-14 Thread Pedro Kostelec
As we are talking about money.What would be the price of a very simple but
acceptable web page? And how long does it take to the pros to create one?

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


Re: [Flashcoders] Actionscripter 3.0 developers

2008-10-18 Thread Pedro Kostelec
I like those job posts only if they post the requirements and the the salary
you could get. I am 16 years old, and i wish to become professional in Fl,
Ps, Dw and perhaps some more stuff. So, i am interested in what firms need,
so i can learn it. And i want to see the salary, to see if it is worth
learning multimedia. Well, i like it so i will never stop learning it.
But when those job posts don't have at least this data, it becomes annoying.
And it's worse if there are too many of them. One or 2 job posts a week in
this list is OK.


*Pedro D. Kostelec*
[EMAIL PROTECTED]



On Fri, Oct 17, 2008 at 3:19 PM, Kerry Thompson [EMAIL PROTECTED]wrote:

 Michael William Ypes wrote:

  And let the floodgates open.
 
  This is exactly what I was on about, you say its ok for one and then
  they all jump on the band wagon. They don't even put a name on it.
  Isn't that called spamming...

 Allow me to politely disagree. I don't see it as spam at all.

 The job posting was for an AS3 developer. If you are not interested, just
 delete it and move on.

 I think this forum is a good place for well-targeted job postings. We are a
 good collection of Flash/Flex programmers, and some of us are looking for
 jobs or contracts. Job postings could be very beneficial to a lot of us.

 If we had a barrage of irrelevant job postings, that would be a problem.
 I'm
 only seeing maybe one or two a week, though. I see little harm in that.

 Cordially,

 Kerry Thompson

 ___
 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] Optimizing complex motion and effects

2008-10-10 Thread Pedro Kostelec
Hi list

I have created some balls being moved randomly (not completely) over the
stage, with a Glow Effect of 100,100 blur. All this together is very CPU
intensive. I just wondered if someone could check my files, and tell me how
to optimize it, to work faster and use less CPU? Would bitmap cache do the
work? I have 0 experience with bitmap cache, so if it would help, could you
tell me a link to a good tutorial or a good piece of code?
Here you can download my files:
http://www.humyo.com/2000999-217133957  (Right click on each file separately
and chose download)

Thanks


*Pedro D. Kostelec*
[EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Optimizing complex motion and effects

2008-10-10 Thread Pedro Kostelec
Thanks for the good tips. Actually this is an extended example of the
FriendsOfED-foundation as3-animation. I was trying to use the same kind of
coding as the author has (not very successful i think). The balls are simple
black circles, with a a glow effect on it. And the position of the ball
changes all the time, as well as the color of the glow. The motion is
actually simple springing. The springing target changes every 1 s (or .5),
so the balls spring towards the target. I found out that it forks much
slower, if the new target point is very far away from the old one (looks
like AS3 has still many problems with calculation higher values).
I prefer to stop talking, as you can see it by your own.
Here's a ZIP of it, if you couldn't download the files separately.
http://www.humyo.com/F/2000999-218668805  (you don't have to register to
download it).

As the color of the glow is defined by a Math.random()*color function. Would
it maybe be faster to enter some values of colors in an array and them chose
one of them, instead of calculation a new random each time?

Any more help appreciated.


*Pedro D. Kostelec*
[EMAIL PROTECTED]



On Fri, Oct 10, 2008 at 1:15 PM, sebastian [EMAIL PROTECTED] wrote:

 hi Pedro, bitmapcaching would make it MORE processor intense, not less.

 Visited your web page, but I can't seem to download... is this option only
 possible if I am registered? You might just want to give a link to a zip
 file instead - simpler.

 Things to check in general:

 1. how you are animating the objects: use a controlling MC that triggers
 each ball to move, instead of having each ball do an 'onEnterFrame' can help
 tremendously: but that's not always possible.
 2. Make your balls simpler: no outlines, no gradients, no alpha gradients,
 alpha:1 or 100 [AS3 or AS2]
 3. reduce quantity or reduce frequency of new ball generation/updates.
 5. Avoid calling floating numbers, round them up to integers when possible.
 6. Use multiplications over divisions and use bit operations instead of
 both, when possible. 10/2 is slower than 10*0.5 which is still slower than
 101.
 7. Optimize if-then statements so that you first check for the least/most
 common occurance
 8. optimize if-then statements so that you don't check the same object more
 than once [this can occur in badly written hit collision tests]

 and more... there are lot's of options and pitfalls to good code vs bad
 code...
 :P

 You can also check the net work similar code done by others, there is a
 heap of bouncing ball examples all over the place. Try respected sources
 like 'friend of ed' and 'oriellies' for code you know has been well thought
 out, or from a good blog where its a pro who is illustrating things.

 Modifying their code will be a  lot easier and less prone to
 processor-loads that could occure when you are coding from scratch and not
 sure what the best way to program it is...

 hope some of this input was useful.
 :)

 Seb.

 Pedro Kostelec wrote:

 Hi list

 I have created some balls being moved randomly (not completely) over the
 stage, with a Glow Effect of 100,100 blur. All this together is very CPU
 intensive. I just wondered if someone could check my files, and tell me
 how
 to optimize it, to work faster and use less CPU? Would bitmap cache do the
 work? I have 0 experience with bitmap cache, so if it would help, could
 you
 tell me a link to a good tutorial or a good piece of code?
 Here you can download my files:
 http://www.humyo.com/2000999-217133957  (Right click on each file
 separately
 and chose download)

 Thanks


 *Pedro D. Kostelec*
 [EMAIL PROTECTED]
 ___
 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] OT: Flex builder vs Flex SDK

2008-09-25 Thread Pedro Kostelec
Hi

I was wandering if starting to use Flex; but i can't see the difference
between the FLex BUilder 3 and the FLex SDK. The Flex BUIlder shipps at
250$, so there must be quite some difference, right?
Can someone point me to the most important differences between them two? A
link to some good info perhaps?
Thanks


*Pedro D. Kostelec*
[EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3 additions/changes in CS4?

2008-09-23 Thread Pedro Kostelec
Check Adobe TV for all the new features of FL CS4


*Pedro D. Kostelec*
[EMAIL PROTECTED]



On Tue, Sep 23, 2008 at 1:50 PM, Radley Marx [EMAIL PROTECTED] wrote:




 http://labs.adobe.com/technologies/flashplayer10/


 -r



 On Sep 23, 2008, at 10:14 AM, Mendelsohn, Michael wrote:

  Hi list...

 Anyone know of any additions or changes to AS3 in Flash CS4?  I haven't
 been able to find any specifics online.

 - MM


 ___
 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] SOT: (Rant) Why is Adobe.com such a bad website?

2008-09-14 Thread Pedro Kostelec
Yeah, it is verz hard to find stuff. Oncei was serching some labs, then the
developper center and maz thinks like this. If i would not have google i
would not find it. And yet, their design is deprogressing. I think the last
mainpage design was much much easier to use and userfriendly. Now all you
see is an add and a little RSS news place. It is so hard to find what you
look for. But i hope they will change it once to a better one.

Pedro D. Kostelec


On Fri, Sep 5, 2008 at 7:06 PM, John McCormack [EMAIL PROTECTED] wrote:

 It _is_ difficult to find things.
 I would like to see them put dates on thing so that know if it's the latest
 version.

 John


 Sunil Jolly wrote:

 Great post!

 I've spent many hours searching through the Adobe site trying to find
 things. For a company trying to spearhead web development it's a poor
 show.

 Sunil

 -Original Message-
 From: Radley Marx [mailto:[EMAIL PROTECTED] Sent: 04 September 2008
 20:50
 To: Flash Coders List
 Subject: [Flashcoders] SOT: (Rant) Why is Adobe.com such a bad website?




 As a designer and developer, I *envied* the design of macromedia.com.  I
 studied it. Other companies copied it.

 I remember what a beautiful website MM once had, and at the time how
  Adobe's was the exact opposite - ugly, hard to use, thoughtless. When
  Adobe bought Macromedia, they immediately adopted the MM site.  Brilliant
 move! But over the past couple of years, Adobe has really  beat it down with
 the ugly stick.

 With the demise of Flashpaper, I came across this page:

http://www.adobe.com/products/flashpaper/eod_faq/

 This is probably one of the ugliest, thoughtless pages from a serious
  source I've ever experienced in my career.

 Aesthetically, it's depressing. Depression-era-chic depressing.

 As a utility, it's restrictive. I must click on each question to  discover
 the facts, with many simply answering No.

 Functionality, it's ridiculously ironic. Topic: Flashpaper  discontinued.
 First link: Buy online.


 Other rants / examples:

 1) How does a developer download the debug player via the download  page?
 There's no link!


 http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=Sho
 ckwaveFlash

 Answer? It's actually down in Support / Flash Player. But most
  developers find it via a better source: Google search.


 2) Link icons on the debugger download page have been wrong for  *years*.
 The text links are right, but check out what happens if you  use the actual
 download arrows. You may accidently get Flash 8, or  Windows .exe instead of
 .dmg for Mac downloads.

http://www.adobe.com/support/flashplayer/downloads.html

 (Note that I even managed to get an Adobe team member to forward these
  bugs to the web team. Was never fixed.)


 3) Look at this product page:

http://www.adobe.com/products/

 Why does it look like an abandoned store? It looks like a outsourced
  Drupal project. Where's the flair? The edge?



 Adobe.com makes me want to submit a bid to fix it.

 What happened? I *REALLY* want to know! I just don't get it.

 My apologies to the list for this rant. I really hope this gets the
  attention of someone significant @ Adobe.

 thank you.

 -radley


 
 --
 Radley Marx
 www.radleymarx.com
 [EMAIL PROTECTED]
 
 --






 ___
 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] OT: List of all uk towns and cities with their longitude and latitudes

2008-08-26 Thread Pedro Kostelec
Hm, all i found with google is that

http://www.thesite.co.uk/
http://www.british-towns.net/england.asp

Websites that may use such a thing that you need. Perhpas contacting their
owner you may get more information where they got their lists.

**

*Pedro D. Kostelec*
[EMAIL PROTECTED]





On Tue, Aug 26, 2008 at 4:52 AM, Paul Steven [EMAIL PROTECTED]wrote:

 I am creating a UK based estate agent site and would like to implement a
 proximity search function.

 i.e the user would type in the area that they are looking for a house as
 well as a search radius and the site would display a list of all matching
 houses for sale in this area.

 I am assuming I will need a list of every town, village and city in the UK
 with their associated longitude and latitude however I am really struggling
 to find one. Can anyone suggest where I can find such a list. I don't mind
 paying for one assuming I don't have to sell my house to do so.

 If I can get this list, then my theory is to use pythagoras theorem to work
 out which properties are within the specified radius. Not sure how practical
 this will be.

 So if anyone has created similar functionality I would really appreciate
 some tips.

 Thanks in advance

 Paul


 ___
 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] OT: Your Best CS4 Upgrade Guesstimate

2008-08-18 Thread Pedro Kostelec
Or ask a friend in the US to buy it for you and send it via post. Even more
cheaper
Pedro D.K.


On Mon, Aug 18, 2008 at 3:37 PM, Merrill, Jason 
[EMAIL PROTECTED] wrote:

 Hey well look at it this way, telling your boss he/she has to fly you to
 New York for the weekend to pickup your copies of Creative Suite so you
 can save them money is, well, pretty priceless... and also not a bad way
 to spend the weekend.

 Jason Merrill
 Bank of America
 Enterprise Technology  Global Risk LLD
 Instructional Technology  Media

 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  Innovative Learning Blog  subscribe.



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of sebastian
 Sent: Monday, August 18, 2008 3:22 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] OT: Your Best CS4 Upgrade Guesstimate
 
 or a free plane ticket to fly to NY and buy the software there...
 
 After all, despite all logic and ecological reasoning, it's
 cheaper than the airfare it takes to get you there...
 :(
 :p
 
 
 Glen Pike wrote:
  Maybe we should run a raffle to closest guess the UK price,
 then the
  winner (UK based) gets the difference in the cost between
 the US and UK :)
 
  Merrill, Jason wrote:
  LOL, Greg, sounds like a good idea.
 
  Thanks Kerry too - I did a quick survey of upgrade prices
 on Adobe.com
  and found the % difference between upgrade price and new
 full license
  prices to be:
 
  Flash 28%
  Illustrator 33%
  Photoshop 35%
  Flexbuilder 39%
  Dreamweaver 49%
 
  So maybe 35% is a good unscientific guess.
 
 
  Jason Merrill Bank of America Enterprise Technology 
 Global Risk LLD
  Instructional Technology  Media
 
  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  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] Insert breakpoints and run debugger withoutFlashCS3?

2008-06-16 Thread Pedro Kostelec
What the hell is that?
It means:
This mailbox is not loading processes, applications and other
communications. You need to write to the address assigned to your ACT. (by
google translator)


Pedro D.K.

2008/6/16 EDELSTAR [EMAIL PROTECTED]:

 Данный почтовый ящик не обрабатывает подгрузки, заявки и прочие сообщения.
 Вам нужно написать на адрес, присвоенный Вашему СПО.
 ___
 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] Requesting Permission to Shoot Edelstar, Cap'n

2008-06-16 Thread Pedro Kostelec
Thnaks god, That was awful

Pedro D.K.

On Mon, Jun 16, 2008 at 11:03 AM, Paul Andrews [EMAIL PROTECTED] wrote:

 I think he's already gone. No need to kill the list.

 Paul
 - Original Message - From: BOYD SPEER [EMAIL PROTECTED]
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Monday, June 16, 2008 3:41 PM
 Subject: Re: [Flashcoders] Requesting Permission to Shoot Edelstar, Cap'n



  Could someone please take the list down until this Edelstar problem is
 solved.


 - Original Message -
 From: Matt S. [EMAIL PROTECTED]
 Date: Monday, June 16, 2008 8:31 am
 Subject: [Flashcoders] Requesting Permission to Shoot Edelstar, Cap'n
 To: Flash Coders List flashcoders@chattyfig.figleaf.com

  Cuz he's filling my inbox with QUESTION MARKS!!!


 ___
 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] Haven't received emails.

2008-06-12 Thread Pedro Kostelec
Me too. A few days i didn't get anythink and today suddenly 25 messages!

Pedro D.K.

On Wed, Jun 11, 2008 at 8:38 PM, Kerry Thompson [EMAIL PROTECTED]
wrote:

 Paul Andrews wrote:

  It's not just you - almost a three day gap.

 I believe Dave is upgrading the mailing list software. He's good--hang in
 there, and the list should be better than ever shortly.

 In the meantime, I'd like to repeat our invitation to join our
 complementary
 list, Flash_Tiger. We set it up for situations just like this--temporary
 outages. We're not a competing list--most Flash_Tiger members are also
 Flashcoders members, and we do everything we can to support and cooperate
 with Flashcoders.

 If you'd like to join us, now nearly 400 strong, we're at
 http://groups.yahoo.com/group/Flash_tiger. It's a pretty lively list, and,
 as I said, I think it's a good complement to Flashcoders.

 Cordially,

 Kerry Thompson

 ___
 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] smooth animation

2008-06-06 Thread Pedro Kostelec
Perhaps tweener? (http://code.google.com/p/tweener/)
I never used it so i'm no sure.

On Fri, Jun 6, 2008 at 8:20 AM, robert [EMAIL PROTECTED] wrote:

 Hi
 I am working on a flash piece in which there is a band of 9 jpegs that
 slowly move horizontally along the screen in a never ending band (the images
 are repeated to the left as they exit to the right).

 My client still perceives the movement as choppy. I have tried basic tricks
 like onEnterFrame and Tween() and a plain old timeline tween. The movement
 speed is very slow at 1px at 31fps. I've made it slightly smoother by
 checking each jpg to allow smoothing. Are there any other tricks at the
 newbie level or flashcoder level? Or is this something inherent in flash or
 related to the viewing hardware?

 Thank you very much
 robert
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


Re: [Flashcoders] Tweening text more smoothly - AS3

2008-05-25 Thread Pedro Kostelec
Ther is something that i don't like here. Sorry for changing the subject.
It's the Zoom in /Zoom out
When i click zoom in it works but it doesn't de-zoom when you click Zo0om
out.

Does someone know why is that so?

On Thu, May 22, 2008 at 11:57 AM, Vayu Robins [EMAIL PROTECTED] wrote:

 Hej.

 I am wondering if there is anything that could be done to improve the
 panning/scrolling/tweening of the news items at the bottom of the this
 page:

 http://flashkompagniet.dk/flash/main.php

 I am running a timer at 20 milliseconds Timer(20, 0);

 And the news items are being moved a 1px everytime the timer event is
 dispatched.

 I dont think they are runnning very smoothly.  Is that just me or does
 anyone else see that too.

 Can anything be done?

 Thanks
 Vayu


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




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


Re: [Flashcoders] Blank flash problem...

2008-05-22 Thread Pedro Kostelec
Works fine

FP 9.0.124
FF 3.0 RC1
Win XP Pro

+ad block  other

On Thu, May 22, 2008 at 2:41 PM, Juan Pablo Califano 
[EMAIL PROTECTED] wrote:

 Works for me.

 WinXP
 FF 2.0.0.14
 FP 9.0.124

 Have you checked that Javascript is not disabled?

 Another thing you could try is bypassing the javascript embedding (using an
 embed tag instead of SWFObject), just to check if the problem is related to
 JS...


 Cheers
 Juan Pablo Califano


 2008/5/22, Glen Pike [EMAIL PROTECTED]:
 
  Hi,
 
I have a live site where a friend of mine just sees a black page - the
  Flash is written in with SWFObject, but after this nothing happens and he
  sees a black screen - the movie bg colour is #00
 
http://www.sas.org.uk/education/sos/
 
This is in Win XP - Firefox 2.0.0.14 with the latest release of Flash
  Player 9.0.124.0 - it also happened with an older version 9.0.45.0(Debug),
 but we upgraded to try and discover the source of the problem.
 
The site works fine in IE on his machine and a mirror of the site on
  another domain works fine in FF.  All the files are local to the site, so
 no
  cross-domain issues here.
 
So the question is, do any of you have the same setup as above Win/FF
  2.0.0.14 FP  8 and if you visit the URL do any of you just get a blank
  screen?
Or, do any of you have any suggestions as to what to look for?
 
If it works, you will get TV which loads a cartoon guy, etc. etc.
 
Thanks in advance.
 
Glen.
  --
 
  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 mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


Re: [Flashcoders] Adobe Open Screen!

2008-05-02 Thread Pedro Kostelec
Great news indeed, maybe finally we can drop that crappy flash ide :] What
have you meant here? I read the article and there was no word on droping the
flash ide. Me, by myself i like it very much, and i believe
Adobe will continue tu update and launch new releases of it. Haven't you
seen what will the next generation of Flash ide bring to us=IK and much
more. I think the project is called FLash Diesel
, if you want to check it.
But indeed it is great this idea of expanding the use of Flash player.

On Thu, May 1, 2008 at 4:19 PM, Patrick J. Jankun [EMAIL PROTECTED] wrote:

 Wow, seems Adobe makes a big turn!
 Anybody ready that already?

 Great news indeed, maybe finally we can drop that crappy flash ide :]


 http://www.adobe.com/aboutadobe/pressroom/pressreleases/200804/050108AdobeOSP.html


 --
 fancy skills to pay the bills
 www.jankun.org

 Phone:  +43 660 96 969 - 01
 web:jankun.org
 mail:   p[at]jankun.org

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




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


Re: [Flashcoders] drawing a tube/cylinder with as

2008-04-27 Thread Pedro Kostelec
I believe perpervision should do the work but i am too lazy to learn using
it, i think i'll try flashsany if i don't find out how to do it myself.
If anyone know how to code it please help a bit. I love maths, but i can't
figure out how to code it

Thanks

On Sun, Apr 27, 2008 at 1:50 AM, ekameleon [EMAIL PROTECTED] wrote:

 Hello :)

 For me the best way to draw a cylinder is a realtime 3D engine like :

 http://code.google.com/p/papervision3d/
 http://blog.papervision3d.org/

 or

 http://www.flashsandy.org/

 or others

 EKA+ :)


 2008/4/27 Pedro Kostelec [EMAIL PROTECTED]:

  Hi
 
  I am trying to draw a tube/cylinder with as3.
  What i am trying to do is draw 2 circles in different places and then
  findind some points in the circl'es outline and joining and coloring the
  new
  created shapes. My question is How can i find those points in the
 cilcles
  outline?How should be the loop? Or is there a better way of drawing a
  tube?I
  need it to be in as, because i need to make on of those circles
  draggable
  and the tube shoud be redrawn on every frame again.
  Is my question clear?
 
  Thanks
 
  --
  Pedro D.K.
  ___
  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




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


[Flashcoders] drawing a tube/cylinder with as

2008-04-26 Thread Pedro Kostelec
Hi

I am trying to draw a tube/cylinder with as3.
What i am trying to do is draw 2 circles in different places and then
findind some points in the circl'es outline and joining and coloring the new
created shapes. My question is How can i find those points in the cilcles
outline?How should be the loop? Or is there a better way of drawing a tube?I
need it to be in as, because i need to make on of those circles draggable
and the tube shoud be redrawn on every frame again.
Is my question clear?

Thanks

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


[Flashcoders] Changing font?

2008-04-24 Thread Pedro Kostelec
Hi
How can i animate a change of font like in this page:
http://www.emmawatsonofficial.com/#harry?



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


Re: [Flashcoders] Changing font?

2008-04-24 Thread Pedro Kostelec
I guess common loop with setTextFormat would take a lot of cpu, wouldn't it?


On Thu, Apr 24, 2008 at 9:28 PM, Gabino Travassos 
[EMAIL PROTECTED] wrote:

 loop
 setTextFormat()
 maybe



 - Original Message - From: Pedro Kostelec [EMAIL PROTECTED]
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Thursday, April 24, 2008 11:49 AM
 Subject: [Flashcoders] Changing font?


  Hi
 How can i animate a change of font like in this page:
 http://www.emmawatsonofficial.com/#harry?



 --
 Pedro D.K.
 ___
 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




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


Re: [Flashcoders] New game: Exxon - The decontaminator

2008-04-23 Thread Pedro Kostelec
I like it. As you were talking about competition, can someone tell me which
are the most common Flash competition out there, in which you can compete
via a webcam.
Thnks

On Wed, Apr 23, 2008 at 5:38 PM, Meinte van't Kruis [EMAIL PROTECTED]
wrote:

 pretty cool, would be nice to work out the concept and add some features
 here and there

 On Wed, Apr 23, 2008 at 11:04 AM, Christoffer Enedahl 
 [EMAIL PROTECTED] wrote:

  This weekend I participated in ludum dare 48h, A bi-annual 48 hour solo
  game development competition.
 
  In the contest you are given a theme and you have to make a game of that
  theme from scratch in 48 hours. You must make all content yourself.
 
  I made a 2d topdown boat game in as3.
  Including source.
 
 
 
 http://www.imitationpickles.org/ludum/2008/04/20/exxon-the-decontaminator-2/
 
  /Christoffer aka drZool
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 M.A. van't Kruis
 http://www.malatze.nl/
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


Re: [Flashcoders] open swf file inside the flash editor

2008-04-16 Thread Pedro Kostelec
Yeah SWF Decompiler Tillix is great even if it really looks like a
Microsoft's Office software because of the design:
http://www.flash-decompiler.com/

There is one more i know: http://www.sothink.com/product/flashdecompiler/

Pedro D. K.



On Wed, Apr 16, 2008 at 5:54 PM, Glen Pike [EMAIL PROTECTED]
wrote:

 You can't but you can use a 3rd party decompiler like ASV or
 SWFDecompiler.  ASV is working on an AS3 version, not sure if Eltima are.

 For me ASV is the better one for looking at ActionScript, but I have found
 it easier to export assets with the SWFDecompiler

 http://www.eltima.com/products/flashdecompiler/

 http://www.buraks.com/asv/

 You can't get the AS3 version of ASV unless you are registered as
 purchaser, but to be honest it is well worth the money - same for Eltima's
 program, I had a similar problem to you and it paid for itself in one
 recover my corrupt files session.

 Glen



 Paul Andrews wrote:

  - Original Message - From: Gustavo Duenas 
  [EMAIL PROTECTED]
  To: Flash Coders List flashcoders@chattyfig.figleaf.com
  Sent: Wednesday, April 16, 2008 4:16 PM
  Subject: [Flashcoders] open swf file inside the flash editor
 
 
   Ok, Coders, how is going long time no see.
   I was wondering if I can open the swf files inside the editor of
flash cs3 the way I could do in flash 5 or mx?
   could I?
   I mean the swf file in the stage and with the timeline...is that
   possioble with nthe CS3 or I've been dreaming about it.
  
 
  You've been dreaming about having everyone open up your published work
  for themselves?
 
  I'd call that a nightmare, not a dream.
 
  Paul
 
   Regards,
  
   Gustavo
  
   P.d: I lost my source file, that's why I'm asking.
  
 
  Good luck finding it!
  ___
  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




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


Re: [Flashcoders] using scrollRect and the width / height properties in AS3 F9 - weirdness

2008-04-01 Thread Pedro Kostelec
I don't get your problem. What is this code about? It has no scrollbar??!!
If you want to refresh the stage faster (using a timer) just add
t.updateAfterEvent();

On Tue, Apr 1, 2008 at 8:26 PM, John Axel Eriksson [EMAIL PROTECTED] wrote:

 Hi.


 I'm building a simple scrollbar and a scrollcontent class. I'm using
 these in dialogs among other things.
 These dialogs draw a frame around their content based on the contents
 width and height + a margin (to
 describe it simply). I've not had any problems with this until I
 started using my scroll classes and, to be more
 precise, using scrollRects.

 What I've found out is that when a scrollRect is set on a
 DisplayObject, the width and height properties on that
 DisplayObject do not reflect the scrollRects values until some time in
 the future (perhaps next frame) - I've tested
 using a timer which traces out the width and height values at
 different times.

 My problem is that this messes up the whole displayList hierarchy and
 the only way to get my dialogs to draw right
 is to set some arbitrary timer to fire an event which updates the
 dialog and spefically the frame around the content at
 some time in the future (50-100 ms seems to work, but perhaps a
 shorter period could work as well). This is completely
 INSANE in my opinion and it doesn't even fix all problems for me.

 Why do scrollRects work like that? I can't see ANY benefit to it, only
 trouble. Could anyone help out or explain why this
 works the way it does?


 Try it yourselves:


 import flash.display.*;
 import flash.geom.*;
 import flash.events.TimerEvent;
 import flash.utils.Timer;

 var sp1:Sprite=new Sprite();
 sp1.graphics.beginFill(0x99,1.0);
 sp1.graphics.drawRect(0,0,100,100);

 var sp2:Sprite=new Sprite();
 sp2.scrollRect=new Rectangle(0,0,20,20);

 sp2.addChild(sp1);
 addChild(sp2);


 function traceValues(te:TimerEvent=null){
trace('container width: '+sp2.width);
trace('child width: '+sp1.width);
 }

 traceValues();

 var t:Timer=new Timer(100, 1);
 t.addEventListener(TimerEvent.TIMER, traceValues);
 t.start();

 stop();
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


Re: [Flashcoders] Tweening Engines for AS3

2008-03-27 Thread Pedro Kostelec
Sorry, my fault, sometimes I forgot I am on an international list.
You would cry if you see a paycheck of a programmer from a third-world
country ;)

I don't get it. I am not even in university so i am not employed and i have
no idea what this international list means??
I am curious,
Pedro


On Wed, Mar 26, 2008 at 7:43 PM, Wagner Amaral [EMAIL PROTECTED]
wrote:

 On Wed, Mar 26, 2008 at 2:38 PM, Steven Sacks [EMAIL PROTECTED]
 wrote:

   We are programmers, we can't afford Porsches! Better change that
   to bike and skate...
 
  You're joking, right?  Talented Flash developers are in extremely high
  demand right now.  Every day I get 3-5 emails from recruiters or
 companies.
   It's a seller's market and people are paying top dollar for AS3 and
 Flex
  devs.  Flash and Flex jobs are paying $75-$150/hr.  That's $150,000 -
  $300,000 a year.  If you can't afford a Porsche, you need to find a new
 job
  or grow a pair and ask for a raise.
 
  That being said, I don't own a Porsche because I've got better things to
  do with my money.  ;)
 


 Sorry, my fault, sometimes I forgot I am on an international list.
 You would cry if you see a paycheck of a programmer from a third-world
 country ;)
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


[Flashcoders] TextField motion

2008-03-18 Thread Pedro Kostelec
Hi

Is there a way to apply to som text added with as3 some motion or alpha?

I've got this working well:

import flash.text.TextField;
import flash.text.TextFormat;

var myTextField:TextField = new TextField();
addChild(myTextField);
myTextField.text = Križev pot;
myTextField.width = 800;
myTextField.height = 200;
myTextField.x = stage.stageWidth/2-200;
myTextField.y = stage.stageHeight/2+50;
*myTextField.alpha=0.5;//doean't work, how to do it? Or should i
import something else???
   myTextField.x++;//doean't work, how to do it?*
myTextField.border = false;
var myFormat:TextFormat = new TextFormat();
myFormat.color = 0xAA;
myFormat.size = 92;
myFormat.italic = false;
myFormat.bold = true;
myTextField.setTextFormat(myFormat);

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


Re: [Flashcoders] TextField motion

2008-03-18 Thread Pedro Kostelec
Yep you are right.
myTextField.x++ should work, but when i put it on a timer i get an error :
access of undefined property myTextField

Here's the code

import flash.text.TextField;
import flash.text.TextFormat;

var myTextField:TextField = new TextField();
addChild(myTextField);
myTextField.text = Križev pot;
myTextField.width = 800;
myTextField.height = 200;
myTextField.x = stage.stageWidth/2-200;
myTextField.y = stage.stageHeight/2+50;
myTextField.border = false;

var myFormat:TextFormat = new TextFormat();
myFormat.color = 0xAA;
myFormat.size = 92;
myFormat.italic = false;
myFormat.bold = true;
myTextField.setTextFormat(myFormat);

timer2= new Timer(50);
timer2.addEventListener(TimerEvent.TIMER, onTimer2);
timer2.start;

private function onTimer2(timer2:TimerEvent):void {
myTextField.y++;
}

Allan thanks for the alpha. Actually the alpha was only a workaround if
motion wouldn't work. It is just to take this of stage and then removing it.

On Tue, Mar 18, 2008 at 2:36 PM, Adrian Park [EMAIL PROTECTED] wrote:

 Hi Pedro.
 You can't set alpha on TextFields which use device fonts - you'll have to
 embed the font if you want to be able to set alpha.

 I think myTextField.x++; probably works but since you only do it once it
 isn't apparent. You'll have to set up a timer or frame event to do this
 repeatedly in order to see the motion.

 HTH.

 Adrian Park


 On Tue, Mar 18, 2008 at 2:17 PM, Pedro Kostelec [EMAIL PROTECTED]
 wrote:

  Hi
 
  Is there a way to apply to som text added with as3 some motion or alpha?
 
  I've got this working well:
 
 import flash.text.TextField;
 import flash.text.TextFormat;
 
  var myTextField:TextField = new TextField();
 addChild(myTextField);
 myTextField.text = Križev pot;
 myTextField.width = 800;
 myTextField.height = 200;
 myTextField.x = stage.stageWidth/2-200;
 myTextField.y = stage.stageHeight/2+50;
 *myTextField.alpha=0.5;//doean't work, how to do it? Or should i
  import something else???
myTextField.x++;//doean't work, how to do it?*
 myTextField.border = false;
 var myFormat:TextFormat = new TextFormat();
 myFormat.color = 0xAA;
 myFormat.size = 92;
 myFormat.italic = false;
 myFormat.bold = true;
 myTextField.setTextFormat(myFormat);
 
  --
  Pedro D.K.
 
  ___
  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




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


Re: [Flashcoders] TextField motion

2008-03-18 Thread Pedro Kostelec
Yes i know this questions are very basic, so don't need to reply them,. I am
not gonna do it like this i will leave this part  for another day

Thanks to all

On Tue, Mar 18, 2008 at 3:34 PM, Glen Pike [EMAIL PROTECTED]
wrote:

 You might want to try the newbie list, as these questions are getting
 very basic.

 Pedro Kostelec wrote:
  And aprt form that textFiel motion i have another prblem
 
  I was vreating a short movie with as3, nothing on the stage
 
  No, i want to add something on the stage on Frame 1000 and when i press
  spacebar, go there.
  How can i do this?
  gotoandplay?
  Always when i try i get an error.
 
 
  On Tue, Mar 18, 2008 at 3:04 PM, Pedro Kostelec [EMAIL PROTECTED]
 wrote:
 
 
  Yep you are right.
  myTextField.x++ should work, but when i put it on a timer i get an
 error :
  access of undefined property myTextField
 
  Here's the code
 
  import flash.text.TextField;
  import flash.text.TextFormat;
 
  var myTextField:TextField = new TextField();
  addChild(myTextField);
  myTextField.text = Križev pot;
  myTextField.width = 800;
  myTextField.height = 200;
  myTextField.x = stage.stageWidth/2-200;
  myTextField.y = stage.stageHeight/2+50;
  myTextField.border = false;
 
  var myFormat:TextFormat = new TextFormat();
  myFormat.color = 0xAA;
  myFormat.size = 92;
  myFormat.italic = false;
  myFormat.bold = true;
  myTextField.setTextFormat(myFormat);
 
  timer2= new Timer(50);
  timer2.addEventListener(TimerEvent.TIMER, onTimer2);
  timer2.start;
 
  private function onTimer2(timer2:TimerEvent):void {
  myTextField.y++;
  }
 
  Allan thanks for the alpha. Actually the alpha was only a workaround if
  motion wouldn't work. It is just to take this of stage and then
 removing it.
 
  On Tue, Mar 18, 2008 at 2:36 PM, Adrian Park [EMAIL PROTECTED] wrote:
 
 
  Hi Pedro.
  You can't set alpha on TextFields which use device fonts - you'll have
  to
  embed the font if you want to be able to set alpha.
 
  I think myTextField.x++; probably works but since you only do it once
 it
  isn't apparent. You'll have to set up a timer or frame event to do
 this
  repeatedly in order to see the motion.
 
  HTH.
 
  Adrian Park
 
 
  On Tue, Mar 18, 2008 at 2:17 PM, Pedro Kostelec [EMAIL PROTECTED]
  wrote:
 
 
  Hi
 
  Is there a way to apply to som text added with as3 some motion or
 
  alpha?
 
  I've got this working well:
 
 import flash.text.TextField;
 import flash.text.TextFormat;
 
  var myTextField:TextField = new TextField();
 addChild(myTextField);
 myTextField.text = Križev pot;
 myTextField.width = 800;
 myTextField.height = 200;
 myTextField.x = stage.stageWidth/2-200;
 myTextField.y = stage.stageHeight/2+50;
 *myTextField.alpha=0.5;//doean't work, how to do it? Or should
 
  i
 
  import something else???
myTextField.x++;//doean't work, how to do it?*
 myTextField.border = false;
 var myFormat:TextFormat = new TextFormat();
 myFormat.color = 0xAA;
 myFormat.size = 92;
 myFormat.italic = false;
 myFormat.bold = true;
 myTextField.setTextFormat(myFormat);
 
  --
  Pedro D.K.
 
  ___
  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
 
 
 
  --
  Pedro D.K.
 
 
 
 
 
 
  
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 

 --

 Glen Pike
 01736 759321
 www.glenpike.co.uk http://www.glenpike.co.uk
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


Re: [Flashcoders] frameworks and classes for flash cs3

2008-03-17 Thread Pedro Kostelec
OK. When i'll have some time i'll use it to read about it on osflash.
Thanks anyway

Pedro

On Mon, Mar 17, 2008 at 1:22 AM, Pedro Taranto [EMAIL PROTECTED] wrote:

 what are the 'best' framework/classes is very subjective, there isnt an
 UNIQUE framework that will solve all your problems

 you have to choose and use the ones that speed up your workflow

 In most of my projects I use pixlib (as2) and lowra (as3), but there are a
 lot of frameworks that is better in each case

 you should try all of them and use the one you feel more confortable to
 use,
 maybe try to do the same thing using differents frameworks that have the
 same purpose/focus:

 for example:
 Tweener vs TweenLite vs
 Papervision3D vs Sandy vs Away3D
 ..

 --
 Pedro Taranto


 On Sun, Mar 16, 2008 at 8:57 PM, Pedro Kostelec [EMAIL PROTECTED]
 wrote:

  If I start searching this two sites (which i did once) i will fill my
  computer with stuff i will surely never use. I just want to get the best
  ones, the most used...which for a curious person like me is impossible.
 
  So, can't you just tell which one are the best? I mean i am mostly using
  fLASH  for as3 motion.
 
  On Sun, Mar 16, 2008 at 11:58 PM, Pedro Taranto [EMAIL PROTECTED]
  wrote:
 
   look at osflash.org and code.google.com
  
   --
   Pedro Taranto
  
  
   On Sun, Mar 16, 2008 at 7:36 PM, Pedro Kostelec [EMAIL PROTECTED]
   wrote:
  
Hi coders
   
I want to start coding with frameworks and classes like TweenLite. I
   would
be pretty new at it, so i'd like you to recommend me some of them
 that
makes
flash coding easier or faster and improving performence.
   
Thanks
   
--
Pedro D.K.
___
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
  
 
 
 
  --
  Pedro D.K.
  ___
  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




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


[Flashcoders] Error #1009

2008-03-17 Thread Pedro Kostelec
Hi
 (posted in flashnewbies but the list is not very active and i need to
solve this problemas soon as possible)
 i have a problem while creating a as3 short animation:

 When i test the movie(all done with as3) i get this:

 TypeError: Error #1009: Cannot access a property or method of a null
 object reference.
at Mountain/init2()
at Mountain$iinit()
at RisingCroix/::init()
at RisingCroix$iinit()


 my code:
 package {
import flash.display.Sprite;
import flash.events.Event;
import flash.filters.*;

public class RisingCroix extends Sprite {
private var croix:Croix;
private var croix2L:Croix2;
private var croix2R:Croix2;

private var vy:Number=5;
private var glowFilter:GlowFilter;
private var blurFilter:BlurFilter;
private var blurFilter2:BlurFilter;

public function RisingCroix() {
init();
}
private function init():void {
croix=new Croix;
addChild(croix);
croix.x=stage.stageWidth / 2;
croix.y=stage.stageHeight;

croix2L = new Croix2;
addChild(croix2L);
croix2L.x=stage.stageWidth /4;
croix2L.y = stage.stageHeight;

croix2R = new Croix2;
addChild(croix2R);
croix2R.x = stage.stageWidth /4 *3;
croix2R.y = stage.stageHeight;

var mountain:Mountain = new Mountain //i guess
it is here wher it stucks
addChild(mountain);
mountain.x = stage.stageWidth / 2;
mountain.y = stage.stageHeight / 2;

glowFilter = new GlowFilter(0x00, 0.6, 30,
30, 2, 1);
blurFilter = new BlurFilter(6,6,1);
blurFilter2 = new BlurFilter(13,13,3);

addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
public function onEnterFrame(event:Event):void {
if (croix.ystage.stageHeight/2) {
croix.y -=vy;
}
if (croix2R.ystage.stageHeight/2-10) {
croix2R.y -= vy/3*2;
croix2L.y  -= vy/3*2;
}
croix.filters = [blurFilter, glowFilter];
croix2R.filters = croix2L.filters =[blurFilter2];

}
}
 }

 and the Mountain CLass

 package {
import flash.display.Sprite;

public class Mountain extends Sprite {
private var color1:uint=0x003300;
private var color2:uint=0x001700;

public function Mountain() {
init2();
}
public function init2():void {

graphics.beginFill(color1);
graphics.drawRect(0,0,stage.stageWidth,
stage.stageHeight/2);
graphics.endFill();
}
}
 }



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


Re: [Flashcoders] Error #1009

2008-03-17 Thread Pedro Kostelec
I added the () to it but still doesn't work:

package {
import flash.display.Sprite;
import flash.events.Event;
import flash.filters.*;

public class RisingCroix extends Sprite {
private var croix:Croix;
private var croix2L:Croix2;
private var croix2R:Croix2;
private var sun:Sun;
private var mountain:Mountain;

private var vy:Number=5;
private var glowFilter:GlowFilter;
private var glowSun:GlowFilter;
private var blurFilter:BlurFilter;
private var blurFilter2:BlurFilter;

public function RisingCroix() {
init();
}
private function init():void {
sun = new Sun();
addChild(sun);
sun.x = stage.stageWidth / 2;
sun.y=stage.stageHeight;

croix=new Croix();
addChild(croix);
croix.x=stage.stageWidth / 2;
croix.y=stage.stageHeight;

croix2L = new Croix2();
addChild(croix2L);
croix2L.x=stage.stageWidth /4;
croix2L.y = stage.stageHeight;

croix2R = new Croix2();
addChild(croix2R);
croix2R.x = stage.stageWidth /4 *3;
croix2R.y = stage.stageHeight;

mountain= new Mountain();
addChild(mountain);
mountain.x = stage.stageWidth/2;
mountain.y = stage.stageHeight/2;

glowFilter = new GlowFilter(0xCC, 0.6, 30, 30, 3, 
1);
blurFilter = new BlurFilter(3,3,1);
blurFilter2 = new BlurFilter(13,13,3);
glowSun = new GlowFilter(0xFF6600, 1, 50, 50, 2, 1, 
true);

croix.filters = [blurFilter, glowFilter];
croix2R.filters = croix2L.filters =[blurFilter2];
sun.filters = [glowSun, blurFilter2];

addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
public function onEnterFrame(event:Event):void {
//...
}

}
}
}

Mountain class final:

package {
import flash.display.Sprite;

public class Mountain extends Sprite {
private var x0:Number =0;
private var y0:Number =stage.stageHeight -150;
private var x1:Number=stage.stageWidth/2;
private var y1:Number=100;
private var x2:Number =stage.stageWidth;
private var y2:Number =stage.stageHeight -150;

public function Mountain() {
init();
}
public function init():void {
graphics.beginFill(0x256251);
graphics.moveTo(x0,y0);
graphics.curveTo(x1,y1,x2,y2);
graphics.lineTo(x2, stage.stageHeight);
graphics.lineTo(0, stage.stageHeight);
graphics.endFill();
}
}
}

On Mon, Mar 17, 2008 at 3:58 PM, jonathan howe [EMAIL PROTECTED] wrote:
 Missing () after Mountain instantiation, first of all...

  var mountain:Mountain = new Mountain();





  On Mon, Mar 17, 2008 at 3:36 PM, Pedro Kostelec [EMAIL PROTECTED] wrote:

   Hi
(posted in flashnewbies but the list is not very active and i need to
   solve this problemas soon as possible)
i have a problem while creating a as3 short animation:
  
When i test the movie(all done with as3) i get this:
  
TypeError: Error #1009: Cannot access a property or method of a null
object reference.
  at Mountain/init2()
  at Mountain$iinit()
  at RisingCroix/::init()
  at RisingCroix$iinit()
  
  
my code:
package {
  import flash.display.Sprite;
  import flash.events.Event;
  import flash.filters.*;
  
  public class RisingCroix extends Sprite {
  private var croix:Croix;
  private var croix2L:Croix2;
  private var croix2R:Croix2;
  
  private var vy:Number=5;
  private var glowFilter:GlowFilter;
  private var blurFilter:BlurFilter;
  private var blurFilter2:BlurFilter;
  
  public function RisingCroix() {
  init();
  }
  private function init():void {
  croix=new Croix;
  addChild(croix

Re: [Flashcoders] Error #1009

2008-03-17 Thread Pedro Kostelec
NO , ihaven't. I am only in a learning process of as3, so if you can
help me importing a class

On Mon, Mar 17, 2008 at 4:35 PM, Sidney de Koning
[EMAIL PROTECTED] wrote:
 Have you tried importing the Mountain Class?

  Cheers,

  Sid



  On Mar 17, 2008, at 4:28 PM, Pedro Kostelec wrote:

   I added the () to it but still doesn't work:
  
   package {
 import flash.display.Sprite;
 import flash.events.Event;
 import flash.filters.*;
  
 public class RisingCroix extends Sprite {
 private var croix:Croix;
 private var croix2L:Croix2;
 private var croix2R:Croix2;
 private var sun:Sun;
 private var mountain:Mountain;
  
 private var vy:Number=5;
 private var glowFilter:GlowFilter;
 private var glowSun:GlowFilter;
 private var blurFilter:BlurFilter;
 private var blurFilter2:BlurFilter;
  
 public function RisingCroix() {
 init();
 }
 private function init():void {
 sun = new Sun();
 addChild(sun);
 sun.x = stage.stageWidth / 2;
 sun.y=stage.stageHeight;
  
 croix=new Croix();
 addChild(croix);
 croix.x=stage.stageWidth / 2;
 croix.y=stage.stageHeight;
  
 croix2L = new Croix2();
 addChild(croix2L);
 croix2L.x=stage.stageWidth /4;
 croix2L.y = stage.stageHeight;
  
 croix2R = new Croix2();
 addChild(croix2R);
 croix2R.x = stage.stageWidth /4 *3;
 croix2R.y = stage.stageHeight;
  
 mountain= new Mountain();
 addChild(mountain);
 mountain.x = stage.stageWidth/2;
 mountain.y = stage.stageHeight/2;
  
 glowFilter = new GlowFilter(0xCC, 0.6, 30, 30, 
 3, 1);
 blurFilter = new BlurFilter(3,3,1);
 blurFilter2 = new BlurFilter(13,13,3);
 glowSun = new GlowFilter(0xFF6600, 1, 50, 50, 2, 1, 
 true);
  
 croix.filters = [blurFilter, glowFilter];
 croix2R.filters = croix2L.filters =[blurFilter2];
 sun.filters = [glowSun, blurFilter2];
  
 addEventListener(Event.ENTER_FRAME, onEnterFrame);
 }
 public function onEnterFrame(event:Event):void {
 //...
 }
  
 }
 }
   }
  
   Mountain class final:
  
   package {
 import flash.display.Sprite;
  
 public class Mountain extends Sprite {
 private var x0:Number =0;
 private var y0:Number =stage.stageHeight -150;
 private var x1:Number=stage.stageWidth/2;
 private var y1:Number=100;
 private var x2:Number =stage.stageWidth;
 private var y2:Number =stage.stageHeight -150;
  
 public function Mountain() {
 init();
 }
 public function init():void {
 graphics.beginFill(0x256251);
 graphics.moveTo(x0,y0);
 graphics.curveTo(x1,y1,x2,y2);
 graphics.lineTo(x2, stage.stageHeight);
 graphics.lineTo(0, stage.stageHeight);
 graphics.endFill();
 }
 }
   }
  
   On Mon, Mar 17, 2008 at 3:58 PM, jonathan howe [EMAIL PROTECTED]
wrote:
   Missing () after Mountain instantiation, first of all...
  
   var mountain:Mountain = new Mountain();
  
  
  
  
  
   On Mon, Mar 17, 2008 at 3:36 PM, Pedro Kostelec
   [EMAIL PROTECTED] wrote:
  
   Hi
   (posted in flashnewbies but the list is not very active and i need
   to
   solve this problemas soon as possible)
   i have a problem while creating a as3 short animation:
  
   When i test the movie(all done with as3) i get this:
  
   TypeError: Error #1009: Cannot access a property or method of a null
   object reference.
 at Mountain/init2()
 at Mountain$iinit()
 at RisingCroix/::init()
 at RisingCroix$iinit()
  
  
   my code:
   package {
 import flash.display.Sprite;
 import flash.events.Event;
 import flash.filters.*;
  
 public class RisingCroix extends Sprite {
 private var croix:Croix;
 private var croix2L:Croix2;
 private var croix2R:Croix2;
  
 private var

Re: [Flashcoders] Error #1009

2008-03-17 Thread Pedro Kostelec
I doesn't. I posted the iles on the net.
Can you please throw a look at?
http://www.box.net/shared/wettvhs84s

Thanks

On Mon, Mar 17, 2008 at 4:50 PM, Cory Petosky
[EMAIL PROTECTED] wrote:
 Jonathan, that's actually legal in ActionScript. Ugly and misleading, but 
 legal.

  Pedro, change Mountain2 to this:

  import flash.events.Event;

  import flash.display.Sprite;
  public class Mountain extends Sprite {
private var color1:uint=0x003300;
private var color2:uint=0x001700;

public function Mountain() {
addEventListener(Event.ADDED_TO_STAGE, stageListener);
}
public function stageListener(event:Event):void {


graphics.beginFill(color1);
graphics.drawRect(0,0,stage.stageWidth,
  stage.stageHeight/2);
graphics.endFill();
}

  You don't have a reference to the stage until the object is actually
  added -- using an event listener to wait until you're added to the
  stage solves the problem.




  On 3/17/08, jonathan howe [EMAIL PROTECTED] wrote:
   Missing () after Mountain instantiation, first of all...
  
var mountain:Mountain = new Mountain();
  
  
  
  
On Mon, Mar 17, 2008 at 3:36 PM, Pedro Kostelec [EMAIL PROTECTED] wrote:
  
 Hi
  (posted in flashnewbies but the list is not very active and i need to
 solve this problemas soon as possible)
  i have a problem while creating a as3 short animation:

  When i test the movie(all done with as3) i get this:

  TypeError: Error #1009: Cannot access a property or method of a null
  object reference.
at Mountain/init2()
at Mountain$iinit()
at RisingCroix/::init()
at RisingCroix$iinit()


  my code:
  package {
import flash.display.Sprite;
import flash.events.Event;
import flash.filters.*;

public class RisingCroix extends Sprite {
private var croix:Croix;
private var croix2L:Croix2;
private var croix2R:Croix2;

private var vy:Number=5;
private var glowFilter:GlowFilter;
private var blurFilter:BlurFilter;
private var blurFilter2:BlurFilter;

public function RisingCroix() {
init();
}
private function init():void {
croix=new Croix;
addChild(croix);
croix.x=stage.stageWidth / 2;
croix.y=stage.stageHeight;

croix2L = new Croix2;
addChild(croix2L);
croix2L.x=stage.stageWidth /4;
croix2L.y = stage.stageHeight;

croix2R = new Croix2;
addChild(croix2R);
croix2R.x = stage.stageWidth /4 *3;
croix2R.y = stage.stageHeight;

var mountain:Mountain = new Mountain //i guess
 it is here wher it stucks
addChild(mountain);
mountain.x = stage.stageWidth / 2;
mountain.y = stage.stageHeight / 2;

glowFilter = new GlowFilter(0x00, 0.6, 30,
 30, 2, 1);
blurFilter = new BlurFilter(6,6,1);
blurFilter2 = new BlurFilter(13,13,3);

addEventListener(Event.ENTER_FRAME, 
 onEnterFrame);
}
public function onEnterFrame(event:Event):void {
if (croix.ystage.stageHeight/2) {
croix.y -=vy;
}
if (croix2R.ystage.stageHeight/2-10) {
croix2R.y -= vy/3*2;
croix2L.y  -= vy/3*2;
}
croix.filters = [blurFilter, glowFilter];
croix2R.filters = croix2L.filters =[blurFilter2];

}
}
  }

  and the Mountain CLass

  package {
import flash.display.Sprite;

public class Mountain extends Sprite {
private var color1:uint=0x003300;
private var color2:uint=0x001700;

public function Mountain() {
init2();
}
public function init2():void {

graphics.beginFill(color1);
graphics.drawRect

Re: [Flashcoders] Error #1009

2008-03-17 Thread Pedro Kostelec
Joson, i tried yours too.

I had to add var x0:Number and so on... (The var was missing)
But it hasn't worked neither. Well i get no more error but the sprite
isn't drawn



On Mon, Mar 17, 2008 at 5:14 PM, Jason Van Cleave
[EMAIL PROTECTED] wrote:
 you can't reference the stage in the Mountain class until it is added to the
  Display List. try this


  package {
import flash.display.Sprite;
  import flash.events.Event;


public class Mountain extends Sprite {
private var x0:Number;
private var y0:Number;
private var x1:Number;
private var y1:Number;
private var x2:Number;
private var y2:Number;

public function Mountain() {
this.addEventListener(Event.ADDED_TO_STAGE, onStageAdded);



}
public function init():void {
graphics.beginFill(0x256251);
graphics.moveTo(x0,y0);
graphics.curveTo(x1,y1,x2,y2);
graphics.lineTo(x2, stage.stageHeight);
graphics.lineTo(0, stage.stageHeight);
graphics.endFill();
}
public function onStageAdded(e:Event):void
{
x0:Number =0;
   y0 =stage.stageHeight -150;
x1=stage.stageWidth/2;
   y1:Number=100;
x2 =stage.stageWidth;

y2:Number =stage.stageHeight -150;
init();

   }
   }

  On Mon, Mar 17, 2008 at 11:28 AM, Pedro Kostelec [EMAIL PROTECTED]


 wrote:

   I added the () to it but still doesn't work:
  
   package {
  import flash.display.Sprite;
  import flash.events.Event;
  import flash.filters.*;
  
  public class RisingCroix extends Sprite {
  private var croix:Croix;
  private var croix2L:Croix2;
  private var croix2R:Croix2;
   private var sun:Sun;
  private var mountain:Mountain;
  
  private var vy:Number=5;
  private var glowFilter:GlowFilter;
   private var glowSun:GlowFilter;
   private var blurFilter:BlurFilter;
  private var blurFilter2:BlurFilter;
  
  public function RisingCroix() {
  init();
  }
  private function init():void {
   sun = new Sun();
  addChild(sun);
  sun.x = stage.stageWidth / 2;
  sun.y=stage.stageHeight;
  
  croix=new Croix();
  addChild(croix);
  croix.x=stage.stageWidth / 2;
  croix.y=stage.stageHeight;
  
  croix2L = new Croix2();
  addChild(croix2L);
  croix2L.x=stage.stageWidth /4;
  croix2L.y = stage.stageHeight;
  
  croix2R = new Croix2();
  addChild(croix2R);
  croix2R.x = stage.stageWidth /4 *3;
  croix2R.y = stage.stageHeight;
  
   mountain= new Mountain();
   addChild(mountain);
  mountain.x = stage.stageWidth/2;
  mountain.y = stage.stageHeight/2;
  
   glowFilter = new GlowFilter(0xCC, 0.6, 30, 30,
   3, 1);
  blurFilter = new BlurFilter(3,3,1);
   blurFilter2 = new BlurFilter(13,13,3);
   glowSun = new GlowFilter(0xFF6600, 1, 50, 50, 2,
   1, true);
  
  croix.filters = [blurFilter, glowFilter];
  croix2R.filters = croix2L.filters =[blurFilter2];
   sun.filters = [glowSun, blurFilter2];
  
  addEventListener(Event.ENTER_FRAME, onEnterFrame);
  }
  public function onEnterFrame(event:Event):void {
   //...
  }
  
  }
  }
   }
  
   Mountain class final:
  
   package {
  import flash.display.Sprite;
  
  public class Mountain extends Sprite {
   private var x0:Number =0;
  private var y0:Number =stage.stageHeight -150;
  private var x1:Number=stage.stageWidth/2;
  private var y1:Number=100;
  private var x2:Number =stage.stageWidth;
  private var y2:Number =stage.stageHeight -150;
  
  public function Mountain() {
  init

Re: [Flashcoders] Error #1009

2008-03-17 Thread Pedro Kostelec
I tried import Mountain; and import com.Mountain but it hasn't worked.
Always get the same error

I supose there is no path if the files are in the same folder,no?

On Mon, Mar 17, 2008 at 5:15 PM, Sidney de Koning
[EMAIL PROTECTED] wrote:
 Just rewrite this:


   package {
import flash.display.Sprite;
import flash.events.Event;
import flash.filters.*;
  
public class RisingCroix extends Sprite {
private var croix:Croix;

  to this:


   package {
import flash.display.Sprite;
import flash.events.Event;
import flash.filters.*;
  import classpath.to.mountain.class.Mountain;

 
  
public class RisingCroix extends Sprite {
private var croix:Croix;

  Then the datatype Mountain exists and your class will be available in
  this class.
  Hope that works for you, let me know.

  Cheers,

  Sid

  PS. Just a tip, its good practice to rename your private member
  variables (class variables: private var nameOfVar) with an underscore,
  like so: private var _nameOfVar so you can easily distinguish between
  class variables and local variables in functions or parameters.




  On Mar 17, 2008, at 4:53 PM, Pedro Kostelec wrote:

   NO , ihaven't. I am only in a learning process of as3, so if you can
   help me importing a class
  
   On Mon, Mar 17, 2008 at 4:35 PM, Sidney de Koning
   [EMAIL PROTECTED] wrote:
   Have you tried importing the Mountain Class?
  
   Cheers,
  
   Sid
  
  
  
   On Mar 17, 2008, at 4:28 PM, Pedro Kostelec wrote:
  
   I added the () to it but still doesn't work:
  
   package {
import flash.display.Sprite;
import flash.events.Event;
import flash.filters.*;
  
public class RisingCroix extends Sprite {
private var croix:Croix;
private var croix2L:Croix2;
private var croix2R:Croix2;
private var sun:Sun;
private var mountain:Mountain;
  
private var vy:Number=5;
private var glowFilter:GlowFilter;
private var glowSun:GlowFilter;
private var blurFilter:BlurFilter;
private var blurFilter2:BlurFilter;
  
public function RisingCroix() {
init();
}
private function init():void {
sun = new Sun();
addChild(sun);
sun.x = stage.stageWidth / 2;
sun.y=stage.stageHeight;
  
croix=new Croix();
addChild(croix);
croix.x=stage.stageWidth / 2;
croix.y=stage.stageHeight;
  
croix2L = new Croix2();
addChild(croix2L);
croix2L.x=stage.stageWidth /4;
croix2L.y = stage.stageHeight;
  
croix2R = new Croix2();
addChild(croix2R);
croix2R.x = stage.stageWidth /4 *3;
croix2R.y = stage.stageHeight;
  
mountain= new Mountain();
addChild(mountain);
mountain.x = stage.stageWidth/2;
mountain.y = stage.stageHeight/2;
  
glowFilter = new GlowFilter(0xCC, 0.6,
   30, 30, 3, 1);
blurFilter = new BlurFilter(3,3,1);
blurFilter2 = new BlurFilter(13,13,3);
glowSun = new GlowFilter(0xFF6600, 1, 50, 50,
   2, 1, true);
  
croix.filters = [blurFilter, glowFilter];
croix2R.filters = croix2L.filters
   =[blurFilter2];
sun.filters = [glowSun, blurFilter2];
  
addEventListener(Event.ENTER_FRAME,
   onEnterFrame);
}
public function onEnterFrame(event:Event):void {
//...
}
  
}
}
   }
  
   Mountain class final:
  
   package {
import flash.display.Sprite;
  
public class Mountain extends Sprite {
private var x0:Number =0;
private var y0:Number =stage.stageHeight -150;
private var x1:Number=stage.stageWidth/2;
private var y1:Number=100;
private var x2:Number =stage.stageWidth;
private var y2:Number =stage.stageHeight -150;
  
public function Mountain() {
init();
}
public function init():void {
graphics.beginFill(0x256251);
graphics.moveTo(x0,y0);
graphics.curveTo(x1,y1,x2,y2);
graphics.lineTo(x2, stage.stageHeight

Re: [Flashcoders] Error #1009

2008-03-17 Thread Pedro Kostelec
Jason IT WORKED

Thanks to you and to all that took the time reply.

//
root folder: Main  (- class files)
package: com.something.Mountain (- class files)
package: com.something.RisingCroix  (- class files)
//
ISOrry don't really get it. Is com actually a file?
On Mon, Mar 17, 2008 at 5:18 PM, Jason Van Cleave
[EMAIL PROTECTED] wrote:
 some typos in there (coding in gmail)


  public function onStageAdded(e:Event):void
   {
 x0 =0;

 y0 =stage.stageHeight -150;
 x1=stage.stageWidth/2;
 y1=100;
 x2 =stage.stageWidth;
  y2 =stage.stageHeight -150;
  init();

   }

  On Mon, Mar 17, 2008 at 12:14 PM, Jason Van Cleave [EMAIL PROTECTED]
  wrote:



   you can't reference the stage in the Mountain class until it is added to
   the Display List. try this
  
   package {
  import flash.display.Sprite;
   import flash.events.Event;
  
  public class Mountain extends Sprite {
  private var x0:Number;
  private var y0:Number;
  private var x1:Number;
  private var y1:Number;
  private var x2:Number;
  private var y2:Number;
  
  public function Mountain() {
  this.addEventListener(Event.ADDED_TO_STAGE, onStageAdded);
  
  
  }
  public function init():void {
  graphics.beginFill(0x256251);
  graphics.moveTo(x0,y0);
  graphics.curveTo(x1,y1,x2,y2);
  graphics.lineTo(x2, stage.stageHeight);
  graphics.lineTo(0, stage.stageHeight);
  graphics.endFill();
  }
  public function onStageAdded(e:Event):void
  {
  x0:Number =0;
 y0 =stage.stageHeight -150;
  x1=stage.stageWidth/2;
 y1:Number=100;
  x2 =stage.stageWidth;
  y2:Number =stage.stageHeight -150;
  init();
  
  
 }
}
  
   On Mon, Mar 17, 2008 at 11:28 AM, Pedro Kostelec [EMAIL PROTECTED]
   wrote:
  
I added the () to it but still doesn't work:
   
package {
   import flash.display.Sprite;
   import flash.events.Event;
   import flash.filters.*;
   
   public class RisingCroix extends Sprite {
   private var croix:Croix;
   private var croix2L:Croix2;
   private var croix2R:Croix2;
private var sun:Sun;
   private var mountain:Mountain;
   
   private var vy:Number=5;
   private var glowFilter:GlowFilter;
private var glowSun:GlowFilter;
private var blurFilter:BlurFilter;
   private var blurFilter2:BlurFilter;
   
   public function RisingCroix() {
   init();
   }
   private function init():void {
sun = new Sun();
   addChild(sun);
   sun.x = stage.stageWidth / 2;
   sun.y=stage.stageHeight;
   
   croix=new Croix();
   addChild(croix);
   croix.x=stage.stageWidth / 2;
   croix.y=stage.stageHeight;
   
   croix2L = new Croix2();
   addChild(croix2L);
   croix2L.x=stage.stageWidth /4;
   croix2L.y = stage.stageHeight;
   
   croix2R = new Croix2();
   addChild(croix2R);
   croix2R.x = stage.stageWidth /4 *3;
   croix2R.y = stage.stageHeight;
   
mountain= new Mountain();
addChild(mountain);
   mountain.x = stage.stageWidth/2;
   mountain.y = stage.stageHeight/2;
   
glowFilter = new GlowFilter(0xCC, 0.6, 30,
30, 3, 1);
   blurFilter = new BlurFilter(3,3,1);
blurFilter2 = new BlurFilter(13,13,3);
glowSun = new GlowFilter(0xFF6600, 1, 50, 50, 2,
1, true);
   
   croix.filters = [blurFilter, glowFilter];
   croix2R.filters = croix2L.filters =[blurFilter2];
sun.filters = [glowSun, blurFilter2];
   
   addEventListener(Event.ENTER_FRAME,
onEnterFrame);
   }
   public function onEnterFrame(event:Event):void

Re: [Flashcoders] need:: Flex 3 AS3 // tutorials, links, book recs.

2008-03-17 Thread Pedro Kostelec
Well, i've bought
Foundation ActionScript Animation: Making Things Move! By Keith Peters
http://books.google.com/books?id=zK7zaGGVi60Cprintsec=frontcoverdq=making+things+moveei=AL7eR-rgEKjuiQGO_LDtCgsig=B_aMb6DhRR2DYLfrQBRiTUtCr2AI
actaully haven't known a lot of as2 when i started reading it but i learned
quite something (not only as3 but animation with code)

If you'are not sure which book to buy you can look here: books.google.com
Google is recopying the(full) books on the net so you can look which one is
better for you

Pedro D.K.

On Mon, Mar 17, 2008 at 7:32 PM, Fabio Pinatti [EMAIL PROTECTED] wrote:

 On Mon, Mar 17, 2008 at 2:48 PM, artur [EMAIL PROTECTED] wrote:

  2nd try..
 
  can ANYONE please send me their links and book recommendations
  for migrating from Flex2--3 and AS2--3
 
  it would be greatly appreciated.
 
  thanks
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 


 I recently bought Essential Actionscript 3.0, from Colin Moock (o-reilly),
 was a very good choice in my oppinion.
 --
 Fábio Pinatti
 :: web.developer
  www.pinatti.com.br
 :: 19. 9184.3745 / 3342.1130
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


[Flashcoders] frameworks and classes for flash cs3

2008-03-16 Thread Pedro Kostelec
Hi coders

I want to start coding with frameworks and classes like TweenLite. I would
be pretty new at it, so i'd like you to recommend me some of them that makes
flash coding easier or faster and improving performence.

Thanks

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


Re: [Flashcoders] frameworks and classes for flash cs3

2008-03-16 Thread Pedro Kostelec
If I start searching this two sites (which i did once) i will fill my
computer with stuff i will surely never use. I just want to get the best
ones, the most used...which for a curious person like me is impossible.

So, can't you just tell which one are the best? I mean i am mostly using
fLASH  for as3 motion.

On Sun, Mar 16, 2008 at 11:58 PM, Pedro Taranto [EMAIL PROTECTED] wrote:

 look at osflash.org and code.google.com

 --
 Pedro Taranto


 On Sun, Mar 16, 2008 at 7:36 PM, Pedro Kostelec [EMAIL PROTECTED]
 wrote:

  Hi coders
 
  I want to start coding with frameworks and classes like TweenLite. I
 would
  be pretty new at it, so i'd like you to recommend me some of them that
  makes
  flash coding easier or faster and improving performence.
 
  Thanks
 
  --
  Pedro D.K.
  ___
  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




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


Re: [Flashcoders] Graphic design universities

2008-02-24 Thread Pedro Kostelec
Well. All those uniceersities you recommended to me are almost comlpetely
dealing with sociology sciences(history, humanity...) or how we say to it.
Isn't there a univerity out there which is dealing with natural
science(maths, phisics, biology...)  which has a part of animation, flash, a
bit of art so that it is not fully in the sociology part.

Hope you understand what i am looking for.

Pedro

On Sat, Feb 23, 2008 at 4:01 PM, Pedro Kostelec [EMAIL PROTECTED] wrote:

 Not bad this Aademy of Art Univeristy in S. Fr. The program that best suts
 to me is Digital Arts  
 Communicationshttp://www.academyart.edu/digital-arts-school/index.html:
 Web and Interactive design production, Motion graphic design, photography
 and imaging, typography, hand coding HTML, FLash, Actionscripting, PHP and
 My SQL server-side scritping(don't like php and mysql to much, but there
 always is somehing you don't really like);

 Inyone sees something more like this one just say it.

 Thanks Brenda Hicks(San Francisco is great, perhaps not greater than NYC
 but cool-this are places i'll ally enjoy to study and work in)

 On Fri, Feb 22, 2008 at 6:55 PM, Brenda Hicks [EMAIL PROTECTED]
 wrote:

  My son is in his third year at the Academy of Art University in San
  Francisco. His major is Illustration.
 
  http://www.academyart.edu/
 
  They have a pretty comprehensive graphic design program and help with
  job
  placement upon graduation. The campus is spread throughout San
  Francisco.
  What better place to go and learn and also immerse yourself in the
  culture.
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Pedro
  Kostelec
  Sent: Friday, February 22, 2008 9:00 AM
  To: Flash Coders List
  Subject: Re: [Flashcoders] Graphic design universities
 
  Thanks guys. I like your choices, specially Cory Petosky's, but i would
  prefer somethink in europe or north america, countries in which people
  speak
  english or french or perhaps spanish (the languages i speak). I believe
  all
  the universitys you recommended to me are great, but the problem is the
  language too. I am not going to learn one more foreign language in 2
  years!!
  And i wonder if they accept the international bachelors degree or not.
 
  Thanks
 
 
  On Wed, Feb 20, 2008 at 5:35 PM, Cory Petosky 
  [EMAIL PROTECTED]
  wrote:
 
   If you don't mind the cold, a lot of the designers I've met have gone
   to the Minneapolis College of Art and Design (MCAD)
   http://www.mcad.edu/. There are a lot of genuinely talented guys
   there, and their degree programs sound like just what you're looking
   for.
  
   Many good friends (amazing designers/Flash animators) have highly
   recommended the place to me.
  
   On 2/20/08, Sidney de Koning [EMAIL PROTECTED] wrote:
Check out the SAE (http://www.sae.nl/ speciafically in The
  Netherlands).
Its an internationally orientated school, specialized in Audio
engineering, video editing and Flash animation and Actionscripting
:) For world wide check out: http://www.sae.edu/ . I am a teacher
here and i can highly recommend it, and its well regarded.
   
Good luck picking a school,
   
Sidney
   
 Hi list.

 I have two years to choose in which univerity i'll go when my
 school
   studies
 finish. I am looking for some graphical design universitys in
 which i
   can
 apply my knowledge offlash, animation, video and audio modeling.
 So,
   mostly
 about graphics and motion. I've been googling the web, but i found
 so
   many
 results that my head went bad,and they mostly all of them had some
   other
 studies that i don't like such as ecomony, telecommunication
 between
   others.


 So, can someone recommend me some universites you think are good?

 Thanks

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


 --
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.5.516 / Virus Database: 269.20.8/1287 - Release Date:
   19-2-2008
 10:55


 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.5.516 / Virus Database: 269.20.8/1287 - Release Date:
   19-2-2008
 10:55


 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.5.516 / Virus Database: 269.20.8/1287 - Release Date:
   19-2-2008
 10:55


 ___
 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

Re: [Flashcoders] Graphic design universities

2008-02-23 Thread Pedro Kostelec
Not bad this Aademy of Art Univeristy in S. Fr. The program that best suts
to me is Digital Arts 
Communicationshttp://www.academyart.edu/digital-arts-school/index.html:
Web and Interactive design production, Motion graphic design, photography
and imaging, typography, hand coding HTML, FLash, Actionscripting, PHP and
My SQL server-side scritping(don't like php and mysql to much, but there
always is somehing you don't really like);

Inyone sees something more like this one just say it.

Thanks Brenda Hicks(San Francisco is great, perhaps not greater than NYC but
cool-this are places i'll ally enjoy to study and work in)

On Fri, Feb 22, 2008 at 6:55 PM, Brenda Hicks [EMAIL PROTECTED]
wrote:

 My son is in his third year at the Academy of Art University in San
 Francisco. His major is Illustration.

 http://www.academyart.edu/

 They have a pretty comprehensive graphic design program and help with job
 placement upon graduation. The campus is spread throughout San Francisco.
 What better place to go and learn and also immerse yourself in the
 culture.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Pedro
 Kostelec
 Sent: Friday, February 22, 2008 9:00 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] Graphic design universities

 Thanks guys. I like your choices, specially Cory Petosky's, but i would
 prefer somethink in europe or north america, countries in which people
 speak
 english or french or perhaps spanish (the languages i speak). I believe
 all
 the universitys you recommended to me are great, but the problem is the
 language too. I am not going to learn one more foreign language in 2
 years!!
 And i wonder if they accept the international bachelors degree or not.

 Thanks


 On Wed, Feb 20, 2008 at 5:35 PM, Cory Petosky [EMAIL PROTECTED]
 wrote:

  If you don't mind the cold, a lot of the designers I've met have gone
  to the Minneapolis College of Art and Design (MCAD)
  http://www.mcad.edu/. There are a lot of genuinely talented guys
  there, and their degree programs sound like just what you're looking
  for.
 
  Many good friends (amazing designers/Flash animators) have highly
  recommended the place to me.
 
  On 2/20/08, Sidney de Koning [EMAIL PROTECTED] wrote:
   Check out the SAE (http://www.sae.nl/ speciafically in The
 Netherlands).
   Its an internationally orientated school, specialized in Audio
   engineering, video editing and Flash animation and Actionscripting
   :) For world wide check out: http://www.sae.edu/ . I am a teacher
   here and i can highly recommend it, and its well regarded.
  
   Good luck picking a school,
  
   Sidney
  
Hi list.
   
I have two years to choose in which univerity i'll go when my
school
  studies
finish. I am looking for some graphical design universitys in
which i
  can
apply my knowledge offlash, animation, video and audio modeling.
So,
  mostly
about graphics and motion. I've been googling the web, but i found
so
  many
results that my head went bad,and they mostly all of them had some
  other
studies that i don't like such as ecomony, telecommunication
between
  others.
   
   
So, can someone recommend me some universites you think are good?
   
Thanks
   
Pedro D.K.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
   
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.20.8/1287 - Release Date:
  19-2-2008
10:55
   
   
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.20.8/1287 - Release Date:
  19-2-2008
10:55
   
   
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.20.8/1287 - Release Date:
  19-2-2008
10:55
   
   
___
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
  
 
 
 
  --
  Cory Petosky : Lead Developer : PUNY
  1618 Central Ave NE Suite 130
  Minneapolis, MN 55413
  Office: 612.216.3924
  Mobile: 240.422.9652
  Fax: 612.605.9216
  http://www.punyentertainment.com
   ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 



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

Re: [Flashcoders] re: Looking for Expanding menu along a curved path

2008-02-23 Thread Pedro Kostelec
Isn't there a way to get the source code?

On Fri, Feb 22, 2008 at 7:16 PM, Norman Cousineau [EMAIL PROTECTED]
wrote:


 Very cool. Worth a look for everybody.
 Requires Flash Player 9.

 http://flash-ripper.com/tests/bezier.ru/demo/test.swf


  --  Message: 18 Date: Fri, 22 Feb 2008
 13:09:54 +0300 From: Ivan Dembicki [EMAIL PROTECTED] Subject:
 Re: [Flashcoders] Looking for Expaning menu along a curved path To: Flash
 Coders List flashcoders@chattyfig.figleaf.com Message-ID: 
 [EMAIL PROTECTED]
 Content-Type: text/plain; charset=UTF-8  Hello Norman,  You can see
 example of moving point along curved path here:
 http://flash-ripper.com/tests/bezier.ru/demo/test.swf (6 and 7 example)
  Sourcecode here:
 http://code.google.com/p/bezier/source/checkout  I hope it can help
 you.  --  iv http://www.bezier.ru http://bezier.googlecode.com  
 -- 
 ___ Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders   End of
 Flashcoders Digest, Vol 5, Issue 30
 **
 _

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




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


Re: [Flashcoders] re: Looking for Expanding menu along a curved path

2008-02-23 Thread Pedro Kostelec
I like it. But in exemple 7, is there no way to limit the lenght of the
curve? If you drag one pont quite fast the length of the curse is huge, how
could i limit it, i.e make the mx lenght of the curve 700 pixels or
something like that.

On Sat, Feb 23, 2008 at 4:21 PM, Pedro Kostelec [EMAIL PROTECTED] wrote:

 Isn't there a way to get the source code?

 On Fri, Feb 22, 2008 at 7:16 PM, Norman Cousineau 
 [EMAIL PROTECTED] wrote:

 
  Very cool. Worth a look for everybody.
  Requires Flash Player 9.
 
  http://flash-ripper.com/tests/bezier.ru/demo/test.swf
 
 
   --  Message: 18 Date: Fri, 22 Feb 2008
  13:09:54 +0300 From: Ivan Dembicki [EMAIL PROTECTED]
  Subject: Re: [Flashcoders] Looking for Expaning menu along a curved path
  To: Flash Coders List flashcoders@chattyfig.figleaf.com
  Message-ID: 
  [EMAIL PROTECTED]
  Content-Type: text/plain; charset=UTF-8  Hello Norman,  You can see
  example of moving point along curved path here:
  http://flash-ripper.com/tests/bezier.ru/demo/test.swf (6 and 7
  example)  Sourcecode here:
  http://code.google.com/p/bezier/source/checkout  I hope it can help
  you.  --  iv http://www.bezier.ru http://bezier.googlecode.com  
  -- 
  ___ Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders   End of
  Flashcoders Digest, Vol 5, Issue 30
  **
  _
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 Pedro D.K.




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


Re: [Flashcoders] Graphic design universities

2008-02-22 Thread Pedro Kostelec
Thanks guys. I like your choices, specially Cory Petosky's, but i would
prefer somethink in europe or north america, countries in which people speak
english or french or perhaps spanish (the languages i speak). I believe all
the universitys you recommended to me are great, but the problem is the
language too. I am not going to learn one more foreign language in 2 years!!
And i wonder if they accept the international bachelors degree or not.

Thanks


On Wed, Feb 20, 2008 at 5:35 PM, Cory Petosky [EMAIL PROTECTED]
wrote:

 If you don't mind the cold, a lot of the designers I've met have gone
 to the Minneapolis College of Art and Design (MCAD)
 http://www.mcad.edu/. There are a lot of genuinely talented guys
 there, and their degree programs sound like just what you're looking
 for.

 Many good friends (amazing designers/Flash animators) have highly
 recommended the place to me.

 On 2/20/08, Sidney de Koning [EMAIL PROTECTED] wrote:
  Check out the SAE (http://www.sae.nl/ speciafically in The Netherlands).
  Its an internationally orientated school, specialized in Audio
  engineering, video editing and Flash animation and Actionscripting :)
  For world wide check out: http://www.sae.edu/ . I am a teacher here and
  i can highly recommend it, and its well regarded.
 
  Good luck picking a school,
 
  Sidney
 
   Hi list.
  
   I have two years to choose in which univerity i'll go when my school
 studies
   finish. I am looking for some graphical design universitys in which i
 can
   apply my knowledge offlash, animation, video and audio modeling. So,
 mostly
   about graphics and motion. I've been googling the web, but i found so
 many
   results that my head went bad,and they mostly all of them had some
 other
   studies that i don't like such as ecomony, telecommunication between
 others.
  
  
   So, can someone recommend me some universites you think are good?
  
   Thanks
  
   Pedro D.K.
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  
   --
   No virus found in this incoming message.
   Checked by AVG Free Edition.
   Version: 7.5.516 / Virus Database: 269.20.8/1287 - Release Date:
 19-2-2008
   10:55
  
  
   No virus found in this incoming message.
   Checked by AVG Free Edition.
   Version: 7.5.516 / Virus Database: 269.20.8/1287 - Release Date:
 19-2-2008
   10:55
  
  
   No virus found in this outgoing message.
   Checked by AVG Free Edition.
   Version: 7.5.516 / Virus Database: 269.20.8/1287 - Release Date:
 19-2-2008
   10:55
  
  
   ___
   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
 



 --
 Cory Petosky : Lead Developer : PUNY
 1618 Central Ave NE Suite 130
 Minneapolis, MN 55413
 Office: 612.216.3924
 Mobile: 240.422.9652
 Fax: 612.605.9216
 http://www.punyentertainment.com
  ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





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


[Flashcoders] Graphic design universities

2008-02-19 Thread Pedro Kostelec
Hi list.

I have two years to choose in which univerity i'll go when my school studies
finish. I am looking for some graphical design universitys in which i can
apply my knowledge offlash, animation, video and audio modeling. So, mostly
about graphics and motion. I've been googling the web, but i found so many
results that my head went bad,and they mostly all of them had some other
studies that i don't like such as ecomony, telecommunication between others.


So, can someone recommend me some universites you think are good?

Thanks

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


Re: [Flashcoders] Control speed by how fast mouse moving

2008-02-13 Thread Pedro Kostelec
Well, two transparent sprite are too little. You should create some 20 or
even more of them. Position the vertically all over the stage at equal
distances and every time the user passes his mouse over one of them it
starts a timer. When it passes over the next it checks the timer time. So
you'll have the distance between the 2 sprites/movie clips (because you have
to position them at equal distances over the stage) and the time needed to
reach one from the other. From this you can easily calculate the speed.
I tried to draw it. Hope you'll see it all right:
You have the movie clips (the horizontal lines) created and positioned to
stage with a loop. You set an onMouseOver function. Then it starts a timer(i
don't know how to do it-i only just started with as3) when the mouse goes
over one of those MCs. When it goes over the next you check the time it took
to move from one to the other and you calculate the speed(If the stage is
600 i think a mc every 20 or 30 pixels should do it for the distance between
the mcs-don't put too much of them or i would use too much cpu and i am not
sure if it would be able to check the time with 31 fms-)speed =
distance/time;
And you 'v got the speed.
you make a var speed:Number=0;
and the in an enter_frame event you check the speed of the mouse between 2
mcs, multiply it with a fraction of 1 so the acceleration is not too big and

speed += speedBetweenMcs;

___
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
|   |   |   |   |   |
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
|   |   |   |   |   |
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
|   |   |   |   |   |
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
|   |   |   |   |   |
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
|   |   |   |   |   |
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
|   |   |   |   |   |
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
|   |   |   |   |   |
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
|   |   |   |   |   |
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
|   |   |   |   |   |
___


On Feb 13, 2008 8:04 AM, Paul Steven [EMAIL PROTECTED] wrote:

 Thanks Cory

 Good point about the setInterval introducing redundant processing.Problem
 with placing an invisible movie clip is, the users mouse may not pass over
 this movie clip. For example, the movie is 600 pixels wide and 400 pixels
 high. If I place a 400 high and say 10 pixels wide movie clip in the
 center
 of the movie, it is still possible for the player to move their mouse left
 and right in the area to the left or the area to the right of the hidden
 movie clip - hence no speed would be detected. I am therefore not sure how
 to overcome this apart from insisting they move the mouse in a specified
 area.

 Any ideas anyone?



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Cory
 Petosky
 Sent: 12 February 2008 21:52
 To: Flash Coders List
 Cc: [EMAIL PROTECTED]
 Subject: Re: [Flashcoders] Control speed by how fast mouse moving

 You'd be better off doing it in an onEnterFrame or a onMouseMove than
 in a setInterval call -- code is only executed between frames anyway,
 so your way just adds extra processing burden.

 Since all these events are only working once per frame, just comparing
 x's isn't likely to give you meaningful data -- if a player moves his
 mouse rapidly left to right at a rate that's some factor of your
 framerate, you could easily get the same (or similar) x value at every
 read. Increasing the framerate could help this, but brings other
 problems.

 Consider placing a small, invisible movieclip on the path you intend
 the user to move his mouse, and listen for onRollOver. You can use the
 number of RollOver events per second to adjust speed. Just keep in
 mind that you won't get any more events than your framerate.

 Finally, instead of adjusting speed directly, adjust max speed and
 provide a constant acceleration toward the current max speed. For
 example, if the user starts out at a rate that correlates to 50 mph,
 his current speed should slowly increase at a constant rate over many
 seconds until it reaches 50. Similarly, once the user begins to slow
 down, the speed should decrease linearly to the maximum speed allowed
 by the mouse move rate. This provides a slow acceleration at the
 beginning -- which is probably what you want if you're emulating the
 old button mashers -- and provides smooth speed changes as the game
 progresses, which is definitely good.

 On 2/12/08, Paul Steven [EMAIL PROTECTED] wrote:
  I am trying to program a game where a character moves faster, the faster
 the
  player moved the mouse left and right. A 

Re: [Flashcoders] Max MovieClip Size Before Filters are Dropped?

2008-02-07 Thread Pedro Kostelec
isn't there a way to maximise this limitation?

On Feb 7, 2008 8:28 PM, Zeh Fernando [EMAIL PROTECTED] wrote:

 2880 pixels on any dimension. It's mentioned somewhere in the
 documentation.

 Mark Hawley wrote:
  Anyone know the maximum size, in pixels, a MovieClip can be before Flash
  refuses to apply filters to it? It seems to be dependent on the filter
  parameters, making me think there's a max size on the rendered clip.
  ___
  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




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


Re: [Flashcoders] This list is acting up again?

2008-02-06 Thread Pedro Kostelec
It happens to me to. I post a question and it is posted only some hours
later, and even more, always when i start a question, so that i am not only
replying i get some stupid kind of errors. here they are( a copy of a
rejected mail)

The results of your email command are provided below. Attached is your
original message.

- Results:
   Ignoring non-text/plain MIME parts

- Unprocessed:
   //my message

- Done.



-- Forwarded message --
From: Pedro Kostelec [EMAIL PROTECTED]
To: [EMAIL PROTECTED] 
[EMAIL PROTECTED]
Date: Tue, 5 Feb 2008 17:57:34 +0100
Subject:
//my message

On Feb 6, 2008 5:05 PM, Dave Watts [EMAIL PROTECTED] wrote:

 I posted this about ten minutes ago. So, I don't think there's a problem
 with the list. You may have mail routing problems elsewhere, however.

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/

 Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
 http://training.figleaf.com/

 WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
 http://www.webmaniacsconference.com/

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf
  Of Dave Watts
  Sent: Wednesday, February 06, 2008 10:51
  To: Flash Coders List
  Subject: RE: [Flashcoders] This list is acting up again?
 
   Something up with this list again? The reply below took 13 and 1/2
   hours to post, and when it did, the timestamp of when it was
   supposedly sent was off by 8 hours.  He asked the question
   at 8:22am (at least according to the timestamp), and I replied
   immediately around 8:30am but it didn't post until 10pm Eastern.
 
  Well, let's see.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


[Flashcoders] fullscreen

2008-02-05 Thread Pedro Kostelec
Hi list

Does enyone know how to make this fullscreen function like this one here:
http://bb.amctv.com/main.html  ?
(Press the fullscreen button on the bottom right)Looks the same think like
in youtube.


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


Re: [Flashcoders] Resizing a background image only.And keeping aspect ratio.

2008-02-03 Thread Pedro Kostelec
Perhaps sth like this would work:
original_picture_width=550;
original_picture_height=400;

picture_mc.width=stage.stageWidth;
picture_mc.height=(stage.stageWidth /
original_picture_width)*original_picture_height;

I am not sure it is completely as3, becasue i just started learning it, so
you perhaps should mdify it a bit.
WIth this i think you should keep the aspect ratio


On Feb 3, 2008 4:12 AM, Vlado Krempl [EMAIL PROTECTED] wrote:

 Hello everyone,


 Question:  (Using actionscript 3)

 How to scale just the background image (photograph) fullscreen in the
 browser but still keep it's aspect ratio.
 All the solutions on the internet seem to still be in Actionscript 2.  I'm
 using the code below -

  
 -

 stage.addEventListener(Event.RESIZE, onStageResize);

  function onStageResize(event:Event):void {

 picture_mc = 

  }

 --

 I've tried stage.stagewidth and scaleX = stage.width; but they all distort
 the image when resized.

 Anyone have a clue?

 Thanks.



 Vlado

 Please consider the environment before printing this e-mail.
 The contents of this message should be treated as COMMERCIAL IN CONFIDENCE
 unless otherwise specified in the message
 and is intended solely for the use of the individual or entity to whom it
 is addressed.
 If you have received this email in error please notify the sender. If you
 are not the named addressee you should not disseminate, distribute or copy
 this e-mail.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


Re: [Flashcoders] Resizing a background image only.And keeping aspect ratio.

2008-02-03 Thread Pedro Kostelec
Oh,
It is picture_mc.scaleX and not picture_mc.width
and
picture_mc.scaleY instead of picture_mc.height

At least i supose

On Feb 3, 2008 12:29 PM, Pedro Kostelec [EMAIL PROTECTED] wrote:

 Perhaps sth like this would work:
 original_picture_width=550;
 original_picture_height=400;

 picture_mc.width=stage.stageWidth;
 picture_mc.height=(stage.stageWidth /
 original_picture_width)*original_picture_height;

 I am not sure it is completely as3, becasue i just started learning it, so
 you perhaps should mdify it a bit.
 WIth this i think you should keep the aspect ratio


 On Feb 3, 2008 4:12 AM, Vlado Krempl [EMAIL PROTECTED] wrote:

  Hello everyone,
 
 
  Question:  (Using actionscript 3)
 
  How to scale just the background image (photograph) fullscreen in the
  browser but still keep it's aspect ratio.
  All the solutions on the internet seem to still be in Actionscript 2.
   I'm using the code below -
 
   
  -
 
  stage.addEventListener(Event.RESIZE, onStageResize);
 
   function onStageResize(event:Event):void {
 
  picture_mc = 
 
   }
 
  --
 
  I've tried stage.stagewidth and scaleX = stage.width; but they all
  distort the image when resized.
 
  Anyone have a clue?
 
  Thanks.
 
 
 
  Vlado
 
  Please consider the environment before printing this e-mail.
  The contents of this message should be treated as COMMERCIAL IN
  CONFIDENCE unless otherwise specified in the message
  and is intended solely for the use of the individual or entity to whom
  it is addressed.
  If you have received this email in error please notify the sender. If
  you are not the named addressee you should not disseminate, distribute or
  copy this e-mail.
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 Pedro D.K.




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


Re: [Flashcoders] Resizing a background image only.And keeping aspectratio.

2008-02-03 Thread Pedro Kostelec
You mean you want to update it all the time(the image size)?

Try sth like this:




private function init():void {

stage.addEventListener(Event.ENTER_FRAME,onEnterFrame);
}
private function onEnterFrame(event:Event):void {
var picRatio:Number=picture_mc.width / picture_mc.height; //i
took kenneths code!!
var stageRatio:Number=stage.stageWidth / stage.stageHeight;
if (picRatio  stageRatio) {
picture_mc.width=stage.stageWidth;
picture_mc.height=picture_mc.width / picRatio;
} else {
picture_mc.height=stage.stageHeight;
picture_mc.width=picture_mc.height * picRatio;
}

}


On Feb 3, 2008 2:11 PM, Vlado Krempl [EMAIL PROTECTED] wrote:

 Kenneth,

 Works fantastic. Thanks.
 One problem though, in the browser ( IE ) the image shows up small and
 only
 resizes when you adjust the browser.
 Is it possible to have the image in the browser and have the image
 touching
 the sides at all times.
 Here is a great example site.

 http://www.zinkmag.com

 Cheers,

 vlado


 - Original Message -
 From: Kenneth Kawamoto [EMAIL PROTECTED]
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Sunday, February 03, 2008 11:03 PM
 Subject: Re: [Flashcoders] Resizing a background image only.And keeping
 aspectratio.


  It could be cleaner, but here we go:
 
  private function onStageResize(e:Event):void {
var picRatio:Number = picture_mc.width/picture_mc.height;
var stageRatio:Number = stage.stageWidth/stage.stageHeight;
if(picRatio  stageRatio){
   picture_mc.width = stage.stageWidth;
   picture_mc.height = picture_mc.width/picRatio;
} else {
   picture_mc.height = stage.stageHeight;
   picture_mc.width = picture_mc.height*picRatio;
}
  }
 
  Kenneth Kawamoto
  http://www.materiaprima.co.uk/
 
  Vlado Krempl wrote:
  Hello everyone,
 
 
  Question:  (Using actionscript 3)
  How to scale just the background image (photograph) fullscreen in the
  browser but still keep it's aspect ratio.
  All the solutions on the internet seem to still be in Actionscript 2.
  I'm using the code below -
 
  
 -
 
  stage.addEventListener(Event.RESIZE, onStageResize);
   function onStageResize(event:Event):void {
 
  picture_mc =  }
 
 --
 
  I've tried stage.stagewidth and scaleX = stage.width; but they all
  distort the image when resized.
 
  Anyone have a clue?
 
  Thanks.
 
 
 
  Vlado
 
 
  ___
  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




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


Re: [Flashcoders] placing mc on the stage

2008-01-17 Thread Pedro Kostelec
thanks jim. I changed code2 to code0 but it still doesn't work. There is
only one MC visible on the stage, whichi anasily place where i want. but
where is the other??

On 16/01/2008, Jim Robson [EMAIL PROTECTED] wrote:

 Pedro,

 Your loop goes from 0 to 1, and you are constructing the names of your
 movie
 clips as code+I; therefore, your movie clip names are code0 and
 code1.
 There is no such clip as code2.

 -Jim

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Pedro
 Kostelec
 Sent: Wednesday, January 16, 2008 7:21 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] placing mc on the stage

 Thanks for the reply. but it still doesn't work for me. I can only see
 code1
 moving randomly overthe stage, but thereis no sign of code2 movie clip.
 Here is a bigger peace of the code:

 this.createEmptyMovieClip(canvas,this.getNextHighestDepth());//creates
 an
 empty MC in which i attach 2 textMCs


 mouseInterval = setInterval(cahngeAlpha, 1);//set interval for bg and
 hello
 world reload
 attachMovieInterval = setInterval(attachMovies, 200);//set interval for
 green text mc reload

 function attachMovies() {
 for (var i = 0; i2; i++) {
 canvas.attachMovie(code,code+i,this.getNextHighestDepth());
 canvas.code1._x = random500;
 canvas.code1._y = random100;
 canvas.code2._x = Stage.width/2;
 canvas.code2._y = Stage.height/2;
 }
 }



 function cahngeAlpha() {
 a._alpha = (Math.round(_root._xmouse/550*100));
 a._xscale = (Math.round(_root._xmouse+250)-1)/0.9998;
 a._yscale = (Math.floor(_root._xmouse/550*20+100));
 black._alpha = Math.round((550-(_root._xmouse))/550*100);
 white._alpha = Math.round(_root._xmouse/550*100);
 random500 = Math.random()*100;
 random100 = Math.random()*100;
 updateAfterEvent();
 }

 attachMovies();//ou said ihave to put this. but for the other
 function(cahngeAlpha) i didnt and it works perfectly!!

 have i done a mistake?

 On 16/01/2008, Bob Leisle [EMAIL PROTECTED] wrote:
 
  Hi Pedro,
 
  A couple of things:
  Are you trying to place the MovieClips once in random places, or make
  them move to random places? Your code suggests one-time placement. What
  you say below suggests movement on the stage.
  Also, have you checked your random calculations? If you divide (/)
  Math.random, you will always get a number less than 1. Math.random()
  returns a number between 0 and 1 which can then be multiplied to get
  numbers usable for the stage coordinates.
 
  If you are trying to place the clips one time on attachment, here is a
  function, based on the code you sent, that works:
  random100=Math.random()*100;
  random500=Math.random()*500;
  // Assumes you've already created the MovieClip, canvas.
  function attachMovies() {
  for (var i = 0; i2; i++) {
  canvas.attachMovie(code,code+i,this.getNextHighestDepth());
  }
  canvas.code1._x = random500;
  canvas.code1._y = random100;
  canvas.code2._x = Stage.width/2;
  canvas.code2._y = Stage.height /2;
  }
  attachMovies();
 
  This will place code1 at the some random point between (0,0) and (500,
  100), and place code2 at center stage, offset by it's own registration
  point
 
  hth,
  Bob.
 
  Pedro Kostelec wrote:
   sorry. I forgot to copy this.
  
   random100=Math.random()/100;
   random500=Math.random()/500;
   - how do i do to define the x and y position of each mc separately?
  
   I don't get it.. what do you want to do here?
  
   what i want is to make one ofthose mcs moveup and downand the other
   right-left. Theproblem is tht i just can not do it
  
  function attachMovies() {
   for (var i = 0; i2; i++) {//iwantto place each of those mc-s into
 a
   different placeon the stage. I am not sure this is the right way.
   canvas.attachMovie (code,code+i,this.getNextHighestDepth
 ());
   //didn't it created on mc named code1 and another code2
   canvas.code1._x = random500;//i triyed something like
   canvas.code1._x=500; instead of this  but it didn't work. what i am
  doing
   wrong??
   canvas.code1._y = random100;
   canvas.code2._x = Stage.width/2;
   canvas.code2._x = Stage.height /2;
   }
   }On 16/01/2008, Leandro Ferreira [EMAIL PROTECTED] wrote:
  
   You could also use random(500), but is deprecated -
  
 

 http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/ac
 tionscript_dictionary630.html
  
  
  
  
   - how do i do to define the x and y position of each mc separately?
  
   I don't get it.. what do you want to do here?
  
  
  Leandro Ferreira
  
   On 1/16/08, Bob Leisle  [EMAIL PROTECTED] wrote:
  
   Hi Pedro,
  
   Try this instead:
  
   Math.random()*500;
  
   Here's a simplistic but clear tutorial on the subject:
  
  http://animation.about.com/od/flashanimationtutorials/ss/mathrandom.htm
  
   hth,
   Bob
  
   Pedro Kostelec wrote:
  
   Hello
   i got this code:
  
   this.createEmptyMovieClip(canvas,this.getNextHighestDepth

Re: [Flashcoders] placing mc on the stage

2008-01-17 Thread Pedro Kostelec
i doesn't work. I am reposting the code in case youcan find a bug in it:
this.createEmptyMovieClip(canvas,canvas.getNextHighestDepth());


mouseInterval = setInterval(cahngeAlpha, 1);//set interval for bg and hello
world reload
attachMovieInterval = setInterval(attachMovies, 300);//set interval for
green text mc reload
attachMovies();
function attachMovies() {
for (var i = 0; i2; i++) {
canvas.attachMovie(code,code+i,this.getNextHighestDepth());
canvas.code0._x = 500;//this one doesn't work at all,iijust cannot  see the
mc
canvas.code0._y = 100;//this one  does not work at all
canvas.code1._x = Stage.width/2;//this one  works fine
canvas.code1._y = Stage.height/2;//this one  works fine
}
}

attachMovies();
function cahngeAlpha() {
a._alpha = (Math.round(_root._xmouse/550*100));
a._xscale = (Math.round(_root._xmouse+250)-1)/0.9998;
a._yscale = (Math.floor(_root._xmouse/550*20+100));
black._alpha = Math.round((550-(_root._xmouse))/550*100);
white._alpha = Math.round(_root._xmouse/550*100);
updateAfterEvent();
}



On 17/01/2008, Matt S. [EMAIL PROTECTED] wrote:

 It might be a problem that you're saying:

 canvas.attachMovie (code,code+i,this.getNextHighestDepth());

 if you're attaching them to 'canvas', you want to say
 canvas.getNextHighestDepth()

 .m

 On Jan 17, 2008 1:36 PM, Pedro Kostelec [EMAIL PROTECTED] wrote:
  thanks jim. I changed code2 to code0 but it still doesn't work. There is
  only one MC visible on the stage, whichi anasily place where i want. but
  where is the other??
 
 
  On 16/01/2008, Jim Robson [EMAIL PROTECTED] wrote:
  
   Pedro,
  
   Your loop goes from 0 to 1, and you are constructing the names of your
   movie
   clips as code+I; therefore, your movie clip names are code0 and
   code1.
   There is no such clip as code2.
  
   -Jim
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of Pedro
   Kostelec
   Sent: Wednesday, January 16, 2008 7:21 PM
   To: Flash Coders List
   Subject: Re: [Flashcoders] placing mc on the stage
  
   Thanks for the reply. but it still doesn't work for me. I can only see
   code1
   moving randomly overthe stage, but thereis no sign of code2 movie
 clip.
   Here is a bigger peace of the code:
  
   this.createEmptyMovieClip(canvas,this.getNextHighestDepth
 ());//creates
   an
   empty MC in which i attach 2 textMCs
  
  
   mouseInterval = setInterval(cahngeAlpha, 1);//set interval for bg and
   hello
   world reload
   attachMovieInterval = setInterval(attachMovies, 200);//set interval
 for
   green text mc reload
  
   function attachMovies() {
   for (var i = 0; i2; i++) {
   canvas.attachMovie(code,code+i,this.getNextHighestDepth());
   canvas.code1._x = random500;
   canvas.code1._y = random100;
   canvas.code2._x = Stage.width/2;
   canvas.code2._y = Stage.height/2;
   }
   }
  
  
  
   function cahngeAlpha() {
   a._alpha = (Math.round(_root._xmouse/550*100));
   a._xscale = (Math.round(_root._xmouse+250)-1)/0.9998;
   a._yscale = (Math.floor(_root._xmouse/550*20+100));
   black._alpha = Math.round((550-(_root._xmouse))/550*100);
   white._alpha = Math.round(_root._xmouse/550*100);
   random500 = Math.random()*100;
   random100 = Math.random()*100;
   updateAfterEvent();
   }
  
   attachMovies();//ou said ihave to put this. but for the other
   function(cahngeAlpha) i didnt and it works perfectly!!
  
   have i done a mistake?
  
   On 16/01/2008, Bob Leisle [EMAIL PROTECTED] wrote:
   
Hi Pedro,
   
A couple of things:
Are you trying to place the MovieClips once in random places, or
 make
them move to random places? Your code suggests one-time placement.
 What
you say below suggests movement on the stage.
Also, have you checked your random calculations? If you divide (/)
Math.random, you will always get a number less than 1. Math.random()
returns a number between 0 and 1 which can then be multiplied to get
numbers usable for the stage coordinates.
   
If you are trying to place the clips one time on attachment, here is
 a
function, based on the code you sent, that works:
random100=Math.random()*100;
random500=Math.random()*500;
// Assumes you've already created the MovieClip, canvas.
function attachMovies() {
for (var i = 0; i2; i++) {
canvas.attachMovie(code,code+i,this.getNextHighestDepth
 ());
}
canvas.code1._x = random500;
canvas.code1._y = random100;
canvas.code2._x = Stage.width/2;
canvas.code2._y = Stage.height /2;
}
attachMovies();
   
This will place code1 at the some random point between (0,0) and
 (500,
100), and place code2 at center stage, offset by it's own
 registration
point
   
hth,
Bob.
   
Pedro Kostelec wrote:
 sorry. I forgot to copy this.

 random100=Math.random()/100;
 random500=Math.random()/500;
 - how do i do to define the x and y position of each

Re: [Flashcoders] placing mc on the stage

2008-01-17 Thread Pedro Kostelec
i have  uploaded  the files  here:
http://public.box.net/pedrokost56903.  You  can download the  sda.fla and
sda.swf  to  find out  whats wrong.  They are made on flash CS3. I hope you
can  all  open it.  If  there is someone that would like  the fla file of
flash 8 just tell

Pedro

On 17/01/2008, Pedro Kostelec [EMAIL PROTECTED] wrote:

 i doesn't work. I am reposting the code in case youcan find a bug in it:
 this.createEmptyMovieClip(canvas,canvas.getNextHighestDepth());


 mouseInterval = setInterval(cahngeAlpha, 1);//set interval for bg and
 hello world reload
 attachMovieInterval = setInterval(attachMovies, 300);//set interval for
 green text mc reload
 attachMovies();
 function attachMovies() {
 for (var i = 0; i2; i++) {
 canvas.attachMovie(code,code+i,this.getNextHighestDepth());
 canvas.code0._x = 500;//this one doesn't work at all,iijust cannot  see
 the mc
 canvas.code0._y = 100;//this one  does not work at all
 canvas.code1._x = Stage.width /2;//this one  works fine
 canvas.code1._y = Stage.height/2;//this one  works fine
  }
 }

 attachMovies();
 function cahngeAlpha() {
 a._alpha = (Math.round(_root._xmouse/550*100));
 a._xscale = (Math.round(_root._xmouse+250)-1)/0.9998;
 a._yscale = (Math.floor(_root._xmouse/550*20+100));
 black._alpha = Math.round((550-(_root._xmouse))/550*100);
 white._alpha = Math.round (_root._xmouse/550*100);
 updateAfterEvent();
 }

 

 On 17/01/2008, Matt S. [EMAIL PROTECTED] wrote:
 
  It might be a problem that you're saying:
 
  canvas.attachMovie (code,code+i,this.getNextHighestDepth());
 
  if you're attaching them to 'canvas', you want to say
  canvas.getNextHighestDepth ()
 
  .m
 
  On Jan 17, 2008 1:36 PM, Pedro Kostelec [EMAIL PROTECTED] wrote:
   thanks jim. I changed code2 to code0 but it still doesn't work. There
  is
   only one MC visible on the stage, whichi anasily place where i want.
  but
   where is the other??
  
  
   On 16/01/2008, Jim Robson [EMAIL PROTECTED]  wrote:
   
Pedro,
   
Your loop goes from 0 to 1, and you are constructing the names of
  your
movie
clips as code+I; therefore, your movie clip names are code0 and
code1.
There is no such clip as code2.
   
-Jim
   
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
  Pedro
Kostelec
Sent: Wednesday, January 16, 2008 7:21 PM
To: Flash Coders List
Subject: Re: [Flashcoders] placing mc on the stage
   
Thanks for the reply. but it still doesn't work for me. I can only
  see
code1
moving randomly overthe stage, but thereis no sign of code2 movie
  clip.
Here is a bigger peace of the code:
   
this.createEmptyMovieClip(canvas,this.getNextHighestDepth());//creates
an
empty MC in which i attach 2 textMCs
   
   
mouseInterval = setInterval(cahngeAlpha, 1);//set interval for bg
  and
hello
world reload
attachMovieInterval = setInterval(attachMovies, 200);//set interval
  for
green text mc reload
   
function attachMovies() {
for (var i = 0; i2; i++) {
canvas.attachMovie(code,code+i,this.getNextHighestDepth());
canvas.code1._x = random500;
canvas.code1._y = random100;
canvas.code2._x = Stage.width/2;
canvas.code2._y = Stage.height/2;
}
}
   
   
   
function cahngeAlpha() {
a._alpha = (Math.round(_root._xmouse/550*100));
a._xscale = ( Math.round(_root._xmouse+250)-1)/0.9998;
a._yscale = (Math.floor(_root._xmouse/550*20+100));
black._alpha = Math.round((550-(_root._xmouse))/550*100);
white._alpha = Math.round(_root._xmouse/550*100);
random500 = Math.random()*100;
random100 = Math.random()*100;
updateAfterEvent();
}
   
attachMovies();//ou said ihave to put this. but for the other
function(cahngeAlpha) i didnt and it works perfectly!!
   
have i done a mistake?
   
On 16/01/2008, Bob Leisle [EMAIL PROTECTED]  wrote:

 Hi Pedro,

 A couple of things:
 Are you trying to place the MovieClips once in random places, or
  make
 them move to random places? Your code suggests one-time placement.
  What
 you say below suggests movement on the stage.
 Also, have you checked your random calculations? If you divide (/)
 Math.random, you will always get a number less than 1. Math.random
  ()
 returns a number between 0 and 1 which can then be multiplied to
  get
 numbers usable for the stage coordinates.

 If you are trying to place the clips one time on attachment, here
  is a
 function, based on the code you sent, that works:
 random100=Math.random()*100;
 random500=Math.random()*500;
 // Assumes you've already created the MovieClip, canvas.
 function attachMovies() {
 for (var i = 0; i2; i++) {
 canvas.attachMovie(code,code+i,
  this.getNextHighestDepth());
 }
 canvas.code1._x = random500;
 canvas.code1._y

Re: [Flashcoders] placing mc on the stage

2008-01-17 Thread Pedro Kostelec
Thank you very much matt s. I am so stupid. You've alredy told that some
posts ago but i didn't get it right.
Perhaps there will be a new question about the same project soon. There was
sth i wanted to do but right now i forgot what. I have to see the data.
Pedro K.

On 17/01/2008, Matt S. [EMAIL PROTECTED] wrote:

 HERE:

 this.createEmptyMovieClip(canvas,canvas.getNextHighestDepth());

 Should be:

 this.createEmptyMovieClip(canvas,this.getNextHighestDepth());


 But HERE:

 canvas.attachMovie(code,code+i,this.getNextHighestDepth());

 Should be:

 canvas.attachMovie(code,code+i,canvas.getNextHighestDepth());

 .m

 On Jan 17, 2008 3:11 PM, Pedro Kostelec [EMAIL PROTECTED] wrote:
  i doesn't work. I am reposting the code in case youcan find a bug in it:
  this.createEmptyMovieClip(canvas,canvas.getNextHighestDepth());
 
 
  mouseInterval = setInterval(cahngeAlpha, 1);//set interval for bg and
 hello
  world reload
  attachMovieInterval = setInterval(attachMovies, 300);//set interval for
  green text mc reload
  attachMovies();
  function attachMovies() {
  for (var i = 0; i2; i++) {
  canvas.attachMovie(code,code+i,this.getNextHighestDepth());
  canvas.code0._x = 500;//this one doesn't work at all,iijust cannot  see
 the
  mc
  canvas.code0._y = 100;//this one  does not work at all
  canvas.code1._x = Stage.width/2;//this one  works fine
  canvas.code1._y = Stage.height/2;//this one  works fine
  }
  }
 
  attachMovies();
  function cahngeAlpha() {
  a._alpha = (Math.round(_root._xmouse/550*100));
  a._xscale = (Math.round(_root._xmouse+250)-1)/0.9998;
  a._yscale = (Math.floor(_root._xmouse/550*20+100));
  black._alpha = Math.round((550-(_root._xmouse))/550*100);
  white._alpha = Math.round(_root._xmouse/550*100);
  updateAfterEvent();
  }
 
  
 
 
  On 17/01/2008, Matt S. [EMAIL PROTECTED] wrote:
  
   It might be a problem that you're saying:
  
   canvas.attachMovie (code,code+i,this.getNextHighestDepth());
  
   if you're attaching them to 'canvas', you want to say
   canvas.getNextHighestDepth()
  
   .m
  
   On Jan 17, 2008 1:36 PM, Pedro Kostelec [EMAIL PROTECTED] wrote:
thanks jim. I changed code2 to code0 but it still doesn't work.
 There is
only one MC visible on the stage, whichi anasily place where i want.
 but
where is the other??
   
   
On 16/01/2008, Jim Robson [EMAIL PROTECTED] wrote:

 Pedro,

 Your loop goes from 0 to 1, and you are constructing the names of
 your
 movie
 clips as code+I; therefore, your movie clip names are code0
 and
 code1.
 There is no such clip as code2.

 -Jim

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
 Pedro
 Kostelec
 Sent: Wednesday, January 16, 2008 7:21 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] placing mc on the stage

 Thanks for the reply. but it still doesn't work for me. I can only
 see
 code1
 moving randomly overthe stage, but thereis no sign of code2 movie
   clip.
 Here is a bigger peace of the code:

 this.createEmptyMovieClip(canvas,this.getNextHighestDepth
   ());//creates
 an
 empty MC in which i attach 2 textMCs


 mouseInterval = setInterval(cahngeAlpha, 1);//set interval for bg
 and
 hello
 world reload
 attachMovieInterval = setInterval(attachMovies, 200);//set
 interval
   for
 green text mc reload

 function attachMovies() {
 for (var i = 0; i2; i++) {
 canvas.attachMovie(code,code+i,this.getNextHighestDepth());
 canvas.code1._x = random500;
 canvas.code1._y = random100;
 canvas.code2._x = Stage.width/2;
 canvas.code2._y = Stage.height/2;
 }
 }



 function cahngeAlpha() {
 a._alpha = (Math.round(_root._xmouse/550*100));
 a._xscale = (Math.round(_root._xmouse+250)-1)/0.9998;
 a._yscale = (Math.floor(_root._xmouse/550*20+100));
 black._alpha = Math.round((550-(_root._xmouse))/550*100);
 white._alpha = Math.round(_root._xmouse/550*100);
 random500 = Math.random()*100;
 random100 = Math.random()*100;
 updateAfterEvent();
 }

 attachMovies();//ou said ihave to put this. but for the other
 function(cahngeAlpha) i didnt and it works perfectly!!

 have i done a mistake?

 On 16/01/2008, Bob Leisle [EMAIL PROTECTED] wrote:
 
  Hi Pedro,
 
  A couple of things:
  Are you trying to place the MovieClips once in random places, or
   make
  them move to random places? Your code suggests one-time
 placement.
   What
  you say below suggests movement on the stage.
  Also, have you checked your random calculations? If you divide
 (/)
  Math.random, you will always get a number less than 1.
 Math.random()
  returns a number between 0 and 1 which can then be multiplied to
 get
  numbers usable for the stage coordinates

[Flashcoders] placing mc on the stage

2008-01-16 Thread Pedro Kostelec
Hello
i got this code:

this.createEmptyMovieClip(canvas,this.getNextHighestDepth()); //creates an
empty MC in which i attach 2 textMCs
canvas._x = random500;//should place the MCs to a random position when they
load but it doesn't work?!?-What is wrong here?
canvas._y = random100;

attachMovieInterval = setInterval(attachMovies, 200);//set interval for
green mc reload

function attachMovies() {
for (var i = 0; i2; i++) {
canvas.attachMovie(code,code+i,this.getNextHighestDepth());
canvas.code1._x = random500;
canvas.code1._y = random100;
canvas.code2._x = Stage.width/2;
canvas.code2._x = Stage.height/2;//how do i do to define the x and y
position of each mc separately?
}
}

sorry for writing it so briefly. My keyboard doesn't work well and i cannot
type a lot
-

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


Re: [Flashcoders] placing mc on the stage

2008-01-16 Thread Pedro Kostelec
sorry. I forgot to copy this.

random100=Math.random()/100;
random500=Math.random()/500;
- how do i do to define the x and y position of each mc separately?

I don't get it.. what do you want to do here?

what i want is to make one ofthose mcs moveup and downand the other
right-left. Theproblem is tht i just can not do it

   function attachMovies() {
for (var i = 0; i2; i++) {//iwantto place each of those mc-s into a
different placeon the stage. I am not sure this is the right way.
canvas.attachMovie (code,code+i,this.getNextHighestDepth());
//didn't it created on mc named code1 and another code2
canvas.code1._x = random500;//i triyed something like
canvas.code1._x=500; instead of this  but it didn't work. what i am doing
wrong??
canvas.code1._y = random100;
canvas.code2._x = Stage.width/2;
canvas.code2._x = Stage.height /2;
}
}On 16/01/2008, Leandro Ferreira [EMAIL PROTECTED] wrote:

 You could also use random(500), but is deprecated -
 http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary630.html




 - how do i do to define the x and y position of each mc separately?

 I don't get it.. what do you want to do here?


Leandro Ferreira

 On 1/16/08, Bob Leisle  [EMAIL PROTECTED] wrote:
 
  Hi Pedro,
 
  Try this instead:
 
  Math.random()*500;
 
  Here's a simplistic but clear tutorial on the subject:
  http://animation.about.com/od/flashanimationtutorials/ss/mathrandom.htm
 
  hth,
  Bob
 
  Pedro Kostelec wrote:
   Hello
   i got this code:
  
   this.createEmptyMovieClip(canvas,this.getNextHighestDepth());
  //creates an
   empty MC in which i attach 2 textMCs
   canvas._x = random500;//should place the MCs to a random position when

  they
   load but it doesn't work?!?-What is wrong
  here?
   canvas._y = random100;
  
   attachMovieInterval = setInterval(attachMovies, 200);//set interval
 for
   green mc reload
  
   function attachMovies() {
   for (var i = 0; i2; i++) {
   canvas.attachMovie(code,code+i,this.getNextHighestDepth());
   canvas.code1._x = random500;
   canvas.code1._y = random100;
   canvas.code2._x = Stage.width/2;
   canvas.code2._x = Stage.height/2;//how do i do to define the x

  and y
   position of each mc separately?
   }
   }
  
   sorry for writing it so briefly. My keyboard doesn't work well and i
  cannot
   type a lot
   -
  
  
 
  --
  Thanks,
  ~
  Bob Leisle
  Headsprout Software  Engineering
  http://www.headsprout.com
  Where kids learn to read!
 
  ___
  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




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


Re: [Flashcoders] placing mc on the stage

2008-01-16 Thread Pedro Kostelec
Thanks for the reply. but it still doesn't work for me. I can only see code1
moving randomly overthe stage, but thereis no sign of code2 movie clip.
Here is a bigger peace of the code:

this.createEmptyMovieClip(canvas,this.getNextHighestDepth());//creates an
empty MC in which i attach 2 textMCs


mouseInterval = setInterval(cahngeAlpha, 1);//set interval for bg and hello
world reload
attachMovieInterval = setInterval(attachMovies, 200);//set interval for
green text mc reload

function attachMovies() {
for (var i = 0; i2; i++) {
canvas.attachMovie(code,code+i,this.getNextHighestDepth());
canvas.code1._x = random500;
canvas.code1._y = random100;
canvas.code2._x = Stage.width/2;
canvas.code2._y = Stage.height/2;
}
}



function cahngeAlpha() {
a._alpha = (Math.round(_root._xmouse/550*100));
a._xscale = (Math.round(_root._xmouse+250)-1)/0.9998;
a._yscale = (Math.floor(_root._xmouse/550*20+100));
black._alpha = Math.round((550-(_root._xmouse))/550*100);
white._alpha = Math.round(_root._xmouse/550*100);
random500 = Math.random()*100;
random100 = Math.random()*100;
updateAfterEvent();
}

attachMovies();//ou said ihave to put this. but for the other
function(cahngeAlpha) i didnt and it works perfectly!!

have i done a mistake?

On 16/01/2008, Bob Leisle [EMAIL PROTECTED] wrote:

 Hi Pedro,

 A couple of things:
 Are you trying to place the MovieClips once in random places, or make
 them move to random places? Your code suggests one-time placement. What
 you say below suggests movement on the stage.
 Also, have you checked your random calculations? If you divide (/)
 Math.random, you will always get a number less than 1. Math.random()
 returns a number between 0 and 1 which can then be multiplied to get
 numbers usable for the stage coordinates.

 If you are trying to place the clips one time on attachment, here is a
 function, based on the code you sent, that works:
 random100=Math.random()*100;
 random500=Math.random()*500;
 // Assumes you've already created the MovieClip, canvas.
 function attachMovies() {
 for (var i = 0; i2; i++) {
 canvas.attachMovie(code,code+i,this.getNextHighestDepth());
 }
 canvas.code1._x = random500;
 canvas.code1._y = random100;
 canvas.code2._x = Stage.width/2;
 canvas.code2._y = Stage.height /2;
 }
 attachMovies();

 This will place code1 at the some random point between (0,0) and (500,
 100), and place code2 at center stage, offset by it's own registration
 point

 hth,
 Bob.

 Pedro Kostelec wrote:
  sorry. I forgot to copy this.
 
  random100=Math.random()/100;
  random500=Math.random()/500;
  - how do i do to define the x and y position of each mc separately?
 
  I don't get it.. what do you want to do here?
 
  what i want is to make one ofthose mcs moveup and downand the other
  right-left. Theproblem is tht i just can not do it
 
 function attachMovies() {
  for (var i = 0; i2; i++) {//iwantto place each of those mc-s into a
  different placeon the stage. I am not sure this is the right way.
  canvas.attachMovie (code,code+i,this.getNextHighestDepth());
  //didn't it created on mc named code1 and another code2
  canvas.code1._x = random500;//i triyed something like
  canvas.code1._x=500; instead of this  but it didn't work. what i am
 doing
  wrong??
  canvas.code1._y = random100;
  canvas.code2._x = Stage.width/2;
  canvas.code2._x = Stage.height /2;
  }
  }On 16/01/2008, Leandro Ferreira [EMAIL PROTECTED] wrote:
 
  You could also use random(500), but is deprecated -
 
 http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary630.html
 
 
 
 
  - how do i do to define the x and y position of each mc separately?
 
  I don't get it.. what do you want to do here?
 
 
 Leandro Ferreira
 
  On 1/16/08, Bob Leisle  [EMAIL PROTECTED] wrote:
 
  Hi Pedro,
 
  Try this instead:
 
  Math.random()*500;
 
  Here's a simplistic but clear tutorial on the subject:
 
 http://animation.about.com/od/flashanimationtutorials/ss/mathrandom.htm
 
  hth,
  Bob
 
  Pedro Kostelec wrote:
 
  Hello
  i got this code:
 
  this.createEmptyMovieClip(canvas,this.getNextHighestDepth());
 
  //creates an
 
  empty MC in which i attach 2 textMCs
  canvas._x = random500;//should place the MCs to a random position
 when
 
  they
 
  load but it doesn't work?!?-What is wrong
 
  here?
 
  canvas._y = random100;
 
  attachMovieInterval = setInterval(attachMovies, 200);//set interval
 
  for
 
  green mc reload
 
  function attachMovies() {
  for (var i = 0; i2; i++) {
  canvas.attachMovie(code,code+i,this.getNextHighestDepth
 ());
  canvas.code1._x = random500;
  canvas.code1._y = random100;
  canvas.code2._x = Stage.width/2;
  canvas.code2._x = Stage.height/2;//how do i do to define the
 x
 
  and y
 
  position of each mc separately?
  }
  }
 
  sorry for writing it so briefly. My keyboard doesn't work

[Flashcoders] AttachMovie?!!?

2007-12-20 Thread Pedro Kostelec
Hello.

I am sorry of posting this easy question here(i should post it to the
newbies list but i think there is a problem with it) and i am sorry if this
is a double post. Nobody replyed and i don't know if you actually received
the mail or not. And i really need the answer as soon as possible. :


I need to load two flash movies into a single one. One is containig the
sound, the other the animation. I think i cannot  put the sound directly
into the movie because i made de movie of a lot of scenes(or can I?)


Can you tell me a good tutorial for this or only giving me the piece of code
neceserly for this.


Thanks


Pedro


ps: I tried with this:


this.attachMovie(genesis 7, genesis, this.getNextHighestDepth()); //to
attach the film

but the problem is that the animated movieclips inside the movie didn't
play.


Should sth like this work?
this.attachMovie(genesis 7, genesis, this.getNextHighestDepth ()); //to
attach the film
genesis.play();???
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AttachMovie?!!?

2007-12-20 Thread Pedro Kostelec
I allways knew that scenes wheren't the best choice, but the animation lasts
about 10 minutes, which would be really complicated to do in anly one scene.
Yes, hans it is really loadMovie the one that i should use. I don't know
where did i mix this with attachMovie. It worked, but it is not really in
syncronisation. How ca i fix that?

Pedro

2007/12/20, Andrew Sinning [EMAIL PROTECTED]:


 ___
 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


  1   2   >