[Flashcoders] Re:Dragging loads of sound files from library into a movie clip
In the Flash Authoring environment you can drag them to one layer all at once, hit the layer tab to select everything on that layer and then choose 'Modify/Timeline/send to Layers' or something in the line of that (working with a german version); It will create a separate layer for every symbol instance on this layer ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Re:Dragging loads of sound files from library into a movie clip
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: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Wenzler, Thomas Sent: 09 April 2009 09:14 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Re:Dragging loads of sound files from library into a movie clip In the Flash Authoring environment you can drag them to one layer all at once, hit the layer tab to select everything on that layer and then choose 'Modify/Timeline/send to Layers' or something in the line of that (working with a german version); It will create a separate layer for every symbol instance on this layer ___ 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] MovieClip inside MoveClip. Path confusion.
pages.page1.width :) On Thu, Apr 9, 2009 at 12:35 PM, Dav 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 thinking I could access them like this group.page1, group.page2 and > so > on. However it is not working for me. > > > > Here is some stripped down sample code, obviously the moviclips have > content > rather than just being blank: > > > > /// > > var group:MovieClip = new MovieClip(); > > addChild(group); > > > > var pages:Object = new Object(); > > pages["page1"]= new MovieClip(); > > pages["page2"]= new MovieClip(); > > pages["page3"]= new MovieClip(); > > pages["page4"]= new MovieClip(); > > pages["page5"]= new MovieClip(); > > pages["page6"]= new MovieClip(); > > > > for each (var page:MovieClip in pages) > > { > >group.addChild(page); > > } > > > > group.page1.width = 200;// [Fault] exception, > information=TypeError: Error #1010: A term is undefined and has no > properties. Fault, initScene() at Main.as:103 > > > > > > So I get this error when trying to access the width of page1 inside group: > [Fault] exception, information=TypeError: Error #1010: A term is undefined > and has no properties. Fault, initScene() at Main.as:103 > > > > Any ideas how I can access the page movieclips within the group movieclip? > > > > Thanks! > > Dav > > ___ > 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] MovieClip inside MoveClip. Path confusion.
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 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 thinking I could access them like this group.page1, group.page2 and so on. However it is not working for me. Here is some stripped down sample code, obviously the moviclips have content rather than just being blank: /// var group:MovieClip = new MovieClip(); addChild(group); var pages:Object = new Object(); pages["page1"]= new MovieClip(); pages["page2"]= new MovieClip(); pages["page3"]= new MovieClip(); pages["page4"]= new MovieClip(); pages["page5"]= new MovieClip(); pages["page6"]= new MovieClip(); for each (var page:MovieClip in pages) { group.addChild(page); } group.page1.width = 200;// [Fault] exception, information=TypeError: Error #1010: A term is undefined and has no properties. Fault, initScene() at Main.as:103 So I get this error when trying to access the width of page1 inside group: [Fault] exception, information=TypeError: Error #1010: A term is undefined and has no properties. Fault, initScene() at Main.as:103 Any ideas how I can access the page movieclips within the group movieclip? Thanks! Dav ___ 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] MovieClip inside MoveClip. Path confusion.
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. pages.page1.width :) On Thu, Apr 9, 2009 at 12:35 PM, Dav 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 thinking I could access them like this group.page1, group.page2 and > so > on. However it is not working for me. > > > > Here is some stripped down sample code, obviously the moviclips have > content > rather than just being blank: > > > > /// > > var group:MovieClip = new MovieClip(); > > addChild(group); > > > > var pages:Object = new Object(); > > pages["page1"]= new MovieClip(); > > pages["page2"]= new MovieClip(); > > pages["page3"]= new MovieClip(); > > pages["page4"]= new MovieClip(); > > pages["page5"]= new MovieClip(); > > pages["page6"]= new MovieClip(); > > > > for each (var page:MovieClip in pages) > > { > >group.addChild(page); > > } > > > > group.page1.width = 200;// [Fault] exception, > information=TypeError: Error #1010: A term is undefined and has no > properties. Fault, initScene() at Main.as:103 > > > > > > So I get this error when trying to access the width of page1 inside group: > [Fault] exception, information=TypeError: Error #1010: A term is undefined > and has no properties. Fault, initScene() at Main.as:103 > > > > Any ideas how I can access the page movieclips within the group movieclip? > > > > Thanks! > > Dav > > ___ > 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] MovieClip inside MoveClip. Path confusion.
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 not working for me. Here is some stripped down sample code, obviously the moviclips have content rather than just being blank: /// var group:MovieClip = new MovieClip(); addChild(group); var pages:Object = new Object(); pages["page1"]= new MovieClip(); pages["page2"]= new MovieClip(); pages["page3"]= new MovieClip(); pages["page4"]= new MovieClip(); pages["page5"]= new MovieClip(); pages["page6"]= new MovieClip(); for each (var page:MovieClip in pages) { group.addChild(page); } group.page1.width = 200;// [Fault] exception, information=TypeError: Error #1010: A term is undefined and has no properties. Fault, initScene() at Main.as:103 So I get this error when trying to access the width of page1 inside group: [Fault] exception, information=TypeError: Error #1010: A term is undefined and has no properties. Fault, initScene() at Main.as:103 Any ideas how I can access the page movieclips within the group movieclip? Thanks! Dav ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Any ideas / thoughts on this?
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 display page 2. I have worked up a site to better explain what I mean. http://79.170.40.163/flashdev.com/ For the sake of keeping things simple each of the three buttons just move you to the next page. I believe the best way to achieve the effect is to put each "page" into a "group" movieclip, that will hold all 6 pages. Then when a menu item is clicked, just rotate the "group" movieclip and move it to a pre-defined x and y. I'm hoping to code it in FlashDevelop, so it will be dynamic and not static content. Does anyone think there is a better way to achieve the end result? Thanks in advance, Dav ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Any ideas / thoughts on this?
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 the position and rotation of your child clip vs your parent and tween... Not sure off the top of my head, but you know where you are placing pages so that's probably your starting point - it does not matter hugely if you hardcode positions - if the number of pages does not change, you could be at an advantage keeping it simple :) Dav wrote: 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 display page 2. I have worked up a site to better explain what I mean. http://79.170.40.163/flashdev.com/ For the sake of keeping things simple each of the three buttons just move you to the next page. I believe the best way to achieve the effect is to put each "page" into a "group" movieclip, that will hold all 6 pages. Then when a menu item is clicked, just rotate the "group" movieclip and move it to a pre-defined x and y. I'm hoping to code it in FlashDevelop, so it will be dynamic and not static content. Does anyone think there is a better way to achieve the end result? Thanks in advance, Dav ___ 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] Any ideas / thoughts on this?
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 buttons separately and with a little math they tween in position. If you don't want the other page to be seen, I suggest using a mask on the area where the page should show. HTH Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Dav Sent: donderdag 9 april 2009 14:05 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Any ideas / thoughts on this? 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 display page 2. I have worked up a site to better explain what I mean. http://79.170.40.163/flashdev.com/ For the sake of keeping things simple each of the three buttons just move you to the next page. I believe the best way to achieve the effect is to put each "page" into a "group" movieclip, that will hold all 6 pages. Then when a menu item is clicked, just rotate the "group" movieclip and move it to a pre-defined x and y. I'm hoping to code it in FlashDevelop, so it will be dynamic and not static content. Does anyone think there is a better way to achieve the end result? Thanks in advance, Dav ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.285 / Virus Database: 270.11.48/2048 - Release Date: 04/08/09 19:02:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3: if (urlvars.bids != null) trace(urlvars.bids); still prints null?
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); . } } still print out "null"? Is it maybe because null != null in AS3 and I have to perform some other check similar to isNaN()? Thank you Alex ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3: if (urlvars.bids != null) trace(urlvars.bids); still prints null?
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 && urlvars.bids != 0) { trace(urlvars.bids); . } } still print out "null"? Is it maybe because null != null in AS3 and I have to perform some other check similar to isNaN()? Thank you Alex ___ 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] AS3: if (urlvars.bids != null) trace(urlvars.bids); still prints null?
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 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 && urlvars.bids != 0) { > trace(urlvars.bids); > . > } > } > > still print out "null"? Is it maybe because null != null in AS3 > and I have to perform some other check similar to isNaN()? > > Thank you > Alex > ___ > 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] Flashplayer standalone settings
Hi, Can anyone tell me how I might make sure that Flash Player standalone remembers my settings for camera & microphone on Linux? Everytime I start my app up and it tries to connect to the camera, the settings popup appears, but it never remembers the choices - used to be fine on FP9, seems to be an FP10 problem (again). Glen ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dragging loads of sound files from library into amovie clip
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 doc = fl.getDocumentDOM(); var lib = doc.library; // create movieclip for audio lib.addNewItem("movie clip", "mc:audio"); lib.setItemProperty("linkageExportForAS", false); lib.setItemProperty("linkageExportForRS", false); lib.editItem("mc:audio"); var tl = doc.getTimeline(); var libItems = lib.items; var len = libItems.length; var item; var frIndex; fl.trace("library items: " + len); for(var i=0; i You should be able to figure that out from the jsfl docs :) regards, Muzak - Original Message - From: "Paul Steven" To: "'Flash Coders List'" Sent: Wednesday, April 08, 2009 8:30 AM Subject: [Flashcoders] Dragging loads of sound files from library into amovie clip Related to my previous post, I now need to drag about 300 audio files from the library into a movie clip. Essentially this is to ensure they are preloaded in my game. The method I use is to create a movie clip that has all the audio files on separate layers. This movie clip is then nested inside another movie clip and placed on the second keyframe with a stop action on the first. I am wondering if there is a magic way to drag say 300 audio files from the library and for flash (Flash CS3) to automatically create 300 layers, one layer for each audio file? 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] Flashplayer standalone settings
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 settings for camera & microphone on Linux? Everytime I start my app up and it tries to connect to the camera, the settings popup appears, but it never remembers the choices - used to be fine on FP9, seems to be an FP10 problem (again). Glen ___ 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] Dragging loads of sound files from library intoamovie clip
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, y:0}, "mc:audio"); Depending on how your FLA is built up, you may have to remove: tl.insertFrames(10) regards, Muzak - Original Message - From: "Muzak" To: "Flash Coders List" Sent: Thursday, April 09, 2009 4:27 PM Subject: Re: [Flashcoders] Dragging loads of sound files from library intoamovie clip 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 doc = fl.getDocumentDOM(); var lib = doc.library; // create movieclip for audio lib.addNewItem("movie clip", "mc:audio"); lib.setItemProperty("linkageExportForAS", false); lib.setItemProperty("linkageExportForRS", false); lib.editItem("mc:audio"); var tl = doc.getTimeline(); var libItems = lib.items; var len = libItems.length; var item; var frIndex; fl.trace("library items: " + len); for(var i=0; i You should be able to figure that out from the jsfl docs :) regards, Muzak ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3: if (urlvars.bids != null) trace(urlvars.bids); still prints null?
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" To: "Flash Coders List" Sent: Thursday, April 09, 2009 3:13 PM Subject: [Flashcoders] AS3: if (urlvars.bids != null) trace(urlvars.bids);still prints null? 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); . } } still print out "null"? Is it maybe because null != null in AS3 and I have to perform some other check similar to isNaN()? Thank you Alex ___ 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] Dragging loads of sound files from library into amovie clip
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 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Muzak Sent: 09 April 2009 15:27 To: Flash Coders List Subject: Re: [Flashcoders] Dragging loads of sound files from library into amovie clip 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 doc = fl.getDocumentDOM(); var lib = doc.library; // create movieclip for audio lib.addNewItem("movie clip", "mc:audio"); lib.setItemProperty("linkageExportForAS", false); lib.setItemProperty("linkageExportForRS", false); lib.editItem("mc:audio"); var tl = doc.getTimeline(); var libItems = lib.items; var len = libItems.length; var item; var frIndex; fl.trace("library items: " + len); for(var i=0; i To: "'Flash Coders List'" Sent: Wednesday, April 08, 2009 8:30 AM Subject: [Flashcoders] Dragging loads of sound files from library into amovie clip > Related to my previous post, I now need to drag about 300 audio files from > the library into a movie clip. > > Essentially this is to ensure they are preloaded in my game. The method I > use is to create a movie clip that has all the audio files on separate > layers. This movie clip is then nested inside another movie clip and placed > on the second keyframe with a stop action on the first. > > I am wondering if there is a magic way to drag say 300 audio files from the > library and for flash (Flash CS3) to automatically create 300 layers, one > layer for each audio file? > > 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dragging loads of sound files from library into amovie clip
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" 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. 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 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Muzak Sent: 09 April 2009 15:27 To: Flash Coders List Subject: Re: [Flashcoders] Dragging loads of sound files from library into amovie clip 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 doc = fl.getDocumentDOM(); var lib = doc.library; // create movieclip for audio lib.addNewItem("movie clip", "mc:audio"); lib.setItemProperty("linkageExportForAS", false); lib.setItemProperty("linkageExportForRS", false); lib.editItem("mc:audio"); var tl = doc.getTimeline(); var libItems = lib.items; var len = libItems.length; var item; var frIndex; fl.trace("library items: " + len); for(var i=0; i To: "'Flash Coders List'" Sent: Wednesday, April 08, 2009 8:30 AM Subject: [Flashcoders] Dragging loads of sound files from library into amovie clip Related to my previous post, I now need to drag about 300 audio files from the library into a movie clip. Essentially this is to ensure they are preloaded in my game. The method I use is to create a movie clip that has all the audio files on separate layers. This movie clip is then nested inside another movie clip and placed on the second keyframe with a stop action on the first. I am wondering if there is a magic way to drag say 300 audio files from the library and for flash (Flash CS3) to automatically create 300 layers, one layer for each audio file? 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 ___ 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] AS3: if (urlvars.bids != null) trace(urlvars.bids); still prints null?
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 != "" && urlvars.bids != "0") regards, Muzak - Original Message - From: "Alexander Farber" To: "Flash Coders List" Sent: Thursday, April 09, 2009 3:13 PM Subject: [Flashcoders] AS3: if (urlvars.bids != null) trace(urlvars.bids);still prints null? 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); . } } still print out "null"? Is it maybe because null != null in AS3 and I have to perform some other check similar to isNaN()? Thank you Alex ___ 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] Dragging loads of sound files from libraryinto amovie clip
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 panel and do some stuff and then copy it from the history panel to notepad to see what it looks like. There used to be a complete Flash/Fireworks API for AS2 (or even AS1) but I'm not sure if that has been updated for CS4. Flash panels are still pretty much alive (and now even work for Photoshop if I'm not mistaken). Since I hardly ever use Flash nowadays I haven't looked into it much. Just did a quick google and looks like CS4 still uses the same (or similar) API. Flash CS4 jsfl docs: http://help.adobe.com/en_US/Flash/10.0_ExtendingFlash/ Fireworks CS4 jsfl docs: http://help.adobe.com/en_US/Fireworks/10.0_Extending/ Fireworks CS4: Cross-Product Extensions http://help.adobe.com/en_US/Fireworks/10.0_Extending/WS5b3ccc516d4fbf351e63e3d1183c949219-8000.html Fireworks CS4: Using the API wrapper extension in Adobe Flash http://help.adobe.com/en_US/Fireworks/10.0_Extending/WS5b3ccc516d4fbf351e63e3d1183c949219-7fc8.html regards, Muzak - Original Message - From: "Karl DeSaulniers" To: "Flash Coders List" Sent: Thursday, April 09, 2009 6:10 PM Subject: Re: [Flashcoders] Dragging loads of sound files from libraryinto amovie clip 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" 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. Thank you Muzak for taking the time to write the code out for me. It works a dream! Cheers Paul ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] point in a circle
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 increment (in this case 45º each round), and the distance (the hypotenuse, right?). Any ideas for this math? Thanks in advance.. -- Fabio 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
Re: [Flashcoders] point in a circle
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 AM, Fabio Pinatti wrote: > 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 > increment (in this case 45º each round), and the distance (the hypotenuse, > right?). > > Any ideas for this math? > > Thanks in advance.. > > -- > Fabio 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 > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] point in a circle
that's it! Thanks so much! On Thu, Apr 9, 2009 at 3:27 PM, Todd Kerpelman 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 and y values you get here will be relative to the > circle's center. > > --T > > > On Thu, Apr 9, 2009 at 11:02 AM, Fabio Pinatti wrote: > > > 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 > > increment (in this case 45º each round), and the distance (the > hypotenuse, > > right?). > > > > Any ideas for this math? > > > > Thanks in advance.. > > > > -- > > Fabio 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 > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- Fabio 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
Re: [Flashcoders] Dragging loads of sound files from libraryinto amovie clip
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" 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 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 panel and do some stuff and then copy it from the history panel to notepad to see what it looks like. There used to be a complete Flash/Fireworks API for AS2 (or even AS1) but I'm not sure if that has been updated for CS4. Flash panels are still pretty much alive (and now even work for Photoshop if I'm not mistaken). Since I hardly ever use Flash nowadays I haven't looked into it much. Just did a quick google and looks like CS4 still uses the same (or similar) API. Flash CS4 jsfl docs: http://help.adobe.com/en_US/Flash/10.0_ExtendingFlash/ Fireworks CS4 jsfl docs: http://help.adobe.com/en_US/Fireworks/10.0_Extending/ Fireworks CS4: Cross-Product Extensions http://help.adobe.com/en_US/Fireworks/10.0_Extending/WS5b3ccc516d4fbf351e63e3d1183c949219-8000.html Fireworks CS4: Using the API wrapper extension in Adobe Flash http://help.adobe.com/en_US/Fireworks/10.0_Extending/WS5b3ccc516d4fbf351e63e3d1183c949219-7fc8.html regards, Muzak - Original Message - From: "Karl DeSaulniers" > To: "Flash Coders List" Sent: Thursday, April 09, 2009 6:10 PM Subject: Re: [Flashcoders] Dragging loads of sound files from libraryinto amovie clip 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" > 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. Thank you Muzak for taking the time to write the code out for me. It works a dream! Cheers 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