Actionscript 3 :: Adobe Flex - Embed Component Inside An Image's "window"?

Sep 2, 2009

I have a an image, lets call it "StageSkin.png".This is an image which is really just a border, and the middle of the image is "windowed", meaning that it is meant to show other information inside of it.The information inside of it is in the form of a component (based on a canvas component, lets call it 'Gauge').I want to create a component out of the 'StageSkin' image and the 'Gauge' component inside of it that would allow me to resize the component with the 'Gauge' component staying inside of StageSkin's window.I searched on this, and got the code below, but the embedded component just overlaps the entire image. What do I need to do?

<mx:Style>
.nineSliceScalingBackground
{
background-image: Embed("assets/StageSkin.png",[code]..........

View 2 Replies


Similar Posts:


Flex :: Embed A Streaming .swf File Inside Another Flash Or Adobe Air Application

Sep 24, 2010

I currently have a network camera that streams video as a .swf (and also as a motion JPEG as well...) and I want to be able to embed the stream inside of either a Flash or Air project that I'm creating myself. The only examples i've been able to find though, require the .swf to be saved as a resource of the project; clearly, this is undesirable for a live stream.

Another option is to utilize the motion JPEG. I have some generated code (shown below), but unfortunately only the first image is displayed when viewed via adobe air (if I were to view it in a HTML browser, the image would automatically update, effectively showing the stream:

<SCRIPT LANGUAGE="JavaScript">
function displayImage( )
{
// Set the BaseURL to the URL of your camera

[Code].....

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 :: Adobe Title Window Showing Mirror Image Of Itself?

Jan 6, 2011

I have a flex 3 application with 2 titlewindows. When I compile it with the flex 4.1 sdk in flash builder, the titlewindows show up as mirror images of themselves with all text invisible (i.e alpha = 0).

View 1 Replies

Ios :: Embed Adobe Air / Flex Application Inside A Standard Application

Aug 29, 2011

I have a native (Obj-C, standard Xcode project) application and I'd like to integrate a partners iOS application (or specifically, it's functionality) into it as just another view in my application. The problem is that their application is a Flex/Air app. I really don't understand the Adobe compilation process on how it gets from a bunch of flex code down to an IPA. I don't see intermediate projects, shared objects, etc on the disk to produce that IPA. It looks like it doesn't rely on the Apple tool chain... as I understand it, you can produce the IPA on Windows as well. Is there any way to build that Flex app in such a way that I can import it into Xcode so I can link against it and use it as a library from within my application? While I specifically used iOS as an example since that is the most important platform, we'll want to apply this solution to our respective Android and Blackberry 6 apps as well.

View 1 Replies

ActionScript 2.0 :: Accessing Movieclip Inside Window Component?

Jan 16, 2007

I'm having trouble accessing some components that reside inside of a movieclip that i'm displaying inside of a window component through the PopUpManager:

Code:
var my_MC = mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, { title:"movieClip", contentPath:"my_MC", closeButton:true });

how can i access any components that exist within the linked movie clip in my library? i have two labels that I want to update but can't figure out for the life of me how...

i've tried:

Code:
_root.my_MC.content.<label name>.text = "blah blah blah"

but no worky.

View 1 Replies

Flex :: Extend SWFLoader Component To "fit" Any Sized Image Inside It?

Feb 21, 2010

SWFLoader's scaleContent is not able to do what I'm trying to achieve:

<mx:SWFLoader id="img" width="600" height="400" scaleContent="true"/>

When an image of size 100x80 is loaded inside it, the image does does not resize to 600x400. That's because scaleContent = true.

Then, I set maintainAspectRatio = true. The image did resize to 600x400 but obviously, it was totally out of proportion.

So how do I always fit any sized image to the current size of the SWFLoader while maintaining the aspect Ratio? The resized image may be cropped, which is ok.

SCENARIO: An image of size 1500x10 is loaded inside the above SWFloader. In this case the height(10) should be resized to 400 and the width(1500) should automatically resize depending on the height. A lot of the image will be cropped, which is fine.

View 1 Replies

Flex :: Preview A PDF Inside AIR Application Inside Transparent And Custom Window?

Sep 20, 2011

I have a transparent windows (skinnable). Inside, I'd like to preview some pdf file. BUT, in the only a black screen appear

View 3 Replies

Flex :: Embed An ActiveXObject Into An Adobe AIR Application?

Dec 7, 2010

Is it possible to embed an ActiveXObject (in this case, the 3DVia Viewer) into an AIR application and communicate with it?

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 :: Adobe Strip From Embed Symbols When Compiling?

Aug 9, 2009

I wanted an animation to dispatch custom events as it cycled. It became apparent that not even trace() was running. After some searching, I found the following at Adobe:[URL].."If the SWF file contains any ActionScript code, Flex prints a warning during compilation and then strips out the ActionScript from the embed symbol. This means that you can only embed the symbol itself."

I also found a work-around by Grant Skinner at:[URL].. I can proceed, but I'm still wondering. Why does mxmlc strip ActionScript from Flash compiled resources when embedding their symbols into Flex apps using metatags?

View 2 Replies

Flex :: Embed PDF Inside The App?

Mar 4, 2011

How to embed PDF files into Flex App? Do I really need to transfer them to swf files first?

View 1 Replies

Embed AIR Browser Component In Flash, Not Flex

Jul 16, 2009

I am using Flash CS4 and would like to use the available browser component in AIR. However, any information I have found online uses Flex to embed this. Is it available in Flash? I was assuming it was part of the AIR architecture, so it would be able to be used in either, but it doesn't seem so.

View 1 Replies

Flash :: Embed ActiveX Component In Flex?

May 20, 2011

I have an ActiveX componenet that displays some data from external systems (scada) and I'd like to embed it in my Flex web application's frontend (displayed in browser).

Is it possible to do it?

View 1 Replies

Actionscript 3 :: Flex - Ribbon Component For Adobe Flex Or Aswing?

Apr 1, 2011

Anyone can point me to free or commercial Ribbon component done for Adobe Flex or Aswing? I seen one at some point but for some reason cant find any now. (Please don't mention minddomo, since it has nothing to do do with my question).

View 2 Replies

Flash :: Calling A ClickHandler From Inside An ItemRenderer Component Image)

Jul 18, 2011

I'm using a Datagrid which has an itemRenderer that contains an image :

protected static function hbox1_clickHandler(event:MouseEvent):void
{
//some action
}

[Code]...

I want to dispatch an event on click, so when I click on the image I do an action. However, It is giving me an error when do that. I did some search and the suggested answers were using outerDocument and ParentDoecument .. both didn't work.

How can I access the click handler function (hbox1_clickHandler() in my code) ?

View 2 Replies

Java :: Embed A Flex Component In A Pure Android Application?

Sep 7, 2010

I know it is possible to develop a full flex application using AIR for android but what I need is to embed a flex component into an already existing classic java android application.

I found some flash players in java but they all either require a JFrame or include of specific windows dlls.

View 2 Replies

Windows :: Flex - Adobe Air Start Native Window Hidden?

Feb 16, 2011

How do I open a new window as hidden? (note the visible="false")

<s:Window xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
showStatusBar="false"
resizable="false"
visible="false">

If I declare a window this way, and then call this.open(false);, the window will quickly open and then hide, and then be reshown when I actually display it, I want to do this to be able to load content and fit the window to that size before showing it.

View 1 Replies

Java :: Embed A Jar File Inside A Flex Application?

Jan 30, 2011

I have a great idea and I want to build a flex application around a .jar file. Is there a way I can go by embedding a jar file into the flex application?

View 1 Replies

Flex :: Adobe - Possible To Clone Component At Runtime

Jul 6, 2009

I am trying to duplicate a flex component at run time. For example if I have this:
mx: Button label="btn" id="btn" click="handleClick(event)"/>
I should be able to call a function called DuplicateComponent() and it should return me a UI component thts exactly same as above button including the event listeners with it.

View 6 Replies

Flex :: Does An Mx:Window Component Have It's Own ApplicationComplete

Jul 17, 2011

I'm working on an app that, from the Main.mxml, opens one or many Window.mxml instances. When it's done I want all windows to be chromeless so the custom controls need to work. In Main I've added applicationComplete="init();" so the init function gets ran, which contains clickhandlers, which makes the buttons work. However, this way of running an init function doesn't seem to be valid for an mx:Window. I can cheat by not using a clickhandler for the minimize and close buttons with a click="this.minimize();", but I don't know of a way like this to make the move work because it's a MOUSE_DOWN event.

Question 1: Is there a way to have such an init function in an mx:Window?

Question 2: What's a good way to make the buttons on the Window instances all work?

[Code].....

View 1 Replies

Adobe Flex Toggle A Component Full Screen?

Aug 25, 2010

I have 5 components on my Flex application(actual view) and they are:

x = main panel
y = bottom panel
z = left panel
a = right panel
b = top panel

I have a toggle full screen button. When clicked I want the main panel(x) to become full screen. At this point only main panel(x) should be visible. when I click on the toggle button again, it should become normal displaying all 5 components(the actual view).

View 2 Replies

Flex :: Adobe : ToolTip Of A Spark Component With Enabled=false?

Oct 19, 2010

I have a Spark Component (a Group) which doesn't behave as wanted.The tooltip is only shown when the component is enabled=true which the following example shows:

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"[code]/....

In the Halo component the toolTip is shown. And this is, what I want to achieve.In my case I want to try something like this:

<s:Group toolTip="{cartEntries > 0 ? 'great!' : 'go and buy!'}"></s:Group>

View 1 Replies

Flex :: Getting Fill Color Inside The Itemrenderer In Adobe?

May 17, 2010

I am writing a custom item renderer to render a column series in my application.
Its a stacked chart and i want to use the same item renderer for both the column series. The color for each series in the stack is different and am setting that in the 'fill' property of the two series. My doubt is how can i get the color specified in the fill property of the column series from the item renderer. if this works then i can very well use the same renderer for both series.

View 2 Replies

Flex :: Adobe - Get An Ordered List Using Htmltext Property Of Text Component?

Feb 1, 2011

how do i get an ordered list using htmltext property of Text component? I tried using this: <ol><li>item</li><li>item</li></ol> but it rendered like an unordered list.

View 2 Replies

Adobe Flex 4 Rendering Issues With Text In Disabled TextInput Component?

Apr 22, 2011

I have an application which displays employee information. If the user opening the detailed employee information page is not authorized to make changes I set the TextInput to disabled. Some users are reporting rendering issues with this. The TextInput's text value does not appear inside the box but is misaligned and is outside of the component. You can see the screenshow below of the disabled ID column where the numbers which are supposed to be in the TextInput box are far off to the right.

[Code]...

View 1 Replies

Flex :: Adobe Air: Drag Application Crash - Error #3200: Cannot Perform Operation On Closed Window

Nov 23, 2009

Now I set dragEnabled="true", dropEnabled="true" and dragMoveEnabled="true" to archive the ability to reorder my Items via Drag and Drop. But as soon as I start to Drag an Item the whole Application crashes with:

[Code]....

View 1 Replies

Flex :: Embed Image In List?

Feb 28, 2012

I am having a list which is rendered to display images , name of all images is in dataprovider of list. Now i am unable to find how to make all images as embedded images as the name is coming from dataprovider?

Below is list:
<s:List itemRenderer="imglist">
<s:dataProvider>

[code].....

View 3 Replies

Actionscript 3 :: Flex 4 Title Window + Custom Component + Skin

Aug 21, 2010

I'm trying to put my components in a window container that can be closed by "x" moved on the stage, resized and so on. And I wonder which is the best way to do it. I want to use a skin class and the component class. The "solution" that is not working looks like this

[Code]...

View 1 Replies







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