[Flashcoders] RE: Loop creator
I'm looking into building a loop manipulator application. I basically want to take 10 preset loops and place them on a time track. Each, loop can be placed before or after another loop. I then want to combine the entire track and export as an mp3, is this possible via ActionScript, or do I need another language to encode MP3's? Anthony ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: Loop Creator ( Dynamic Sound )
Hi everyone, I'm working on a concept but not sure if it is possible in AS3 Flash Player 9. I have a client requesting - some feedback would be greatly appreciated. I'm looking into building a "loop creator" application. I basically want to take preset loops and place them on a time track. The loops will be able to layer above each other. I then want to combine the entire track and export as an mp3, is this possible via byteArrays? If so, could I encode the byteArray to MP3 or do I need to use php or something similar. I'm in the dark on this one. Could definitely use the help. Anthony website: sweetiesandgangsters.net blog: codegasm.blogspot.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: Loop creator
I'm looking into building a loop manipulator application. I basically want to take 10 preset loops and place them on a time track. Each, loop can be placed before or after another loop. I then want to combine the entire track and export as an mp3, is this possible? Anthony Cintron Flash/Flex Developer E-mail: [EMAIL PROTECTED] Web site: sweetiesandgangsters.net Blog: codegasm.blogspot.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] merging data problem
Thanks Jason and Juan, I tested it out and the splicing works really well. One thing I'm noticing is when I uncomment and add another index, I get a compile error. I messed with the splice index number, but received unsuccessful results. Any thoughts on this? var workData:Array = new Array(); //workData.push({pm:"Bob", resource:"Anthony", client:"Microsoft", role:"Developer", job:"XXX-", totalHours:40}); workData.push({pm:"Dan", resource:"Anthony", client:"Microsoft", role:"Developer", job:"XXX-", totalHours:50}); workData.push({pm:"Bob", resource:"Anthony", client:"Microsoft", role:"Developer", job:"XXX-", totalHours:30}); workData.push({pm:"Dan", resource:"Anthony", client:"Microsoft", role:"Developer", job:"XXX-", totalHours:50}); trace(workData); // for each item in the array for ( var i = workData.length - 1; i >= 0; i-- ){ // compare to all other array elements for ( var j = workData.length - 1; j >= 0; j-- ) { if ( workData[i].pm == workData[j].pm && i != j) { for ( var props in workData[i] ) { workData[i][props] = workData[j][props]; } trace("index: " + j ); workData.splice(j, 1); } } } trace(workData); ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: Flashcoders Digest, Vol 8, Issue 11
er(); > > var _context:LoaderContext = new LoaderContext(); > > _context.securityDomain = SecurityDomain.currentDomain; > > _context.applicationDomain = ApplicationDomain.currentDomain; > > _ldr.contentLoaderInfo.addEventListener(Event.INIT, initHandler, false, 0, > true); > > _ldr.load(_req, _context); > > > > > > private function initHandler($event:Event) () { > >var _lm:LoadMe = LoadMe(_ldr.content); > > } > > > > > > -- > > Message: 7 > Date: Fri, 9 May 2008 20:19:51 -0300 > From: "Juan Pablo Califano" <[EMAIL PROTECTED]> > Subject: Re: [Flashcoders] as3 namespace question > To: "Flash Coders List" > Message-ID: ><[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > I have not tryed this, but check this: > > http://livedocs.adobe.com/flex/201/langref/flash/display/LoaderInfo.html > > > "Because the instance of the main class of the SWF file has no Loader > object, the loaderInfo property is the only way to access the LoaderInfo > for > the instance of the main class of the SWF file." > > Perhaps this means you have to do something like: > > private function initHandler($event:Event) () { > > var _lm:LoadMe = LoadMe(_ldr.loaderInfo.content); > > } > > > Cheers > Juan Pablo Califano > > > > > > 2008/5/9, Dave Segal <[EMAIL PROTECTED]>: > > > > I posted about this before and didn't receive and answer but it is still > > causing me issues so I am trying again. I need to load an swf from one > > server that is a member of some class. For example: > > > > > > > > http://server1.mydomain.com/load_me.swf that uses the Document class > > "com.mydomain.componet.LoadMe.as". > > > > > > > > I want to be able to load this swf from a different server, say > > http://server2.mydomain.com/load_stuff.swf, and cast it to a LoadMe when > > it is done loading. Should this work? I keep getting errors when trying > to > > cast in the init handler. > > > > > > > > > > > > import com.mydomain.componet.LoadMe; > > > > > > > > var _req:URLRequest = new > > URLRequest("http://server1.mydomain.com/load_me.swf";); > > > > var _ldr:Loader = new Loader(); > > > > var _context:LoaderContext = new LoaderContext(); > > > > _context.securityDomain = SecurityDomain.currentDomain; > > > > _context.applicationDomain = ApplicationDomain.currentDomain; > > > > _ldr.contentLoaderInfo.addEventListener(Event.INIT, initHandler, false, > 0, > > true); > > > > _ldr.load(_req, _context); > > > > > > > > > > > > private function initHandler($event:Event) () { > > > >var _lm:LoadMe = LoadMe(_ldr.content); > > > > } > > > > > > > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > -- > > Message: 8 > Date: Sat, 10 May 2008 15:09:58 +0200 > From: "jonathan howe" <[EMAIL PROTECTED]> > Subject: Re: [Flashcoders] Undefined property in one fla, but not in >the other. > To: "Flash Coders List" > Message-ID: ><[EMAIL PROTECTED]> > Content-Type: text/plain; charset=UTF-8 > > Here's my guess: > The classpath in your work fla is incorrect or the linkage is not actually > pointing to the original PilotBase. > Sounds like you copied the symbol, instantiated it, but Flash is using it's > self-created constructor for a symbol in the library. I would go into the > linkage properties for the symbol and verify that the path to the class is > correct (with the little green check). Otherwise, you're just getting the > "automatically generated in the SWF upon file export" version, which still > extends movie clip (thus otherwise behaves normally), but lacks your new > properties. > > -jonathan > > > On Thu, May 8, 2008 at 11:43 PM, Chris <[EMAIL PROTECTED]> wrote: > > > I have a movie clip symbol 'Pilot', extending a class 'PilotBase'. The > > movie > > clip has three clips inside, gX, gY, gZ. I have a class that extends > > MovieClip. I copy the symbol from the demo fla to the work fla and flash > > complains: > > > > 1120: Access of undefined property gX.� > > ... > > ... > > > > The clip instance exists. If I copy the symbol into another empty fla, it > > works fine. I cannot understand why it bombs out in the fla that I need > to > > copy it to. Any ideas? > > Thanks > > C > > > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > -- > -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101 > > -- > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > End of Flashcoders Digest, Vol 8, Issue 11 > ** > -- Anthony Cintron Flash || Flex Developer Blog - http://codegasm.blogspot.com/ Portfolio - http://www.sweetiesandgangsters.com [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Data merging problem
Hi All, I am dealing with a puzzle here, and I can't figure out the best way to approach this. I come to you all to see what your thoughts are. I will try my best to explain this, because I am confused, I can't guarantee it will at all make sense. I have an ArrayCollection, "workData" that has a list of employee work information. I want to merge two of the same data together. workData[0].pm = "Bob"; workData[0].resource = "Anthony" workData[0].client = "Microsoft" workData[0].role = "Developer" workData[0].job = "XXX-" workData[0].week_date = 7 workData[0].totalHours = 40 workData[1].pm = "Bob"; workData[1].resource = "Anthony" workData[1].client = "Microsoft" workData[1].role = "Developer" workData[1].job = "XXX-" workData[1].week_date = 14 workData[1].totalHours = 32 workData[2].pm = "Tom"; workData[2].resource = "Anthony" workData[2].client = "Microsoft" workData[2].role = "Developer" workData[2].job = "XXX-" workData[2].week_date = 14 workData[2].totalHours = 52 The ArrayCollection displayed here has two matching items, 1 and 2. I want to merge the two because everything matches except for the week_date and totalHours, which is fine, that will be my next problem to solve. I want to create a new ArrayCollection to have 1 and 3 show, while having 1 and 2 merged. What is best way of achieving this? I'm basically taking this data and displaying it into a datagrid, but I don't want the duplicated items to display on the datagrid. So, instead of 3 items to display, I want to display two. -- Anthony Cintron Flash || Flex Developer Blog - http://codegasm.blogspot.com/ Portfolio - http://www.sweetiesandgangsters.com [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: Flash Math Conceptualizing
Hi All, I have a little dilemma, I have a flash map that needs to be done, I can't really get the idea on how to do the math. I have a small version of the large map. I have to drag a box around the smaller version and use that as my navigation for the bigger version. When I drag the small box around the bigger version displays the area I dragged over from the smaller version. They are both in separate movieClips with different x,y coordinates. This is what I have worked out, but it seems totally hacked. I would like to create a cleaner version, using a much better algorithm. Any good tutorials out there on using the Geom Point class, the documentation is so vague. Help is much needed, thanks. var navViewPosX:Number = -44.8; var navViewPosY:Number = -160.2; var percent:Number = 6.5; function animateView() { var map:MovieClip = this._parent.view.map_mc; // target X,Y var targetX:Number = this.btn._x; var targetY:Number = this.btn._y; // distance between navView and target position on x,y var navViewDX:Number = navViewPosX - targetX; var navViewDY:Number = navViewPosY - targetY; map._x = navViewDX; map._y = (navViewDY*percent); } -- Anthony Cintron Flash || Flex Developer Blog - http://codegasm.blogspot.com/ Portfolio - http://www.sweetiesandgangsters.com [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: Zend Framework PHP question
Hi All, this is a far fetched question, but I'll give it a try. Anyone familiar with the Zend framework? I want to add the library to the PHP include, but I don't fully understand what it is I need to do. I added the directory and also switch out the php lib for the zend lib. I'm not seeing any results. Has anyone had an experience with this? -- Anthony Cintron Flash || Flex Developer Blog - http://codegasm.blogspot.com/ Portfolio - http://www.sweetiesandgangsters.com [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: Multiple Object Position Logic
Hi All, I'm trying to come up with an efficient concept of animating dynamic objects stacked upon each other. For example. Let's say I dynamically add an object (That would be Object 1). Then I wanted to add another object, I want object1 to move down one row, and the new object (object 2) to fade in. I now want to add a third object ( object 3 ). Object 1 and Object 2 move down a row. Now, I decided to delete Object 2. Object 3, now has to animate back up one row. Anyone know an effective way of executing this? Anthony ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: Date Object for MySQL Database
Hey all, I'm in a bit of a conundrum. I have 3 text fields in my Flex App. Textfield 1 is for Month, Textfield 2 is for Day and Textfield 3 is for year. I want to insert those fields into my database. My database has a column date field. I cannot get the strings to be inserted into the DB. When I send the request, my fields value is -00-00. Some how it is not converting. I sent the object as a datatype Date(). Here is what I did... var weekVO:WeekVO = new WeekVO(new Date(this.yearTextInput.text, this.monthTextInput.text, this.dayTextInput)); Clearly I'm doing something wrong, unfortunately I am unfamiliar with the objective. Does anyone have any insight? -- Anthony Cintron Flash || Flash Developer www.sweetiesandgangsters.com [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Unable to connect to database
Awesome! I fixed the issue. I changed the port number 8889. Host: localhost:8880 user: whatever password: whatever ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Unable to connect to database
I posted this problem on Yahoo Groups FlexCoders, but I figured I can give the FlashCoders a try... I'm having major issues with connecting to my localhost database. The link below shows the generated link when I click on the Test Connection. How I setup my flex app: Create Flex Project > Application server type: PHP Configure PHP Server > /Applications/MAMP/htdocs > root URL: http://localhost: Validate Configuration (clicked) and it is a success. I then go to Create Application from Databas: Connection > New > name: test > Host URL : localhost > Database: database name > username: username > password: password > Test Connection (clicked). I then receive the following errors: http://privatepaste.com/320YZcjCi6 - Anthony ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] calculating distance between two points
dx:Number = obj1.x - obj2.x; dy:Number = obj1.y - obj2.y; distance:Number = Math.sqrt(dx * dx + dy * dy); On Tue, Mar 11, 2008 at 8:05 AM, Lehr, Theodore M (N-SGIS) < [EMAIL PROTECTED]> wrote: > How do you calculate the distance between two points with different x > and y values? I know it is some simple math formula - I just don't know > it > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- Anthony Cintron Flash || Flash Developer www.sweetiesandgangsters.com [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Using States, MXML, Events, O' My
Thanks guys, this actually worked for me over the weekend. I created a stateManager and did all the changing within there. I did use the below technique. I'm not so familiar with the command patter, although I have heard of it. I may look into that for future reference. All in all - everything worked out great. I appreciate the assistance. On Mon, Mar 10, 2008 at 11:17 AM, Glen Pike <[EMAIL PROTECTED]> wrote: > You can access the thing that sends the event in your listener - the guy > before did not give you the entire signature for an event listener > function (you pass the event in the MXML tag and add it as the argument > to the function - same with any handler, you can specify what goes in > the function argument, by default the click rollover and other Flex > events will have an object associated with them that you can pass around): > > > > > label="myButton"/> > > Hey presto, you can wrap this event up and fire it again from this > component upto the top. That's the only awkward bit as you have to > write code for each. There may be other ways / frameworks like Jason > said that ensure you don't have to write these bits of code in every > nested component to pass an event from bottom to top, but I have not > investigated / learnt about this stuff. > > HTH > > Glen > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- Anthony Cintron Flash || Flash Developer www.sweetiesandgangsters.com [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Using States, MXML, Events, O' My
The custom class that has the button event is a composite class inside another class (we'll call that MainInterActive class). MainInterActive is than instantiated in a main mxml application inside a state node. I could try what you mentioned but the composite classes' buttons are not really available to the main application. Unless there is a way I could subscribe to that button, although it is a child of the child class in MainInterActive. The reason why I'm not creating the buttons using mxml is because they are doing some funky animations. thanks for your help on this, any ideas for a resolution on accessing the button or buttons event? Anthony On Fri, Mar 7, 2008 at 9:30 PM, Merrill, Jason < [EMAIL PROTECTED]> wrote: > If your button in the custom class is broadcasting an event, say for an > example, and event called "changed", you can add an event listener in a > script tag in the main MXML. A snippet would be: > >private function addListeners():void >{ > > myCustomClassInstance.addEventListener("changed", onChanged); >} > >private function onChanged():void >{ >currentState = "myOtherState"; >} > > However, if you class creates buttons, why not have those buttons > created with MXML instead of Actionscript? > > There is a great Flex list on Yahoo! called Flexcoders which would be > more capable to answer this than this list. > > Jason Merrill > Bank of America > GT&O L&LD Solutions Design & Development > eTools & Multimedia > > 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 GT&O Innovative Learning Blog & subscribe. > > > > > > > >>-Original Message- > >>From: [EMAIL PROTECTED] > >>[mailto:[EMAIL PROTECTED] On Behalf > >>Of Anthony Cintron > >>Sent: Friday, March 07, 2008 6:14 PM > >>To: flashcoders@chattyfig.figleaf.com > >>Subject: [Flashcoders] Using States, MXML, Events, O' My > >> > >>I have a question about MXML and ActionScript and how they > >>communicate with each other. I'm working with the State tage > >>to change views. I have a Class called SpacePorter; it has 4 > >>buttons that dispatchEvents( MyButton.BUTTON_CLICKED). Space > >>Porter is instantiated into my Home Class. > >>Home class is than created using mxml in my root Application. > >>Now, I want to be able with AS3 or MXML to subscribe to that > >>Broadcast so my State can change, depending on the button > >>that was clicked. I can't quite wrap my head around this with > >>my lack of MXML and ActionScript relations - especially with > >>the CDATA tags. I tried getting the button object through AS, > >>by doing: > >>homeView.button, but it seems as though i can't get to the > >>properties of an mxml (instantiated object) from a AS script > >>inside the script tag. > >> > >>I hope this makes some sense, if need be I can explain some > >>more. Could really use the help on this. This is great real > >>world attempt of me using Flex. > >> > >>Anthony C. > >> > >>-- > >>___ > >>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 > -- Anthony Cintron Flash || Flash Developer www.sweetiesandgangsters.com [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Using States, MXML, Events, O' My
I have a question about MXML and ActionScript and how they communicate with each other. I'm working with the State tage to change views. I have a Class called SpacePorter; it has 4 buttons that dispatchEvents( MyButton.BUTTON_CLICKED). Space Porter is instantiated into my Home Class. Home class is than created using mxml in my root Application. Now, I want to be able with AS3 or MXML to subscribe to that Broadcast so my State can change, depending on the button that was clicked. I can't quite wrap my head around this with my lack of MXML and ActionScript relations - especially with the CDATA tags. I tried getting the button object through AS, by doing: homeView.button, but it seems as though i can't get to the properties of an mxml (instantiated object) from a AS script inside the script tag. I hope this makes some sense, if need be I can explain some more. Could really use the help on this. This is great real world attempt of me using Flex. Anthony C. -- ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders