[flexcoders] Re: Help with Flex SDK Tutorial - What am I doing wrong?
OK, maybe there is a better way to phrase my question. I want to get started learning Flex and I don't have a commercial IDE. What do I need to get started - the Flex SDK and what else? Dave --- In flexcoders@yahoogroups.com, "David April" <[EMAIL PROTECTED]> wrote: > > Thanks Alex - but I don't have Flexbuilder. I am just working with the SDK > on the command line right now. > > Dave > > On Tue, Nov 18, 2008 at 10:55 PM, Alex Harui <[EMAIL PROTECTED]> wrote: > > > If you have FlexBuilder, create an AIR app and look at the -app.xml for > > the version. I'll bet the tutorial got stale and has an old version. > > > > > > > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > > Behalf Of *Dave April > > *Sent:* Tuesday, November 18, 2008 3:34 PM > > *To:* flexcoders@yahoogroups.com > > *Subject:* [flexcoders] Help with Flex SDK Tutorial - What am I doing > > wrong? > > > > > > > > > > Hi all - > > > > I hope I don't sound like too much of an idiot here... > > I am trying to run the Flex SDK tutorial at: > > > > http://livedocs.adobe.com/flex/3/html/help.html?content=SDKHelloWorld_1.html > > > > 1. I create HelloWorld.mxml and HelloWorld-app.xml (directly cutting > > and pasting from the tutorial page) > > > > 2. I successfully compile using "amxmlc HelloWorld.mxml" > > > > 3. I try to run "adl HelloWorld-app.xml" and I get "error while > > loading initial content" > > > > What am I doing wrong? > > > > Thanks in advance. > > > > Dave > > > > > > >
Re: [flexcoders] Help with Flex SDK Tutorial - What am I doing wrong?
Thanks Alex - but I don't have Flexbuilder. I am just working with the SDK on the command line right now. Dave On Tue, Nov 18, 2008 at 10:55 PM, Alex Harui <[EMAIL PROTECTED]> wrote: > If you have FlexBuilder, create an AIR app and look at the –app.xml for > the version. I'll bet the tutorial got stale and has an old version. > > > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Dave April > *Sent:* Tuesday, November 18, 2008 3:34 PM > *To:* flexcoders@yahoogroups.com > *Subject:* [flexcoders] Help with Flex SDK Tutorial - What am I doing > wrong? > > > > > Hi all - > > I hope I don't sound like too much of an idiot here... > I am trying to run the Flex SDK tutorial at: > > http://livedocs.adobe.com/flex/3/html/help.html?content=SDKHelloWorld_1.html > > 1. I create HelloWorld.mxml and HelloWorld-app.xml (directly cutting > and pasting from the tutorial page) > > 2. I successfully compile using "amxmlc HelloWorld.mxml" > > 3. I try to run "adl HelloWorld-app.xml" and I get "error while > loading initial content" > > What am I doing wrong? > > Thanks in advance. > > Dave > > >
[flexcoders] Help with Flex SDK Tutorial - What am I doing wrong?
Hi all - I hope I don't sound like too much of an idiot here... I am trying to run the Flex SDK tutorial at: http://livedocs.adobe.com/flex/3/html/help.html?content=SDKHelloWorld_1.html 1. I create HelloWorld.mxml and HelloWorld-app.xml (directly cutting and pasting from the tutorial page) 2. I successfully compile using "amxmlc HelloWorld.mxml" 3. I try to run "adl HelloWorld-app.xml" and I get "error while loading initial content" What am I doing wrong? Thanks in advance. Dave
Re: [flexcoders] Viewstack and passing variables to children
Gordon, This is EXACTLY what I was looking for to get the button to link to the other child page. Thank you s much for posting that. Doug, I see what you are saying, but I'm so new to Flex and I didn't come over from Flash Dev. so I'm really not that hip on ActionScript. If someone could provide a little more assistance, that would be so awesome. Here is what I've gotten so far (and I'm not sure if any of it is correct): On JobSearch.mxml I set this up: [Bindable] public var job_id:Number = currentJob.job_id (I'm hoping that'll assign the job_id variable the job_id of the current selected job) On Timeline3.mxml I set this up: [Bindable] public var job_id:Number I am not sure how to use the DataBinding to hook up the two. Thank you in advance for further assistance to us ignorant newb Flex Coder posers. :-) April On Mar 15, 2007, at 4:00 PM, Gordon Smith wrote: If the Button is in JobSearch.mxml, then "walking the DOM up" would mean calling parentDocument.preTrafficNav.selectedIndex = 1; because the parentDocument of JobSearch is the app (or component) containing it, which also contains the ViewStack preTrafficNav. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug McCune Sent: Thursday, March 15, 2007 12:03 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] I'll agree that an event dispatching method is sort of the "correct" way to go. But if you want a quick way that will work, you could have a bindable public variable named job_id in both your JobSearch and Timeline3 components and then use data binding to bind the job_id in Timeline3 to the job_id in JobSearch. So that way whenever it's updated in JobSearch it will get updated in Timeline3. Doug On 15 Mar 2007 11:44:59 -0700, Karl Johnson<[EMAIL PROTECTED] > wrote: There are a lot of ways to accomplish this, but the best practice would be to fire off an event in JobSearch and have either Main listen on it and call a fuction in timeline3 or use a central event dispatcher and have timeline three listen for it directly. But you could also use application.Application.timeline3.methodName or walk the DOM up, but neither are really advised. Karl Cynergy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of April Rosequist Sent: Thursday, March 15, 2007 1:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] I've been looking all day and can't find a solution to this - although I'm sure it's very simple. I have a main application that I'm using a ViewStack in: This works great. :-) The JobSearch.mxml page has a button that when you click on it, I want to take the job_id variable I've declared and pass it to the Timeline3 page and have that page as the main page. If I put the button on the main.mxml page, everything works fine (except for passing the variable, but it will at least change the page)... but if I put the button on the JobSearch.mxml page it doesn't work. I guess I don't know the syntax for doing that. If someone would help me with the syntax to link from one child to another, when the children are their own mxml pages I would be s appreciative. Thanks! April
[flexcoders] Viewstacks - link from one child to another
I've been looking all day and can't find a solution to this - although I'm sure it's very simple. I have a main application that I'm using a ViewStack in: Main.mxml Then I have JobSearch.mxml The JobSearch.mxml page has a button that when you click on it, I want to take the job_id variable (currentJob.job_id) I've declared and pass it to the Timeline3 page and have that page appear. I'm very new to flex, I don't know a lot of the syntax and I'm having a lot of trouble getting started. If someone would help me with the syntax to link from one child to another, when the children are their own mxml pages I would be s appreciative. Thanks! April
[flexcoders]
I've been looking all day and can't find a solution to this - although I'm sure it's very simple. I have a main application that I'm using a ViewStack in: This works great. :-) The JobSearch.mxml page has a button that when you click on it, I want to take the job_id variable I've declared and pass it to the Timeline3 page and have that page as the main page. If I put the button on the main.mxml page, everything works fine (except for passing the variable, but it will at least change the page)... but if I put the button on the JobSearch.mxml page it doesn't work. I guess I don't know the syntax for doing that. If someone would help me with the syntax to link from one child to another, when the children are their own mxml pages I would be s appreciative. Thanks! April
[flexcoders] Re: Populate ComboBox from database - NOT using Flex Data Services
Thank you for everyone's responses, but I'm still not having any luck. I'm not getting any errors - but my combobox is not populating. Again, I'm really new to Flex. My app is called PreTraffic with the following structure: PreTraffic cfc (folder) job.cfc JobSearch.cfc ** job.cfc contatins: SELECT job_id, job_title FROMjob WHERE status = 'O' ORDER BYjob_title SELECT job_title AS label, job_id AS data FROMjob ORDER BYlabel ** JobSearch.mxml contains: http://www.adobe.com/2006/mxml"; xmlns="*" layout="absolute" backgroundGradientColors="[#ff, #d0d0d0]" creationComplete="InitApp()">
[flexcoders] Re: Populate ComboBox from database - NOT using Flex Data Services
Thank you very much for this response. I think this is still a bit over my head at this point (I have only done tutorials, and none of the tutorials interact with a database the way I will be) but I will give it a stab and see what I can do with it. I was looking at an article on Ben Forta's blog (http://www.forta.com/blog/index.cfm? mode=e&entry=1786) and following his example I did this... only it doesn't work: I'm very very new to Flash and we are using ColdFusion but are not using Flex Data Services. I've been trying to figure out how to populate a combobox from a database and I'm just not having any luck. My project is called "PreTraffic". I have my main file as "JobSearch.mxml" and a folder under the root named "cfc" with a file called "job.cfc". job.cfc contains the following code: SELECT job_id, job_title FROM job WHERE status = 'O' ORDER BY job_title SELECT job_title AS label, job_id AS data FROM job ORDER BY label And JobSearch.mxml has the following code: http://www.adobe.com/2006/mxml"; xmlns="*" layout="absolute" backgroundGradientColors="[#ff, #d0d0d0]" creationComplete="InitApp()"> My Compiler thingy points to: -services "/Volumes/flexwwwroot/WEB-INF/flex/job-services-config.xml" -locale en_US and job-services-config.xml contains the following code: flex.pretraffic.cfc.job true Well, when I run the app... the combobox is not populated... Can anyone help with what I've done wrong? Thanks!
[flexcoders] Populate ComboBox from database - NOT using Flex Data Services
Hi there, We are using CF with Flex but are not using the Flex Data Service. I'm very much a newb and I'm having trouble finding any information on how to populate controles from a database without using Flex Data Service. Any help would be greatly appreciated. First I have a page... JobSearch.mxml that contains a combo box that I want to populate with the job_id and job_title from a MSSQL database. In Flex in the RDS DataView I used the "Create CFC" Wizard which generated "job.cfc" and "jobGateway.cfc". It also generated "job.as". The CF Function that selects the data appears to be defaulted and called "load" and the .as function is called simply "job". So, that all looks great. But I can't find any information on what I need to have on my JobSearch.mxml to actually get this data into the comboBox. I did: And then: But I'm being told "Type was not found or was not a complie-time constant: job" I guess I'm missing something, or doing something way wrong... I just don't know enough of Flex at this point to know what it is. Thanks! April
[flexcoders] www.flexgrocer.com down
I'm working through the "Adobe Flex 2 Training from the Source" book and sometime yesturday the www.flexgrocer.com site went down making it impossible for me to run and test my applications. I've contacted Peachpit Press although I'm not sure if they were the correct contact, but I couldn't find anything on the adobe site. Does anyone have any idea on the status of getting this site back up - or who I should contact to let them know it is down? Thanks! April