Flex :: HTML Component To Bitmap?

Jun 24, 2010

I'm creating a HTML Component in Flex, loading a URL and then capturing that element and converting it to a bitmap to try and replicate a sort of automatic screenshot saving process.However the bitmaps that it is producing do not contain any flash elements from the HTML.

View 1 Replies


Similar Posts:


Actionscript 3 :: Flex - Get The Bitmap Data From A Component

Jan 18, 2010

Is it possible to get the bitmap data from a component using ActionScript? I dynamically load an image. onComplete I create a Flex Image component and add the loaded image to the source

[Code]...

Later I want to create a new Image component and get the bitmapData from the first Image. I have tried this canvas.getChildAt(0) Which seems to give me the Image, but I can not figure out how to get the bitmap data. canvas.getChildAt(0).bitmapData; gives me a compile error "... undefined property" how ot get the bitmap data so I can use it in my new Image component?

View 3 Replies

Flash :: Converting A Flex Component W/images To Bitmap?

Jul 28, 2010

I am trying to take images I am placing in a flex canvas component to a bitmap. I was able to get to the point where I'm not getting an error but then no image shows up and the image I save out as a jpg is blank. I imagine I'm not setting the bitmap data correctly but can't figure out what I am doing wrong.

Here is the code where I am converting it to a bitmap:

[Code]...

View 1 Replies

Flash :: Flex - Change Bitmap And Label Of An Button Component [CS5 - ActionScript-s]

Jun 30, 2011

I have created one button component using one Bitmap and one Label in it. Thing is that when user Clicks on on the button I want to changes button's Icon/Image and Label Text. I want to do this using FlashCS5 and ActionScript-3. I have tried following but it gives me runtime Error

[Code]...

View 3 Replies

Flex - Accessing HTML Via AIR's HTML Component?

Jan 22, 2011

I can't seem to find anything in Adobe's documentation about accessing the HTML of a web page through the HTML component in AIR.

I've looked into "domWindow", but that seems to only return Javascript.

Is there a property I can access that has the whole of the HTML in string format or do I need to use URLLoader or something like that?

View 1 Replies

Html :: Load A Web Page In Flex Component?

Dec 22, 2009

Is there a way to display a web page in a flex component like Canvas, Hbox or TextArea?

View 2 Replies

Free Component That Normally Renders Html In Flex 4?

Aug 27, 2010

can anybody advise me a free component that normally renders html in flex 4? For example i need to render html such as:

<p class="Normal" style="color:#FF0000; text-decoration: underline;"><span class="" style="text-decoration: underline;">1.TESTgh</span></p>

i found iframe-flex. but it doesn't work in fourth version

View 1 Replies

Flex :: Possible To Open A URL In An External Browser From Within HTML Component?

Apr 20, 2010

I'm loading a webpage inside a HTML component in AIR. By default, when something is clicked the next page is loaded inside the HTML component itself. I want the links from that page to open in an external web browser.

View 1 Replies

Javascript :: Run Inside HTML Component In Adobe AIR Flex 4?

Mar 26, 2011

I have the following component in an AIR application from Flex 4:

<mx:HTML id="viewObject"
x="10" y="42" width="634" height="313"
location="http;//localhost:8080/mypage.php" />

Now I want to run a javascript when the page loads but the javascript isn't inside the target page. I want to run the following javascript:

javascript:alert('Hello world.');

I tried approaching it by setting the location property again to the javascript after the page has loaded like below.

<s:Button x="10" y="10" label="Button">
<s:click>
<![CDATA[

[Code]....

Unfortunately for me, that doesn't seem to work.

View 1 Replies

Flex :: Does Window.open Not Work Inside An AIR Html Component

Jun 15, 2010

I have a component in AIR like so:[code]The 2 alerts both work. however nothing happens when you click the new window link.all 3 links works when in a real browser so I know its ok.Is there just no support for window.open in the AIR HTML component? or is this a bug?Is there a work around?

View 2 Replies

Flex - Function To Redraw Bitmap On Sprite Without Passing In Said Bitmap?

Feb 22, 2011

If I have a BitmapData that's already been drawn onto a Sprite. Is there a way to redraw the BitmapData onto a Sprites Graphics object without having to invoke beginBitmapFill and passing in the same BitmapData?

View 1 Replies

Professional :: Contents Of HTML <title> Tag Not Rendering In AIR HTML Component?

Jul 8, 2010

I have an Air Application that uses a HTML Component. The HTML page that the component is rendering includes images with title tags. The tags render fine outside the Air Application, but when run in the AIR application, they do not render.

View 1 Replies

Flex :: 4 - Null-component - Checking If The Cancel Button Component In The Child Component?

Jun 23, 2011

I have a component "child" which has a cancel button. Now this component is placed in a state called "newChildComp" I also have another component called "parent". In the parent component, i have a button that dispatches an event. Here is the event code:

[Code].....

so, basically,i am checking to see if the cancel button component in the Child component, while i am still in the parent Compoent, was clicked, if it was clicked, call the cancelButtonHandler. The problem is by the time the addNewChild handles the event, that cancel button was still null. My question is how do i solve this without using the itemCreationPolicy on the cancel button?

View 1 Replies

ActionScript 3.0 :: Skinning A Button Component With A Bitmap?

Jul 7, 2009

I'm working on a Flash game and I'm using button components in the UI. I like that the key functionality is built into them and that they are fairly easy to skin. The problem is, I need to be able to skin them with a bitmap (specifically a PNG) using AS3. I've found a couple of Flex frameworks out there that might help but we're not using Flex in our development process.

View 4 Replies

Flex - Equivalent Of "View Source" For <mx:HTML> Component?

Aug 4, 2010

After setting an control's location to some site. How could I then take a peek at the associated HTML? I notice that as soon as I set Location, htmlText becomes null and vice-versa... So how would one go about looking at the HTML displayed in the control in TEXT form?

View 2 Replies

ActionScript 3.0 :: Changing The HTML In An AIR HTML Component?

Oct 23, 2010

Not really looking for a code example here, just an idea of what I should start looking into.
 
So here's the question.
 
Is it possible to change the HTML, or even run javascript into an HTML component after load?
 
I would of course need to have a listener, and when it fires, then do... something.
 
Do you know what that might be?

View 1 Replies

Html :: Rendering HTML Text Containing Advanced HTML Tags Like <strong> - <em> - <span> And Advanced HTML Entities In Flex

Aug 4, 2011

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:-

[Code]....

View 3 Replies

Actionscript 3 :: Save A Html Content As Bitmap In Flash?

Jan 24, 2011

There is possible to save as image a html content which is "under" flash of object ? I want to take a screenshot of web page and add text or graphics then save it to file.

View 1 Replies

Flex :: Make A Custom Component Or Extend The List Component For A 2D Top Down View MAP ?

Nov 11, 2010

I'm building a top view 2D map, that it's objects are stored on the server.The kind of objects are 10 and might be a photo, label, button, lists, mix of them or labels with tooltips.The component must request the "areas" that are missing on screen.An area is 1000x1000 px and is cached in flex.To move in the map, will be like in google maps (drag-and-drop).I should be able to have another list and move objects from one to another using drag-an-drop on objects. Ex.: I grab an objects from a list and I move it on this map, I release the mouse button and the item is placed there.Now the problem is: I build a custom component for this trying to emulate the item renderer for performance and recyclage, implement drag-and-drop on objects and request the areas that are missing?

or

I extend the List component from spark and I add some features as multiple kind of itemrenderers and use recycle on them. Of course it must be able to request the missing areas on the screen and cache it's data.Maybe create a custom layout is needed too.What I need is something that must be really fluid, so the lighter this component is, the better.

UPDATE: *There will be not any object over another.

*I will not use hitTest on bitmaps because all bitmaps are wrapped in another component,as they,for now are itemrenderers.

Anyway I already begin to do this using a class that extends the SkinnableDataContainer and a custom layout. As the layout is not like a grid, is sparse, random items at diferent points(x, y).How to get the localX and localY, relative to item renderer and not to the Spark List, from a DragEvent in Flex 4?

View 1 Replies

Actionscript 3 :: Flex - Access Component Inside Another Component In MXML?

Sep 3, 2009

I have two components. One is called "InsideComp" and one is called "OutsideComp". OutsideComp has InsideComp as one piece of its component, and in my main MXML file, I have embedded an instance of OutsideComp. How do I access a public variable of InsideComp within my main MXML file?In Actionscript, I could just do something like:OutsideComp.InsideComp.valToChange = 5; But I dont know how to do it in MXML. I know this is probably an easy question.

View 4 Replies

Flex :: Access The One Component Properties Form Other Component With Out Binding?

Sep 21, 2011

I would like to bind two components with out binding and which resides in different MXML.for eg: A.mxml has textinput and B.mxml has a combobox when choose one item in B.mxml selected item should be display in A.mxml textinput.

View 2 Replies

Flex :: Access Component Properties From Extending Component

Jul 29, 2011

I have a component with a public variable declared

[Bindable]
public var mnuSource:String;

When I extend this component, I can reference mnuSource (it compiles) but Runtime complains about the property not being accessible (error 1056).

How do you modify / declare component properties so they are actually available to other components?

View 2 Replies

Flex :: Remove A Component Using A Button In The Component?

Sep 29, 2010

I'd like to use a button within a component to remove it. So, you click it and the component is gone. But, I haven't figured out how you reference the component from within the component. What should I put in click=""?

My component: popCanvas

<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Panel width="200" height="200" title="hello"
click="remove=">

[Code].....

View 1 Replies

Flex - Define A MXML Component And Update MXML Component In Flex Application

Aug 12, 2009

A Flex components values are initlized by init methord. In an application flow, How to refresh a mxml component data value ; as init is callled at the start up it self only.

eg. of mxml componet may be as simple as button label or text as complex as repeater whose data provider is a web service ( means a fresh quesy should be made to pull the data and refresh the dataprovider of repeater )

View 3 Replies

Displaying Text As HTML In The UIscrollbar Component

Sep 9, 2009

I have a window on my Flash stage that has some scrollable copy in it.  The problem is, I can't seem to have any formatting for the text ... if I select a word or two to make bold, it all turns bold.  I gather I need to use the "Display Text as HTML" checkbox and then paste in some HTML formatted text but this doesn't seem to work.  I searched this forum and found that others were designating "htmlText" in Actionscript instead of just "text" ... that didn't work either.  I probably just did it wrong, or maybe it's becuase I'm using the UI component "UIscrollBar" for it's scrolling of the text.

Is there anything else I need to do to be able to format some text with strong tags and maybe some href links?
 
I have my properties inspector with the following check marks:

Display as HTML
Multiline
Dynamic Text
selectable

View 1 Replies

Professional :: Html Displayed Within List Component ?

Apr 21, 2010

I'm trying to do to familiarize myself with flash.   I'm loading an external XML document into a Flash AS2 project using the XMLComponent.  I'm able to get everything to display properly within my lists except for my hyperlinks.
 
I've enclosed my hyperlinks in the XML document using the <![CDATA[hyperlink]]>.    Once the movie launches.....the full URL tags are being displayed: (eg.  <a href="http://www.google.com">Google</a> )
 
My hyperlinks are in there own seperate List component. 

View 1 Replies

ActionScript 3.0 :: Using HTML Tag In XML To Populate ComboBox Component

Feb 24, 2011

I've actaully got all of this working.All I need now is to make the comboBox text HTMLtext so that I can use the HTML tags to color the text different colors or bold them.It might be important to mention that I need to change only some of the things listed, not the entire list.  So if my list on the comboBox is "item 1", "item 2", "item 3", "item 4", I only want "item 1" in bold and colored red.

View 1 Replies

ActionScript 3.0 :: Button Component Html Text

Feb 23, 2012

How to Apply htmlText for Button component.

var str:String="my name is <b>Kiran</b>"
button.label=str

i need look like as "my name is Kiran"
 
in this way not only  bold tag. Font family, color also.

View 1 Replies

Actionscript 3 :: Show The Alert On HTML Component?

Feb 22, 2012

I want to show PDF in Flex AIR. I have done this with HTML components but the problem is that whenever I view the PDF in Flex HTML component the popup or Alert goes behind the component.

how can I show the Alert on HTML component?

View 1 Replies

Professional :: HTML Displayed Within List Component?

May 21, 2009

Yet another simple project I'm trying to do to familiarize myself with flash.   I'm loading an external XML document into a Flash AS2 project using the XMLComponent.  I'm able to get everything to display properly within my lists except for my hyperlinks.
 
I've enclosed my hyperlinks in the XML document using the <![CDATA[hyperlink]]>.    Once the movie launches.....the full URL tags are being displayed: (eg.  <a href="http://www.google.com">Google</a> )My hyperlinks are in there own seperate List component. 

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved