[flexcoders] Re: Module Interface Problems
*BUMP* Anyone have any ideas? I still haven't found a solution... K.
[flexcoders] Re: Module Interface Problems
I tried the following: private function readyModule(evt:Event):void { modResult = new Object; modResult = modMyModule2.child as IResults; if (modResult.searchResults==null){trace("NULL!");} else{trace("NOT NULL!");} modResult.searchResults = arrSearchResults; } but it crashes at the 'if' statement with "Cannot access a property or method of a null object reference" I'm not sure what you mean though by "Also if you are using an Interface you need to reference the Interface within both the Application and the Module." I have the interface referenced in the second module via 'implements="IResults"', but do I need another reference in the calling module besides var ichild:* = modMyModule2.child as IResults; ichild.searchResults = arrSearchResults; ?? The documentation doesn't seem to state anything regarding referencing the interface in the application other than this... Thanks again, K. --- In flexcoders@yahoogroups.com, "lar.drolet" <[EMAIL PROTECTED]> wrote: > > Try this: > > public var modResult:Object; > private function onModuleReady( event:Event ):void > { > modResult = (modMyModule2.child as myResults); > modResult.searchResults = arrSearchResults; > } > > Also if you are using an Interface you need to reference the Interface > within both the Application and the Module. > > Check out this blog for some more information: > http://weblogs.macromedia.com/pent/ > > > Good Luck. > > LD >
[flexcoders] Re: Module Interface Problems
Tried strong typing, but no luck! Thanks though! K. --- In flexcoders@yahoogroups.com, "Roger Gonzalez" <[EMAIL PROTECTED]> wrote: > > For what its worth, it appears at first glance that your code should > work. > > Have you tried strong typing rather than using "*"? > > var results:IResults= IResults(modMyModule2.child) > > Not sure why it isn't working though, sorry. > > -rg >
[flexcoders] Module Interface Problems
I'm having a problem passing variables from one module to another via an interface. I have an application that calls a module when it enters a specific state, which works fine. The module is loaded through and it works as expected. Within this module, I have a button that when pressed, calls a second module via a module loader, using an interface. I need an interface, as there is a variable that I need to pass between these two modules. Clicking the button runs a couple of functions, ending with: currentState='Results'; modMyModule2.url='myResults.swf"; and the states look like: So when the module is ready, the following code is invoked in modMyModule1: private function readyModule(evt:ModuleEvent):void { var ichild:* = modMyModule2.child as IResults; if(ichild != null) { ichild.searchResults = arrSearchResults; trace("NOT NULL"); } else { trace("NULL!"); } } modMyModule2 contains 'implements="IResults"' in it's root module tag, and IResults is defined as follows: package { import flash.events.IEventDispatcher; import mx.collections.ArrayCollection; public interface IResults extends IEventDispatcher { function set searchResults(arrResults:ArrayCollection):void; function get searchResults():ArrayCollection; } } I have corresponding getter and setter functions in my modMyModule2, but they never seem to get called! For some reason, the interface is always failing, and therefore in my readyModule() function in the first module, it always traces "NULL". I can access the required variable in the second module via parentApplication.modMyModule1.child.arrSearchResults, but I'd prefer to do it via the interface. I've gone through all the docs, but I can't see what I've done that's different from anything in them, except for the fact that I'm calling a module from a module via an interface. Can anyone shed some light on this at all? Cheers, K.
[flexcoders] Re: File I/O Error - Error #2038
Anyone -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] File I/O Error - Error #2038
I've seen a few posts on this error but none of them seem to solve my issue. I'm trying to upload some files via a FileReference object, with a CF backend. The CFC works fine with smaller files (eg under 300k), but with files over this size, sometimes it works, sometimes it doesn't. When it doesn't work, I get the following I/O Error: IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2038: File I/O Error. URL: my URL The server side script is working, as I can try and upload a smaller file, and it works. But when I'm getting the I/O error, the app stops before it even reaches the CFC. I've set a Progress listener to the FileUpload object, and it seems to just slow down and eventually stop, throwing the I/O error before file upload has reacherd the total bytes of the file. Does anyone know what might be going on here? Thanks, K. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Creating variable name dynamically
I'm in a situation where I need to create a number of components at runtime, at different time intervals. A user presses a button and I create a set of components. They press the button again, and another set of the same components is created. My problem is that one of the components created is a checkbox, which needs to be used later. I can store component information in an array so I can reference it later, but the problem is that the information in the array will only hold the initial value of the checkbox, and not the current value. Currently I have a function like the following that creates the required controls when the button is pressed: private function createStuff():void { if (index < maxLimit) { var chkCheckbox:CheckBox = new CheckBox; var txtInput:TextInput = new TextInput; myArray[index] = [txtInput, chkCheckbox]; index++; } } This is a simplified version, but it works as intended. I have a function that does stuff with these components, but only the selected ones. How can I tell what checkbox is selected? They are all called chkCheckbox! I need to have a unique name for each one, so I can loop through them and use this["chkCheckbox"+i].selected to see which ones I perform the 2nd function on. What's the best way to achieve this? I've tried using a repeater, but since the dataprovider is empty at the start of the app, it doesn't seem to update the repeater. Unless I'm using the repeater wrong... Any help would be greatly appreciated Thanks, K. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Problem with freezing video using slider
I have a VideoDisplay which loads and plays an FLV file, and an HSlider component that shows the progress of the video as it's playing. I've linked the slider to the playhead, so that if a user clicks somewhere on the slider bar, the slider moves to that position, and the playhead of the video also moves to the relative position in the video. This works whether the video is playing or not. However, if I click and drag the slider to a new location along the bar, even if the video is not playing, the video sometimes freezes for about 30 seconds, then it moves to the correct position (sometimes it freezes again part way to the correct spot). Does anyone know what's going on here? I load the video entirely before it's played, so surely it's not buffereing? I'm not sure what's going on here... HELP!! Cheers, K. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Interlace text over FLV video
OK, new problem though I've got the text over the video and it looks fine. However I want it to repeatedly scroll from right to left across the video until the video stops playing. I'm using the Move effect, and this works ok, except the height and width of the Panel that the video is added to is fixed, and when the text moves out of these bounds, it adds scroll bars to the panel, which I don't want. Is Move the best way to do this? How can I have the text start off screen on the right without it extending the panel bounds or having scroll bars appear? Sorry if this is an inane question, but I'm still quite new to Flex / ActionScript, so I'm still learning... ;) Appreciate any help here! Cheers, K. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Interlace text over FLV video
Got it - just discovered the horizontalScrollPolicy ;-) --- In flexcoders@yahoogroups.com, "kristian_wright2002" <[EMAIL PROTECTED]> wrote: > > OK, new problem though > > I've got the text over the video and it looks fine. However I want it > to repeatedly scroll from right to left across the video until the > video stops playing. > > I'm using the Move effect, and this works ok, except the height and > width of the Panel that the video is added to is fixed, and when the > text moves out of these bounds, it adds scroll bars to the panel, > which I don't want. > > Is Move the best way to do this? How can I have the text start off > screen on the right without it extending the panel bounds or having > scroll bars appear? > > Sorry if this is an inane question, but I'm still quite new to Flex / > ActionScript, so I'm still learning... ;) > > Appreciate any help here! > > Cheers, > K. > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Interlace text over FLV video
Yeah, thanks for that!! I basically changed the text component to a label one, as it's a DisplayObject type, and it works fine!! Cheers! --- In flexcoders@yahoogroups.com, "greg h" <[EMAIL PROTECTED]> wrote: > > K, > > Flex 2's default layout management is flat, just x and y coordinates. With > layout="horizontal" when you add a child it is laid out to the right (at a > greater x coordinate). With layout="vertical" when you add a child it is > laid out below (at a greater y coordinate). > > If I understand your question correctly, you would like to layer the text > above the video. Design environments often refer to this as a z-index or > z-order. Essentially a 3rd coordinate. In Flex this requires you using a > container specifying layout="absolute". When layout="absolute", the last > child added to the display list is on top. > > In your case I think this will mean adding both the VideoDisplay and a Label > or TextArea to a container providing layout="absolute". You can then set > the x and y coordinates of the text control overlapping the coordinates of > the VideoDisplay. Since the last child added to the display list is on top, > you would first add the VideoDisplay with your text control added last. > > Following are some notes from the training course: > Flex 2: Programming the Visual > Experience<http://www.adobe.com/support/training/instructor_led_curriculum/program_visual_experience.html> > > -- - - - - - > > Layering content using absolute layout > > Three Flex layout containers allow the use of absolute positioning: > >- Application container with the layout property set to absolute. >- Panel container with the layout property set to absolute. >- Canvas container only allows absolute positioning. > > You can create overlapping child components by setting your x and y > properties appropriately. > > If you have overlapping child components, the component MXML tag that is > lower in the code will appear on top of the components whose tags are higher > in the code. > > -- - - - - - > > Please post back if this helps. > > g > > On 9/22/06, kristian_wright2002 <[EMAIL PROTECTED]> wrote: > > > > I have an FLV video which I can play using the VideoDisplay component. > > I want to be able to interlace some text across this video when > > playing it (but not have it recorded on the video itself, so I can > > change it when required). > > > > I can't seem to see how this is done. Adding the text as a child of > > the VideoDisplay fails, as it's trying to add a DisplayObject, and not > > a string. > > > > This leads me to think that I'll have to create the text as a > > DisplayObject, but I'm not sure how... > > > > Any suggestions on how to achieve this? > > > > Cheers, > > K. > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Interlace text over FLV video
I have an FLV video which I can play using the VideoDisplay component. I want to be able to interlace some text across this video when playing it (but not have it recorded on the video itself, so I can change it when required). I can't seem to see how this is done. Adding the text as a child of the VideoDisplay fails, as it's trying to add a DisplayObject, and not a string. This leads me to think that I'll have to create the text as a DisplayObject, but I'm not sure how... Any suggestions on how to achieve this? Cheers, K. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Limit length of Webcam video recording
Thanks Abdul. Was looking into that as your answer came up! Works a treat! Cheers, K. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Limit length of Webcam video recording
I'm writing something that lets a user record streaming video from their webcam onto Flash Comm Server. However, I want to be able to set a limit on the time that they can record for (eg 1 min max). I've got the recording sorted out, but how would I go about imposing this time restriction on the recording? Also, is it possible to have a timer bar on a live feed so they can see in real time how much longer they have left to record? Any help appreciated! Cheers, K. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Using objects in XML
Solved! Created a function: private function createRepeaterData(label:String, id:String, required:Boolean, selected:int, dataprovider:Array):void { xmlText = ; for (var item:String in dataprovider) { xmlText.appendChild({dataprovider[item].label}{dataprovider[item].data}); } xmlPermissions.appendChild({label}{id}{required}{selected}{xmlText}); } and changed the Repeaters dataProvider to {rpComboBox.currentItem.dataprovider.info}. Works fine now!! --- In flexcoders@yahoogroups.com, "kristian_wright2002" <[EMAIL PROTECTED]> wrote: > > --- In flexcoders@yahoogroups.com, "bhaq1972" wrote: > > > > just a guess, in your repeater try > > > > > > > dataProvider="{rpComboBox.currentItem.dataprovider}" /> > > > > Didn't work - just returned an empty combobox. Also, my labels and > data are different (data is an int I use to query a DB, so it's > meaningless as a selection choice). > > Thanks though! > > I've also tried looping through my array and placing values in a string: > > for (var item:int=0;item { > strText=strText+""+arrARRAY[item].data+""+arrARRAY[item].label+""; > } > > and substituting {strText} for {arrARRAY} in my XML, but this again > causes the creation of 1 selection of: > > 1Value12Value2... > > At least the values are coming out now though, just all on one line still! > > Any other thoughts? > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Using objects in XML
--- In flexcoders@yahoogroups.com, "bhaq1972" <[EMAIL PROTECTED]> wrote: > > sorry i meant labelField="label" > > --- In flexcoders@yahoogroups.com, "bhaq1972" wrote: > > > > just a guess, in your repeater try > > > > > > > dataProvider="{rpComboBox.currentItem.dataprovider}" /> > > > I just tried both, but they give me the same result as my original question. Unsure as to why it cam back blank that first time though, but it's not blank anymore... But no, it didn't work. Cheers though! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Using objects in XML
--- In flexcoders@yahoogroups.com, "bhaq1972" <[EMAIL PROTECTED]> wrote: > > just a guess, in your repeater try > > >dataProvider="{rpComboBox.currentItem.dataprovider}" /> > Didn't work - just returned an empty combobox. Also, my labels and data are different (data is an int I use to query a DB, so it's meaningless as a selection choice). Thanks though! I've also tried looping through my array and placing values in a string: for (var item:int=0;item"+arrARRAY[item].data+""+arrARRAY[item].label+""; } and substituting {strText} for {arrARRAY} in my XML, but this again causes the creation of 1 selection of: 1Value12Value2... At least the values are coming out now though, just all on one line still! Any other thoughts? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Using objects in XML
I'm creating a dynamic from via a repeater that creates ComboBoxes surrounded in FormItems on the fly. My XML looks like the following: label name id name true {arrARRAY} 1 I convert the XML to an XMLList (based on combo), then this XMLList to an XMLCollection, which I in turn use in my repeater: The repeater works fine and creates the required ComboBoxes. The problem I'm having is with the dataProvider of the ComboBox. The dataprovider in my XML is an array that has been predefined with label and data fields. Using this in a ComboBox that has been manually created works fine, and displays as expected. However using the method described above just causes the ComboBox to have one value of "[object Object],[object Object], ..." and not the labels and data as expected. I've tries using arrARRAY, but this just gives me a literal value of arrARRAY, so I think {arrARRAY} must be the right thing to pass. I've used various different syntaxes in the repeaters combobox dataprovider field, but have had no success! Can anyone shed some light on how to solve this? Thanks, K. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Creating forms at runtime
I'm trying to create a form based on certain restrictions that are returned from a ColdFusion CFC. I only want certain form elements to be rendered depending on these restrictions, and these restrictions will only be known at run time. Can anyone give me an example of how this might be achieved? I keep the restrictions in an array, so I need to loop through this array, and if a condition in this array is "TRUE", then create the form item. Any help would be appreciated! Cheers, K. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Connecting multiple projects
OK - here we go... I have a Library Project called MyLibrary, containing 2 files: SubApp1.mxml and functions.as. Code for each shown below: SubApp1.mxml - http://www.adobe.com/2006/mxml"; layout="absolute" width="403" height="341"> - functions.as - public function test():void { Alert.show("Inside test function in functions.as"); } - I have a Flex project called MainApp containing one file called MainApp.mxml, code shown below: MainApp.mxml - http://www.adobe.com/2006/mxml"; layout="absolute" width="401" height="353"> --- In the Flex Library Build Path of MyLibrary, I select SubApp1 to be included in the classes. Then I open the MainApp Project properties and add MyLibrary Project to the Library Path in the Flex Build Path, then check the MyLibrary project in the Project References for MainApp. The problem is I keep getting errors on the lines calling the functions startSubApp1() and test() in MainApp.mxml. In my MainApp.mxml file, I've tried: import MyLibrary; -> nothing changes (same errors) import MyFakeLibrary -> nothing changes (same errors) import "MyLibrary"; -> throws an error on this line include MyLibrary; -> throws an error on this line include "MyLibrary"; -> throws an error on this line include "functions.as"; -> throws an error on this line include "MyLibrary.functions.as"; -> throws an error on this line But at the end of the day, I thought this wasn't necessary, due to the linking of the projects through build paths, project references etc. Starting to go bald, I've pulled out so much hair... Cheers, K. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Connecting multiple projects
Thanks Tom. Trying it out, but I'm still having problems referencing functions. I have a function inside an AS file (tmp.as) called test() that displays an alert. This is in a library called TestLibrary, which I've created and added to my main apps' project references. I've also added TestLibrary.swc to my Library path in the main apps' Project Build Path, with the link type set to merge into code. (tired also adding the entire TestLibrary Project to the library path of the main app instead of just the swc file, but same results...) I try and call test() from an AS file in my main app, but I still get "Call to a possibly undefined method test." compile error. I've tried referencing the function as TestLibrary.test() and TestLibrary.tmp.test() but no joy. Can you have a whole project as a library? I mean I have an mxml file in the library that contains includes to other AS files, including tmp.as. I don't check the AS files when selecting the classes in the librarys Library Build Path, as if I do, I get errors due to the use of the words 'public' and 'private' in my var and function declarations. But these AS files are not listed in the Assets tab, so it seems I can't include them anywhere. Which is why I assume they get referenced when I select the mxml file in the Library classes. Geeze, does that make sense??? Anyway, at the end of the day it still won't compile and I can't access functions from the library. Can anyone see where I'm going wrong from this convoluted description?? ;-) Cheers, K. --- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> wrote: > > On Monday 04 September 2006 12:03, kristian_wright2002 wrote: > > Looking into making the sub apps into Library Projects now, but not > > sure if this is the right way to go. Been scouring the net and trying > > I'd go that route. > > -- > Tom Chiverton > Helping to seamlessly benchmark world-class developments > > > > This email is sent for and on behalf of Halliwells LLP. > > Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. > > CONFIDENTIALITY > > This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. > > For more information about Halliwells LLP visit www.halliwells.com. > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Connecting multiple projects
I have build a couple of different Flex projects (eg a Login project and a Webcam project) and I'd like to link them together, but I'm not sure how. I've tried adding the required projects to my main project in the main projects Project References, tried copying the sub app's application mxml files to the main app, and adding it to the main apps Flex Applications, and also tried adding the sub apps path to the Source Path in main apps Flex Build Path, all with no luck. I can't seem to reference objects, functions or methods across these apps. Looking into making the sub apps into Library Projects now, but not sure if this is the right way to go. Been scouring the net and trying to find the answers in the Flex Help guide but still nothing!!! Can anyone help? What am I doing wrong??!!! I can post example code if it will help... -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Create Sound Spectrum in AS3
I'm trying to create a spectrum display for microphone input/playback in ActionScript 3 but can't seem to get it to work. I understand that the SoundMixer class does not control dynamically created Sound objects, but surely there is a way around this! Has anyone done this or have any ideas on how to approach this problem? I can record and playback the sound using rtmp and net streams just fine, but can't manage to create any form of sound spectrum from this sound. I'm at a loss here... Any suggestions would be appreciated!! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/