Hello All!
So I have created my first widget in Flash Builder 4.7. I am running Arcgis Viewer for Flex 3.1. When I attempt to bring my new widget into a viewer it just doesn't work. However, when I run from within Flash Builder the viewer comes up and widget works without a hitch. Here are the steps I took. Please advise me on what Im doing wrong. I assume that something is happening when creating the swf file.
Created new widget under the src-->widget folder. Named folder, xml and mxml "XYWidget". Added desired coding. I then went under Properties--> Flex Modules and added XYWidget.mxml to the directory. Finally I ran the "Export Release Build" to my designated output folder. I used the default location which is "bin-release" folder. Once it complied and completed I went to the bin-release folder and zipped up the XYWidget folder that included the swf and xml file. I opened the flexviewer and imported the customized widget zip file. It imports successfully. I then go into the config.xml file for both the flexviewer and flexviewers folders where the web server is running (again this is default locations C:\inetpub\wwwroot\flexviewer and C:\inetpub\wwwroot\flexviewers\xxxxexampleviewer) and I add the widget to the widgetcontainer
<widget url="widgets/XY/XYWidget.swf" config="widgets/XY/XYWidget.xml" label="XY" icon="assets/images/i_nav.png"/>
I then have tried opening existing project and adding widget in or creating a new one. Everything goes according to plan and then when I open viewer in browser the widget appears but it will not open. Ever...
What am I doing wrong? Thanks in advance for any assistance.
Sloney
So I have created my first widget in Flash Builder 4.7. I am running Arcgis Viewer for Flex 3.1. When I attempt to bring my new widget into a viewer it just doesn't work. However, when I run from within Flash Builder the viewer comes up and widget works without a hitch. Here are the steps I took. Please advise me on what Im doing wrong. I assume that something is happening when creating the swf file.
Created new widget under the src-->widget folder. Named folder, xml and mxml "XYWidget". Added desired coding. I then went under Properties--> Flex Modules and added XYWidget.mxml to the directory. Finally I ran the "Export Release Build" to my designated output folder. I used the default location which is "bin-release" folder. Once it complied and completed I went to the bin-release folder and zipped up the XYWidget folder that included the swf and xml file. I opened the flexviewer and imported the customized widget zip file. It imports successfully. I then go into the config.xml file for both the flexviewer and flexviewers folders where the web server is running (again this is default locations C:\inetpub\wwwroot\flexviewer and C:\inetpub\wwwroot\flexviewers\xxxxexampleviewer) and I add the widget to the widgetcontainer
<widget url="widgets/XY/XYWidget.swf" config="widgets/XY/XYWidget.xml" label="XY" icon="assets/images/i_nav.png"/>
I then have tried opening existing project and adding widget in or creating a new one. Everything goes according to plan and then when I open viewer in browser the widget appears but it will not open. Ever...
What am I doing wrong? Thanks in advance for any assistance.
Sloney