Flex :: Implement The Functionalities Of BitmapImage Without Inheriting?

Mar 31, 2011

this.container.addElement(myCustomImageInstance as GraphicElement) must display the test image.

package com.www
{
import spark.primitives.BitmapImage;
import spark.primitives.supportClasses.GraphicElement;
public class BaseTest extends GraphicElement

[Code]...

View 1 Replies


Similar Posts:


Flex :: Provide Functionalities For Buttons In F3?

Nov 25, 2010

I am new to flex. I want to create some buttons and when v click on that button, it should open some images. how to give this functionality in flex builder 3.

View 3 Replies

Actionscript 3 :: Proxy Server Functionalities In Flex?

Jun 11, 2011

explain me briefly what is proxy server and what does it do

View 1 Replies

Flex :: Scale And Clip A BitmapImage In F4.5?

Aug 29, 2011

I need to scale and clip images into square sized tiles to put into a tile list. Here's how

For each image, I want to scale the shorter side (either width or height) to fit in the tile using the "letterbox" scaleMode (so that it maintains aspect ratio).Then I want to position the image in the center and clip away anything left over from either both sides or the top and bottom.

I have an image with width=600px and height=1200px. First I want to scale the image to width=300px and height=600px (notice that aspect ratio is maintained), then center the image vertically and clip the image to 300 x 300.

Is this possible? This is actually a pretty standard way of displaying square thumbnails in many photo-based web sites, but I can't find a way to make it work in flex.

View 1 Replies

Flex :: Adding A BitmapImage To A Canvas?

Sep 4, 2011

I am trying to load a BitmapImage from an embedded source image and add this to a UIComponent. I am attaching the code that I have below. I have not been able to get this to work.

var bitmap:BitmapImage = new BitmapImage();
bitmap.source ="@Embed('sample.jpg')";
var graphic:Graphic = new Graphic();
graphic.addElement(bitmap);
thumbHolder.addChild(graphic);

When I run this I dont get an error, but no image appears in thumbHolder (My UIComponent).

View 1 Replies

Actionscript 3 :: Flex - Tooltip Can Be Used With Bitmapimage

Jan 12, 2012

I am using Bitmapimage in my code.After a lot of seach on google i could not find How tooltip can be used with Bitmapimage.

View 1 Replies

Flex :: Adding Functionalities To The Right Border Of An AdvanceDataGrid Component?

Mar 25, 2011

I'd like to add some functionalities to the right border of my ADG component tothe user resize and potentially do more stuff. Is there a skin for that border? For instance, how would you make it wider, or add a handle that perhaps animates when you hover over it?

View 1 Replies

Flex :: Dynamically Create Graphic With BitmapImage Child?

Dec 11, 2010

I've trawled the net trying to find a solution, but everything seems to be mxml-centric. What I want is to dynamically create a series of Graphics objects each with a child BitmapImage.[code]...

View 1 Replies

Flex :: Inheriting Properties From A DisplayObject?

Dec 21, 2009

In regards to as3 project: Is there a way to inherit the properties of a given DisplayObject? I am looking for a single method that will grab something like the x, y, width, height, color, etc. Whatever is involved in the common classes between the two display objects.

Edit:

I don't think I was clear enough... Let me give an example of the type of functionality I am looking for.

var sp1:Sprite = new Sprite();
sp1.x = 30;
sp1.y = 30;
sp1.width = 500;
sp1.height = 30;
var tf1:TextField = new TextField();
tf1.inheritTransform(sp1);

So, in this case I know that the method 'inheritTransform()' doesn't exist, but I am wondering if there is something similar. Or maybe I am missing the point of extending a class in some way? I don't see how the two would relate in such a case.

View 2 Replies

Java :: Flex Inheriting Logged In User

Mar 22, 2010

I am trying to secure my Flex application within my Java web application. Currently my Java web application, handles logging and managing user accounts and the like. I was wondering if there is a way to essentially share that user credentials with the Flash movie in a secure mechanism? For instance, if you log in, we want you to be able to save items in the Flex application for that user, only if that user is logged in of course. I'm running Tomcat 5.5, Java 6 doing portlet development inside a Vignette Portal. All data communication is via Blaze DS. In our environment, we have data services and the portal handles logins, user management and the like. Currently we are simply passing down the username to the flash movie, which I don't feel is very secure.

View 2 Replies

Flex :: Style Inheriting When Module Include Chart

Feb 16, 2012

I meet a problem when migrate the application for flex 3.5 to flex 4.5. The char style cannot be apply correctly when set the style in application, it still use columnChart default style. But when I move the fx:Style declaration to ColumnchChartModule, the char style works. Could someone help me to explain why the style inheriting is broken? the button style seems working, when I define a button style in application.[code]

View 1 Replies

Flex :: Use BitmapImage Spark Class Instead Of Mx Image Class?

Mar 14, 2010

I am trying to use BitmapImage spark class instead of mx image class.Image loads the same, fine

<s:BitmapImage id="img" source="sample.jpg">
</s:BitmapImage>

But I have an issue with adding mouse events on it, eg:

img.addEventListener(MouseEvent.CLICK,clicked);

do not trigger any mouse events when clicking on the image

View 1 Replies

ActionScript 2.0 :: Saving A Screenshot Of SWF Without Any Server Side Functionalities?

Nov 2, 2009

how I can save a screenshot of a SWF. All the examples I found requires some form of PHP scripts and some action on the server side.I am doing a simple program where at the end, the players will be awarded a certificate and they have to be able to save it on their desktop. This program is to be run on a cd-rom or off a local hard disk, thus it must not involve any server side actions.

View 2 Replies

Flex :: How Does One Implement The Google Maps 3D API (or Similar) For Flex With A Local Map Cache

Aug 17, 2010

I am writing a Flex application for use on a private intranet with no external Internet access. I want to use Google's 3D Maps Flex API, but it must be connected to the internet to download map tiles on demand.

Is there a way to locally cache the 3D map tiles and data so that I can run this app without an internet connection? And if not, is there a 3D GIS that supports Flex integration and allows for a local map cache?

View 1 Replies

Flex :: Use TweenLite To Implement Effect Of Flex's PopUpManager?

Apr 21, 2011

How can I use TweenLite to implement effect of Flex's PopUpManager?

View 1 Replies

ActionScript 2.0 :: Duplicate Nested MCs Not Inheriting

Apr 30, 2005

I have one mc lets call this mc1 with 3 or 4 mcs nested inside of it. Now I have copied and pasted this mc and called it mc2. Now if I change something in any of the mcs inside mc 1, mc2 automatically gets the same changes and vice versa, any way to avoid this? So I can have the mc1 containing something different than mc2.

View 1 Replies

ActionScript 2.0 :: Duplicate Nested Mcs Not Inheriting?

Apr 30, 2005

i have one mc lets call this mc1 with 3 or 4 mcs nested inside of it now i have copied and pasted this mc and called it mc2.now if i change something in any of the mcs inside mc 1 mc2 autmatically gets the same changes and vice versa, any way to avoid this? i can have the mc1 containg something different than mc2

View 1 Replies

Flex - Implement Screen In Flex When App Is Busy?

Mar 16, 2010

I have a function that restores all of the default settings of my application. This process can take a bit of time, so I would like to implement a "Please wait..." modal popup to let the user know that everything is alright and the program hasn't frozen. Once the function completes its task, I'd like for it to remove the message, and resume normal behavior.

View 4 Replies

How To Implement This Layout In Flex 4

Apr 23, 2010

I'm learning layouts in Flex. I try to make the following layout.The red arrow means when enlarge the window, the red arrow widget will become large too. Can anyone implement this layout in Flex?

View 2 Replies

Actionscript 3 :: Inheriting Constructor Arguments From Parents

Apr 14, 2012

I'm making a game in action script 3. In it, I have an actor class from which player and enemy classes will be derived. I'm doing this so that unless I need to provide specific AI or fancy behavior (such as for bosses), I can just make a new clip in the library for each enemy without making an actionscript file.

However, I've run into a problem.

Whenever I try to pass arguments to the construction of an enemy (make it spawn with more health), I get error 1136 (Incorrect number of arguments.)

This is because the constructor created automatically at runtime doesn't have the same arguments as it's parent class. Is there any way to get around this without making a class file where I copy and paste the parent constructor function for each of my hundreds of enemies?

View 2 Replies

Flash - Children Inheriting Parent's Colortransform?

May 17, 2011

How to avoid children inheriting parent's colortransform in flash?

View 2 Replies

Actionscript 3 :: Inheriting XML Files And Modifying Values?

Apr 1, 2012

This is a question about concept.

I have an XML file, let's call it base:

<base id="default">
<tags>
<tag>tag_one</tag>

[Code]....

But I'm not happy with my solutions. I don't know anything about XSLT or other XML transformation tools, but I think someone must have done this before.

The key goal I'm looking for is ease to write the XML by hand (both the base and the "extended").

I'm open to new solutions besides XML, if they are easy to write manually.

View 1 Replies

ActionScript 3.0 :: Implement Localization In FLEX?

Aug 16, 2011

How to achieve Flex Localization !! In my current project other than English, I need to change the language to French/Spanish also.I am using FB 4.0 and it integrated with Java/Jsp/xml. There is lot of integration in almost all modules. Here the requirement was, i want to display a comboBox with French/Spanish options. Now based on the selection whole application language has to change ie either French/Spanish.

View 1 Replies

Flex :: How To Implement HTTP Tunneling

Jul 26, 2009

I've written a Flash (Flex) client connecting to a back-end server to exchange data. I've also written my server from scratch, and it serves two purposes:

(1) Web (HTTP) Server- By default listens on port 80

(2) Socket/Application- Server - By default listens on port 443

Just FYI, both servers run in the same process space, for convenience reasons. They are not expected to handle massive loads, so I'm fine with that. As soon as the Flash client is served to the browser from the HTTP socket, the client attempts to open an XMLSocket to the Socket/Application server. I now want to implement HTTP tunneling, so that my client can connect to the Application server even if the user is behind a firewall. I do not want any external servers involved (proxies etc.) - simply use the servers I already have.

My questions:

(1) Is it better to use port 443 for that? (does it better fool firewalls?)

(2) As far as I can see, what I am required to do, is just ensure that my actual application data is simply encapsulated in an HTTP structure (preceded by a dummy HTTP header), both from the client and server sides. Is that so or am I missing anything here?

(3) Do I need to keep hiding/encapsulating my data every message I send through the socket, or can I just encapsulate the first message when opening the connection?

View 1 Replies

Flex :: Possible To Implement Facebook In Adobe?

Feb 13, 2010

I am considering creating a website with the complexity of Facebook that should be able to scale into the millions of users. My question is: Is there any reason not to use Adobe Flex for such large project apart from the obvious point of requiring everyone to have Flash installed and not having to rely on Adobe? In my view Adobe Flex would reduce the server load for Facebook, because more of the work could me done on the client side.

View 7 Replies

Flex :: Implement Drag-out-to-delete?

Mar 4, 2010

I have a List component from which I'd like to be able to remove items using drag & drop, but without having a specific target. If you use the mac, the behaviour I'm looking for is something like what the Dock uses; when you drag something out of the bounds of the control it should get an icon that indicates that it'll be deleted (OSX uses a cloud or something?) and then if you release it it will be removed from the list.

View 2 Replies

Flex :: Implement The Authentication In Portlets

Jun 4, 2010

I want to have flex portlets side by side with JSP portlets. How can we implement the authentication mechanism? [ Authentication will be handled by the portal and how can we share the same session with flex portlets ]

View 1 Replies

Php :: Implement Virtual Filesystem With Flex?

Apr 9, 2011

I am creating an EDM (Electronic document Management) system which will use Flex for front-end, PHP at server side and Mysql as database. Since its an EDM a single file will have many versions old copies will be stored hence one to one files mapping is not a choice. Wondering whats the best way to do so.

View 1 Replies

Actionscript 3 :: Implement Encryption In Flex 3?

Apr 12, 2011

we have one application where we are pulling some confidential information from one of the product design tools. So we have used HTTPS as the channel and also we are encrypting the Request Parameters and Some data before we sent it to Web Services.Everything seems OK.But when we gave the application for Security auditing they found we have hard coded the encryption key in source code. They have used Sothink SWF Decompiler to look into my SWF file. They caught the key and raised concern over it.

We have developed this application using Flex 3(SDK 3.4). Is there any best way to use Secret key without being hard coded in source code. If anybody come across this kind of problem, please let me know. use the secret keys in SourceCode without being Hard coded.

Here is my sample code:

var currentResult:String = "";
var strDataToEncrypt:String = "";
var kdata:ByteArray;

[code]....

View 2 Replies

Flex :: Implement Paging In Datagrid?

May 2, 2011

i want to implement paging in flex datagrid, i am using this code. In Asp.net we can implement paging by setting property of datagrid, is there any such property for flex datagrid?

View 2 Replies







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