Flex :: Making Image Span Across Several Components?
Aug 11, 2009
Recently I've found a nice on-line diagramming tool - LovelyCharts. I like the way UI is designed - you can view screenshot here. I wonder how to make an image that span across multiple components, like the LovelyCharts logo in the upper right corner of the screenshot.
As a work around, I am trying to add an creationComplete listener to the canvas in my custom component and used to give titleImage.source = this.path . keep changing the image or when the path of the image fetched using some async call.
I currently have two problems with Flex 3 htmlText.
1) When I am setting my text's htmlText: myText.htmlText = <html text stored in my mysql database> It calculates the height way wrong. In most cases, a ton of padding (or whitespace) is added above and below the text. I am not sure what happens, but it calculates the textHeight way higher than normally.
2) If I put <span> tags in my html, it automatically strips them out (instead of just ignoring them). I am using the span tags to be able to dynamically find certain pieces of my text. For instance: <span class="salutation">Dear,</span> <span class="tag">[First Name]</span> is inserted in my htmlText, and I use them to parse out the salutation and tag of my variable data.
Any alternative ideas on how to parse out pieces of html? Any way to improve htmlText? How to correctly measure textHeight and/or remove padding?
I am created a dynamically adding a VBox, that contains two images. Into a Custom Component that is derived from UIComponent. The problem is the Vbox that contains the two image is only a really tiny size. I would like the VBox stretch to the size of the two images. This is how I am creating the Vbox....
In the following code ,onclick of fruits image how to make the fruits image drop in the box image with proper effect(i.e, dropping of the fruit image into the box image should be shown).
Is it bad practice/design to nest components inside components using Flex 4? Should I simply be creating components and inserting them into my main application as below, or doesn't it matter?
I need your opinion on best way of skinning components do you prefer raster or prosperity based styling like CSS? or maybe you like the Flash way of styling with IDE? Raster vs. Vector which many have mentioned, there is much of a complexity when applying custom skins to components.I know that the flash at its origin where designed to draw vector graphics, by i'm personaly not a huge fan of vector.Many bigger widget/application kits are based on using multiple bitmaps to draw their custom style onto regular components.Maybe this is the way to go? when building a custom framework i in a dead zone where i don't know which way to go, if should go with property styling or bitmap skinning. Bitmaps sounds more fun and more complex styles can be made with bitmaps including noise..Generally i want your opinion for implement the structure that to most developers/designer are comfortable with
For the past half year i have been working on my pride.Im under develop of a new cutting edge application platform. This enterprise application and the platform is build onto my custom developed as3 framework that handles much of what a modern (minimal) operation system does. Inspired by Gskinners (old) Flash OS (cant not post the link as signed to as.org today).
was wondering if anyone could assist me with some actionscript. I am working on a project similar to this (thehideout.org.uk/refuge/) and making the background image move around as if it the scene is a POV.
I need the ActionScript (2.0): 1) When rolling over a moving image (like a filmstrip), I want the image to stop and then it zooms into a larger image. 2) Then when you click on the larger image, it goes to another URL page in my webiste.
On my file I got an external XML(which I can not edit) loaded into my file. I also have a CSS file for text/link styles which works if I use my own xml file with <span> tags. But the external xml I want to use does not have the span tags so the CSS is not applied as expected... My code looks like that, how can I work it out so I can use the span tags?
I have one layer with two tween spans, and would like to have a different symbol for each span. However, I cannot seem to do this without adding a keyframe in between the spans: if I have just the two tween spans, and replace the symbol in one, the symbol in the other span is also changed. What am I doing wrong here? (Using CS4)
According to this webpage, the htmlText property in TextArea can handle CSS text style if using span tag. I want to format multiple tags in my code. Something like:
var tags:TextArea = new TextArea(); tags.htmlText = "<span style='color: rgb(165, 150, -90); font-size: 0.955882610016677em'>street</span>,[code]............
It only gives me plain text. I was wondering if it is supported in the htmlText property and how do I get around this.
I am changing image through flex every time i change it saved into server directory with same name(which i am referring to show). So when i refresh my page my browser didn't send new request to server since it's already in request.so didn't getting new image.Tip:- when i clear browser history it will come with new image
I am designing a web application in Flex 4 and currently facing an issue rendering advanced HTML tags and entities in Flex 4. All I want to do is basically render an HTML text coming to me something like the one given below:-
I'm referring to the span of selected frames when in "Edit Multiple Frames" mode. (I've attached an image of the thing I'm talking about.) When I'm editing multiple frames, the multiple frame span "cursor"(?) always follows me around whenever I select a new frame on the timeline. Is there a way to lock it in place or prevent it from constantly changing whenever a new frame is selected?
I have created a motion tween to fade in a symbol on the stage. I have set a there is a diamond keyframe marker at the point where the alpha of the symbol goes to 100%. I want to be able to drag that marker to a later point on the motion tween span (not sure if I have my terminology right here) but I find that I cannot -- I have to delete the keyframe and recreate it at the point where I want it.
I am using the galley template from [uRL]..and after 6 menu titles it spans off screen and i want to know is there a way to span down after 6. Header 1Header 2Header 3Header 4Header 5Header 6Then 6 would be here
i have textflow with name mytextflow and after i wrote text i want to replace the text with another in array i use these code it's go write but replace the line with the second element in array line 1 with array2 and so
for ( var ii:int = start_index ; ii <= end_index ; ii++) { add_kashida(ii); }
I want the classic odometer styled counter but i want to put in some information for it to run with.. A start date, a end date and a number (e.g. meters) which needs to be reached in the given time spanThe odometer should hereafter show the current progress and increased accordingly.So i figured out how to get the time span traced out in seconds and thereby the meter increase every second (dividing: meters/seconds)Now the tricky part is to put these numbers in the odometer: The current progress and the increasement.
I have created a widget for flash that retrieves the xml rss feed and displays whatever information is in...the title, description, image, etc...Im having a problem to retrieve some very specific information from this XML feed... take a look at how the xml is configured:
I've been searching for the last couple days but can't seem to find a basic example of what I'm looking for. I'm developing a Flex 4.5 app and in it I have a viewstack of 2 components that use some of the same services. Currently the only way I can get the app to correctly use the web services is by defining 2 different web services that use the same PHP web service file. For example: I have an app, and within it I have a viewstack with tab navigation of 2 components: #1) retrieve a list of all Salary Employees, and #2) retrieve a list of all Contractors. Currently to get it working I am defining a UsersTableEmployees webservice within component #1 and a UsersTableContractors webservice within component #2, but they both point to the same PHP class, and only differ in the arugment value I pass to them. Ie, getUsers("employee") and getUsers ("contractors"). Of course this is not best practice.
Searching StackOverflow and Google gives me many results about ColdFusion and MVC (example What's the best way to share data between components in Flex?), but I'm still confused. Can anyone here point me to a basic example (even sample MVC) and source code of an app that uses Zend AMF and allows different components to call common web services?
I want to create a custom component library. the components are customize-able during creation time. means like Accordion or TabNavigator, when we drag and drop the Accordion in flash builder it
I am using a custom component within another custom component in a flex mxml application file.Is it possible to bubble events from an inner component to the outer component and handle events in the outer component?