flex4

How reading exif metadata from file

给你一囗甜甜゛ 提交于 2020-05-17 08:47:09
问题 I'm trying to implement the following Exif reading library with as3, but I can't load the browsed file. In the library example they use loader.load(new URLRequest("http://www.example.com/sample.jpg")); for loading the image, the problem in my application is that the file is selected by a file-browser in a local computer. I tried a fileReference.name but it doesn't work, the only way that I found to make my test, is putting a file in the same directory than the .swf like this : loader.load(new

How reading exif metadata from file

有些话、适合烂在心里 提交于 2020-05-17 08:46:58
问题 I'm trying to implement the following Exif reading library with as3, but I can't load the browsed file. In the library example they use loader.load(new URLRequest("http://www.example.com/sample.jpg")); for loading the image, the problem in my application is that the file is selected by a file-browser in a local computer. I tried a fileReference.name but it doesn't work, the only way that I found to make my test, is putting a file in the same directory than the .swf like this : loader.load(new

How to logout during onbeforeunload/onunload using Javascript

China☆狼群 提交于 2020-04-28 19:57:51
问题 <script type="text/javascript"> window.onbeforeunload=before; window.onunload=after; function before(evt) { var message="If you continue, your session will be logged out!"; if(typeof evt=="undefined"){ evt=window.event; } if(evt){ evt.returnValue=message; } } function after() { var flex=document.${application}||window.${application}; flex.unloadMethod(); //calls the flex class containing the "unloadMethod()" which //calls the logout.jsp that does the actually dropping of credentials } <

flex mobile TabbedViewNavigatorApplication back button part2

谁说胖子不能爱 提交于 2020-02-06 06:34:06
问题 Refer back to : flex mobile TabbedViewNavigatorApplication back button I have 2 Tabs. Tab1 has 2 sub Views: Tab1 Tab1subViewA Tab1subViewB Tab2 subview... In Tab1 (Tab1SubViewA is the first View), -> I navigate to Tab1SubViewB (still under Tab1). How can I go back to previous view (Tab1SubViewA)? Note: it's not moving from Tab to Tab but moving from View to View all in the same Tab. code for Tab1SubViewA: <?xml version="1.0" encoding="utf-8"?> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"

flex mobile TabbedViewNavigatorApplication back button part2

ぃ、小莉子 提交于 2020-02-06 06:33:53
问题 Refer back to : flex mobile TabbedViewNavigatorApplication back button I have 2 Tabs. Tab1 has 2 sub Views: Tab1 Tab1subViewA Tab1subViewB Tab2 subview... In Tab1 (Tab1SubViewA is the first View), -> I navigate to Tab1SubViewB (still under Tab1). How can I go back to previous view (Tab1SubViewA)? Note: it's not moving from Tab to Tab but moving from View to View all in the same Tab. code for Tab1SubViewA: <?xml version="1.0" encoding="utf-8"?> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"

Flex 4 - How to set errorTip in FormItem?

99封情书 提交于 2020-01-24 15:30:06
问题 I am the new one for flex 4. In my sample application, I am using validator. It display's the error message and icon at beside's of the control. My question is, How to remove these error message and error icon? And I want to display my error message as a errorTip when the mouse is over the particular control. Thank you. Edit My sample code. I am using this with some other controls <fx:Declarations> <mx:StringValidator id="nameValidator" source="{employeeName}" property="text" tooLongError=

Flex 4 Custom Component - How to notify skin of property changes?

ぐ巨炮叔叔 提交于 2020-01-24 04:13:05
问题 I have a custom Flex 4+ component that I am trying to make and have the skin be aware of changes to a custom property. This property will determine the graphic on the button (and some other visual changes) but the data will change constantly as it will be updated by a timer. I've looked at untold examples and still seem unable to get the syntax correct or discover how things should be separated. I've looked at overriding commitProperties and the PropertyChangeEvent without success. So I have

Post-processing captured video in AS3, creating slow motion

假如想象 提交于 2020-01-23 18:55:49
问题 I have an interesting project wherein I need to allow users to capture video of themselves with a webcam at a kiosk, after which I email them a link to their video. The trick is the resulting video needs to be a 'slow motion' version of the captured video. So for example, if someone creates a 2 minute movie, the resulting movie will be 4 minutes. I'd like to build this in Flex / AS3 if possible. I don't have issues capturing the video and storing it / generating and emailing a link, but

Flex Charts: Can you use a minimum/maximum point from an IAxis for Cartesian Data Canvas to draw the entire width of the chart?

情到浓时终转凉″ 提交于 2020-01-23 03:30:29
问题 I have a chart with a DateTime axis as my horizontal and a Linear Axis for my vertical inside a Adobe Flex Line Chart. I want to use a Cartesian Data Canvas as a background element and draw custom set of background graphics mostly rectangles. When I have more than a single data point, the graphics work perfectly since they are supposed to span the width of the entire chart. When I have only a single data point, however, I can't seem to get the rectangles to draw. Since I want my rectangles to

How do I set the dataProvider for an <s:List> component to be an XML file?

♀尐吖头ヾ 提交于 2020-01-21 10:14:28
问题 I've got the latest Beta of Adobe Flash Builder 4. I want to use a <s:List> component, and specify the dataProvider as being an XML file. However, after loads of research (including looking at doc links off labs.adobe.com), I still can't figure out how to do it. The XML file will look something like this: <?xml version="1.0" encoding="ISO-8859-1"?> <imageList> <image location="path/to/file1.jpg" /> <image location="path/to/file2.jpg" /> <image location="path/to/file3.jpg" /> </imageList> 回答1: