RE: [Flashcoders] Re:Dragging loads of sound files from library into a movie clip

2009-04-09 Thread Paul Steven
Thanks for the suggestion Wenzler Unfortunately that does not seem to work for audio files. If I try to drag more than one audio file onto a layer, it only adds one of them. I did try what you suggested for images and it worked fine. Cheers Paul -Original Message- From:

Re: [Flashcoders] MovieClip inside MoveClip. Path confusion.

2009-04-09 Thread Hans Wichman
pages.page1.width :) On Thu, Apr 9, 2009 at 12:35 PM, Dav d...@funkdaweb.com wrote: Hi all, Wondering if anyone can help me with a problem that's left me scratching my head! Basically I have a main movieclip (group) and then several other movieclips inside it (page[1-6]). I was

Re: [Flashcoders] MovieClip inside MoveClip. Path confusion.

2009-04-09 Thread Romuald Quantin
This should work: group.getChildByName(page1).width Romu www.soundstep.com Hans Wichman wrote: pages.page1.width :) On Thu, Apr 9, 2009 at 12:35 PM, Dav d...@funkdaweb.com wrote: Hi all, Wondering if anyone can help me with a problem that's left me scratching my head! Basically I

RE: [Flashcoders] MovieClip inside MoveClip. Path confusion.

2009-04-09 Thread Dav
Cheers works perfectly! -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Hans Wichman Sent: 09 April 2009 12:09 To: Flash Coders List Subject: Re: [Flashcoders] MovieClip inside MoveClip. Path confusion.

[Flashcoders] MovieClip inside MoveClip. Path confusion.

2009-04-09 Thread Dav
Hi all, Wondering if anyone can help me with a problem that's left me scratching my head! Basically I have a main movieclip (group) and then several other movieclips inside it (page[1-6]). I was thinking I could access them like this group.page1, group.page2 and so on. However it is

[Flashcoders] Any ideas / thoughts on this?

2009-04-09 Thread Dav
I'm trying to create a flash website where 6 pages are placed on the stage with different rotations. The active page fills the viewport and a menu sits just below the active page. Now when you click on the menu for say page 2, the viewport will appear to move and rotate to the correct angle to

Re: [Flashcoders] Any ideas / thoughts on this?

2009-04-09 Thread Glen Pike
Putting all the clips in your group will probably make your rotation calc's so much easier as you only have to spin one clip. You could store the position rotation of each child clip when you add it, then when you need to rotate, you can work out your current rotation / position, then offset

RE: [Flashcoders] Any ideas / thoughts on this?

2009-04-09 Thread Cor
I am just in the midlle of doing some tweening in FlashDevelop Its far from ready and only the CMajor is filled. www.badmintonclubnetwerk.nl/_Cor/music Every button(guitarfret) is tweening in from a location. I used TweenMax for this which is a nice piece of work from Grant Skinner. I did my

[Flashcoders] AS3: if (urlvars.bids != null) trace(urlvars.bids); still prints null?

2009-04-09 Thread Alexander Farber
Hello, does anybody please have an idea, why would this code: private function handleComplete(event:Event):void { var urlvars:URLVariables = event.target.data; .. if (urlvars.bids != null urlvars.bids != 0) { trace(urlvars.bids); .

Re: [Flashcoders] AS3: if (urlvars.bids != null) trace(urlvars.bids); still prints null?

2009-04-09 Thread Glen Pike
the null is maybe a string if it's from url variables. Alexander Farber wrote: Hello, does anybody please have an idea, why would this code: private function handleComplete(event:Event):void { var urlvars:URLVariables = event.target.data; .. if (urlvars.bids != null

Re: [Flashcoders] AS3: if (urlvars.bids != null) trace(urlvars.bids); still prints null?

2009-04-09 Thread Ian Thomas
No, null==null in AS3. I suspect that your url variable bids contains the string null, sent from the server-side. HTH, Ian On Thu, Apr 9, 2009 at 2:13 PM, Alexander Farber alexander.far...@gmail.com wrote: Hello, does anybody please have an idea, why would this code: private function

Re: [Flashcoders] Dragging loads of sound files from library into amovie clip

2009-04-09 Thread Muzak
Hey Paul, Use jsfl again.. - create a new movieclip in library (mc:audio) - edit the movieclip (enter editMode) - loop through all library items - if item == sound - create new layer in movieclip - add sound to new layer fl.outputPanel.clear(); fl.trace(Audio to MovieClip Command); var

Re: [Flashcoders] Flashplayer standalone settings

2009-04-09 Thread Glen Pike
Hi, Problem solved. Have to install the browser plugin and then visit the settings manager to allow access to the webcam by local applications... What a PITA... Glen Glen Pike wrote: Hi, Can anyone tell me how I might make sure that Flash Player standalone remembers my

Re: [Flashcoders] Dragging loads of sound files from library intoamovie clip

2009-04-09 Thread Muzak
This will add the audio mc to the main timeline in frame 10 (add it after doc.exitEditMode(); in the previous script): // main timeline tl = doc.getTimeline(); frIndex = tl.addNewLayer(ALL AUDIO); tl.insertFrames(10); tl.insertBlankKeyframe(10); tl.currentFrame = 10; lib.addItemToDocument({x:0,

Re: [Flashcoders] AS3: if (urlvars.bids != null) trace(urlvars.bids); still prints null?

2009-04-09 Thread Muzak
If the variable is actually present, it will have a value: an emtpy string. And you may have to check for 0 instead of 0, again a string. if (urlvars.bids != urlvars.bids != 0) regards, Muzak - Original Message - From: Alexander Farber alexander.far...@gmail.com To: Flash Coders

RE: [Flashcoders] Dragging loads of sound files from library into amovie clip

2009-04-09 Thread Paul Steven
Wow this jsfl is a life saver! Can't believe I had never heard about it before in all the years I have been using Flash. Thank you Muzak for taking the time to write the code out for me. It works a dream! Cheers Paul -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com

Re: [Flashcoders] Dragging loads of sound files from library into amovie clip

2009-04-09 Thread Karl DeSaulniers
I must say WOW as well. I never knew you could do that eigther. Karl Sent from losPhone On Apr 9, 2009, at 10:15 AM, Paul Steven paul_ste...@btinternet.com wrote: Wow this jsfl is a life saver! Can't believe I had never heard about it before in all the years I have been using Flash.

Re: [Flashcoders] AS3: if (urlvars.bids != null) trace(urlvars.bids); still prints null?

2009-04-09 Thread Romuald Quantin
if you're sure you receive an empty value and the check does not work, maybe try if (String(urlvars.bids) != ) Romu Muzak wrote: If the variable is actually present, it will have a value: an emtpy string. And you may have to check for 0 instead of 0, again a string. if (urlvars.bids !=

Re: [Flashcoders] Dragging loads of sound files from libraryinto amovie clip

2009-04-09 Thread Muzak
I used to create loads of IDE Panels (SWF Panels) for Flash/Fireworks :) You can even launch Fireworks from a swf and make it do all kinds of stuff (you can make RPC calls from a swf to Fireworks for instance). About everything you do in Flash is done through jsfl. Just open up the History

[Flashcoders] point in a circle

2009-04-09 Thread Fabio Pinatti
Hello list, since I ran from math classes, I have a question that I'm almost sure it's not hard to solve, but I don't know how to. I put a image at http://pinatti.com.br/circle.jpg, where it's a circle with red dots. I need to compute red dots's x/y position. The data I have is the angle that I

Re: [Flashcoders] point in a circle

2009-04-09 Thread Todd Kerpelman
x = Math.cos(angle) * radius y = Math.sin(angle) * radius Keep in mind the angle here needs to be in radians. If your angle is in degrees, multiply it by 180 / Math.PI. Also keep in mind the x and y values you get here will be relative to the circle's center. --T On Thu, Apr 9, 2009 at 11:02

Re: [Flashcoders] point in a circle

2009-04-09 Thread Fabio Pinatti
that's it! Thanks so much! On Thu, Apr 9, 2009 at 3:27 PM, Todd Kerpelman t...@kerp.net wrote: x = Math.cos(angle) * radius y = Math.sin(angle) * radius Keep in mind the angle here needs to be in radians. If your angle is in degrees, multiply it by 180 / Math.PI. Also keep in mind the x

Re: [Flashcoders] Dragging loads of sound files from libraryinto amovie clip

2009-04-09 Thread Karl DeSaulniers
Oo you shouldn't have shown me that. :) It's on like Donkey Kong Best, Karl Sent from losPhone On Apr 9, 2009, at 11:54 AM, Muzak p.ginnebe...@telenet.be wrote: I used to create loads of IDE Panels (SWF Panels) for Flash/ Fireworks :) You can even launch Fireworks from a swf and make it