flex

AlivePDF, can't set font

I have AlivePDF with Flex, making a webapp. I've got version 1.5 of AlivePDF but can't seem to set the font: myPDF.setFont( FontFamily.ARIAL, Style.BOLD ); this gives an error of "1067: Implicit coercion of a value of type String to an unrelated type int." Am I doing it wrong? ...

How come a swf can not reference mxml components on an event?

this piece of code is being placed inside a swf which is then being placed inside a mxml swfloader. The ProductDesigner is the name of the application and the selectRed is a HSlider mxml component. The error that I receive is that "Access of undefined property ProductDesigner" in the Flash CS5 when testing the swf. Yes I am able to pick ...

Facebook iFrame application: How to pass data from URL Query String

Hello! I have a Facebook application that has a picture gallery. It's build in Flex 4. I want to allow users to link to a specific image. How can that be done? The only way I see this being done is adding a GET var like &my_picture=asd.jpg in the Facebook page URL, but I don't know how to read that from the iFrame. ...

Forcing custom item renders to refresh

I have an AdvancedDataGrid. One of the columns in the grid displayed with help of custom render. During the application run, I set another custom render to the same column. When I scroll data in the grid (change values for the custom renders) they display new view correctly. I want that they dispaly new view automatically (when I set th...

Alternative method for creationcomplete

Hi guys.. I am trying to load bunch of product detail into a canvas component from a List component. Every time the user clicks on a product inside my List, the product detail will be displayed in the canvas component. The product detail might contain null and I want to check it before displaying in my canvas component. In my canv...

Flex/Actionscript Type error #1034

I'm trying to detect overlap between elements on my canvas. The attempt is to reuse some of the code for collision detection at http://www.gskinner.com/blog/archives/2005/08/flash_8_shape_b.html This is the smallest MXML sample I could come up with that gives me a type error. <s:Application xmlns:fx="http://ns.adobe.com/mxml/200...

Handling events from custom header renderer in AdvancedDataGrid.

Hi all! I have to create a custom header for the AdvancedDataGrid component. The custom header must have two buttons in it. The custom renderer must be applied to more than one column. How I can fire, dispatch and handle events from the custom headers? Any examples or tutorials are welcome! ...

Relative Positioning at bottom of the screen issue with Flex and different browsers

I have a flex component like this: <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" ... width="100%" height="100%" creationComplete="init()"> ....... <components:NavigationBar id="nagivationBar" left="0" bottom="0" /> This is supp...

How to determine currently sorted header column in data grid?

Hi I have a datagrid. I want to know which header the user clicked on to give the currently sorted view. Is there an API in flex framework that I can use to achieve this? Hopefully I can get back a column index so I know how it is currently sorted. Thanks, Mike ...

Adobe AIR 2.0 read and play midi format?

I wonder since I am interested in developing an interactive musicial application to read and play midi or even midi keyboard through VST interface, can I do that or do I have to develop a command line application to handle it? ...

Accessing Flex’s objects by id

I have a datagrid which has id="myGrid" in my application, from it I call a component. Now from the component I can call parentDocument.myGrid.selectedIndex = 0; and it works fine. But I want to make the component reusable, and I would like to pass the ID to the component each time, so myGrid will change, how to properly send the ID to ...

Does flex have a long expected lifespan.

This is a cross post. I've already posted the question to flexcoders. We work in flex as a technology. However a potential client has stated that they are worried about the lifespan of flex as a technology. Especially as apple doesn't support it on their mobile devices, and the increasing support for HTML5 within browsers. What I would...

mxml inheritance in Flex. how works "instanceof" and "is"?

Hi2all! Earlier i used following structure: Canvas -> Screen1 Canvas -> Screen2 When I feel need in common logic in my application I do next: Canvas -> Screen Screen -> Screen1 Screen -> Screen2 So when I try to apply it in my code if(child is Screen){ return child.localToGlobal(new Point()).x; } It is not works! When I see ...

Writing data into a text file in Adobe Flex

Hi, I am new to Adobe Flex. I want to write some data stored in a string variable into a text(txt) file. Can some one add sample code here would be helpful for me. Thanks. ...

Flex animation question.

Hi guys. I am trying to do a simple animation. I want to fade in and resize a List inside creationcomplete. My problem is that I can alway see the element flash in before the element animation begin. On the other word, the user will see the element appear for 1 second->then fade in and resize animation. I was hoping anyone here could ...

Is rtmp the only way to protect images

I have images that I need to manage access to. I've come across osmf and rtmp streaming which are flash/adobe technologies and would require me to install a special server. Anyone knows of other ways to get the same effect with php. Edit: By "manage access to" I mean that the average user would not be able to save the page and save the...

Flex - HTTPService and gzipped responses?

I have a Flex client making RESTful calls to a webservice using HTTPService. The server is returning JSON responses, which we would like to compress. Can Flex using HTTPService handle gzip-encoded responses? If so, what steps are required to make it work (e.g., which headers to set, how to decompress, etc.)? If not, can you suggest a ...

PyAMF (0.6) doesn't seem to include Django (1.2) ForeignKey related-objects on auth.models.User

I am trying to return a django.contrib.auth.models.User object, and it fetches all the data properly, but the related fields are nowhere to be found, even utilizing "select_related()" as suggested in documentation. class UserProfile(models.Model): user = models.ForeignKey( User, unique=True ) In pyamf gateway: def login_user( http_...

Flex release build issue!!!

Hello guys.. I am trying to finish up my applications but encounter a big problem.. I have 3 applications that will display on different page. ex:product.html will contain product.mxml, new product.html will contain newProduct.mxml,user.html will contain user.mxml.... They are three different projects and I want to put them together ...

Suppressing the EULA dialog the first time AIR 2.0 is run.

In AIR 1.5, I accomplished this by putting a 'eulaAccepted' file in Application Data\Adobe\AIR. This doesn't seem to be working in AIR 2.0. Has anyone figured out how to suppress the EULA dialog in AIR 2.0.2? Thanks. ...