ActionScript 3.0 :: Resize Textflow Container As Undoable Operation?

Jun 22, 2011

I would like to know how possible it is to undo/redo the resize of the the textflow container through an EditManager?.For example I manually reset the size of the textflow through ContainerController.setCompositionSize(w, h), and then I would like to undo the resize?

View 0 Replies


Similar Posts:


ActionScript 3.0 :: Possible To Resize A Container?

Aug 28, 2009

I want to resize a container,, but i don't want to resize the container content: what should i do?

View 4 Replies

ActionScript 3.0 :: Resize Container's Content To Fit?

Apr 14, 2011

I have a stage with Top, Middle & Bottom Movieclip's set on it. On resize the content is scaled to fit and maintain the correct proportions.I am loading each content (page) in as external SWF files into the Middle container using a Loader and URLRequest.Here is my onCompleteHandler function:

Actionscript Code:
function onCompleteHandler(loadEvent:Event){ // Remove Preloader  middle.removeChild(preload);  content =

[code].....

View 2 Replies

Flash :: Resize An External SWF To Fit Into A Container?

Aug 14, 2010

What I want to accomplish is to resize an external SWF so that it fits into the display object that is presented as a container on the stage. For now it show up outside of the container.

Important: I do not want an external SWF to occupy the whole stage; I have a special place (that container) for it on the stage.

View 1 Replies

ActionScript 2.0 :: Load A SWF And Resize The Container

Aug 25, 2006

I have a hairy case here: I need to load from a menu different SWF's (same width/different heights). What I need after this: resize the height of the container box (a movieclip). I have how to explain better all the stuff and post some AS too

View 6 Replies

HTML :: How To Resize Flash Animation To Fit Container

Mar 18, 2010

I have a flash animation with the size of 1280x1024 and I want to embed it into an HTML file. I want the flash file to be displayed in 800x600. This is my code:

<html xmlns="[URL]" xml:lang="en" lang="en">
<body align="center"><object>
<param name="movie" value="/flash/connect.swf" />
<embed src="/flash/connect.swf" width="800" height="600"></embed>
</object></body></html>

Well, it doesn't work. I do have a 800x600 frame, but the flash file itself still displayed on its original size.

View 2 Replies

Actionscript 3 :: Container Resizing According Window Resize?

Jan 17, 2012

I have a window witch is resizing on creationcomplete phase according user preference. This part woks well. But inside this window a s:Group (maincontainer2) exists and even if width and height is in percent, the s:Group size is bigger that the new window measure.

<?xml version="1.0" encoding="utf-8"?>
<windowSkin:wCustomWindow xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[Code].....

View 1 Replies

ActionScript 3.0 :: Bitmap Movie Clip Container Resize

May 5, 2009

I'm using the following code to load a .jpg into a movie clip container the problem is I need the container to be a specific size I tried loader.content.width = 50; and loader.content.height = 50; the height part works but the width doesn't work my image just expands beyond the stage width.How do i set the size of the movie clip container?I don't care if the image gets distorted i have a resize script for the images before they are loaded into flash.[code]

View 1 Replies

ActionScript 3.0 :: Add Event.resize To Some Display Object Container In Both Of Them?

Sep 1, 2010

lets say i have 2 classes in the same package.and i add the same event listener to each of them, for example i add event.resize to some display object container in both of them.how can i prevent the code attached to that listener to execute in one of the classes if that event happens?

View 2 Replies

ActionScript 2.0 :: How To Make Container / MovieClip Dynamically Resize

Dec 17, 2004

How to make a container/Movie Clip dynamically resize such as the effect employed in this site (animations included): [URL]. Furthermore, is it possible to have images load from an XML file and contain the information needed to have the container/Movie Clip resize accordingly.

View 1 Replies

Flex :: Mxml - Dynamically Resize Parent Container To Contain Children

Feb 11, 2010

Is there an easy way to make a parent container (eg Group) resize when it's children resize?

Below is a little example app. When I put the 200x200 'food' in the 'stomach' the stomach & it's containing 100x100 'body' should resize to contain the food.

[URL]

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[Code]....

View 2 Replies

Flex :: Make A Container Resize Based On The Size Of Its Contents?

Mar 16, 2010

I'm trying to create a Flex application that can automatically shrink based on the size of the components that it contains, so that a user can shrink it to a minimal view to see more of the HTML page it's embedded in.

I know how to change the size of the whole application using ExternalInterface, but I'm having trouble automatically figuring out how much the size changed when something is hidden or shown.

For example:

Let's say I have the following flex layout:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:VBox width="100%" paddingTop="0" paddingBottom="0"

[Code]....

How can I hide one of the text fields and cause the VBox to shrink? I'm currently setting it to visible = false, but that doesn't seem to affect the parent VBox.

Once the VBox shrinks, how can I detect that the Application no longer needs so much space, and then go about figuring out how much less space it needs?

I've tried using ResizeEvent, but I haven't been able to get them to work, but I could be doing something wrong.

View 1 Replies

Flex :: Forcing A Child Component To Resize Itself Larger Than Its Container?

Mar 29, 2010

I am creating a component that displays a variable amount of "gauges" (square tiles of content if you will), that is laid out like so:

<HDividedBox id="container">
<VBox id="myComponent">
<HBox id="header">

[code]...

View 1 Replies

Actionscript 3 :: Ammend This Resize Script To Fill/crop To Container?

Aug 30, 2011

I've got a simple script that resizes a loaded image to fit a specific width and height, however I want the option to be able to fill i.e. centre and crop to a specific width/height - any ideas on how I can modify this?

Current script:

[Code]...

View 1 Replies

ActionScript 2.0 :: Different Image Resize - See The Container._height Is Bigger Than The Maxh (maximum Height)

Mar 10, 2005

this is my code:

[Code]...

as you see the container._height is bigger than the maxh (maximum height) but the _width is just fine... how do i fix this problem??

View 1 Replies

Actionscript 3 :: Resizing Container On Resize Of Application Window In Adobe Flex/AIR Application?

Mar 4, 2011

I am working on an Adobe AIR Application. The size on Application window is 800X600 and is contains border container and border container contains many controls. What I want is to if user re-sizes the application then that container should also be re-sized according to scale. i.e If user maximizes or minimizes the window then that border container should also be maximized or minimized respectively.

View 3 Replies

ActionScript 3.0 :: Do Not Resize Display Objects In A Display Object Container

Jan 22, 2012

can I resize a display object (container) without its contents (children) are resized?

For example, in the following code when I resize the green square, red is also resized. I wanted to resize only the green.

ActionScript Code:
import flash.display.Sprite;
var sprite:Sprite = new Sprite();
sprite.graphics.beginFill(0xff0000);

[Code].....

View 3 Replies

ActionScript 3.0 :: Possible To Use The Uiscrollbar To Scroll A TextFlow?

Apr 3, 2011

I need to add a scroll bar to a textFlow and I was wondering if it's possible to use the UIscrollbar component to do this.Here is my code:

Code:
import flashx.textLayout.container.ContainerController;
import flashx.textLayout.elements.ParagraphElement;

[code].....

View 1 Replies

Get A Prom About TextFlow Inside A TxtArea?

Oct 4, 2009

i got a prom about TextFlow inside a txtArea. that's my code var t2:TextFormat = new TextFormat();
 
t2.font = "Arial";t2.size = "14";t2.leading = "2";t2.leftMargin = "0";for (var i:int = 0; i <10; ++i){    this.h1.setStyle("textFormat", t2);    h1.htmlText += "<img src='h1.jpg' align='left' vspace='0' hspace='2'>Hi, How're u doin?</img>";}
 
U can see the output on the pic. It just uses the TextFormat for the last line and why are the spaces to the first pics big and get lower and lower to the followin ones?

[Code]...

View 2 Replies

AS3 :: Convert DocX, OpenXml, Or RTF To TextFlow?

Jun 18, 2010

Basically we want to be able to open up a docx file in as3 or Flex 4 and convert it to a text flow while preserving formatting, embedded images, tables, columns, etc. I know theorectically it's possible as the new Text Layout Framework is powerful enough to pull it off, but I haven't been able to find any case where someone has achieved anything along these lines except for Adobe's BuzzWord web app which does just this. Ideally the solution would be for RTF documents as conversions to RTF from anything are pretty familiar.

View 1 Replies

Flex :: HTML Entities In TextFlow?

Oct 17, 2011

How can HTML entities be made to work with TextFlow (specifically TEXT_LAYOUT_FORMAT)? Example: ' is not converted into a single quote.

View 1 Replies

Actionscript 3 :: Insert A SpanElement In A TextFlow?

Mar 30, 2012

I want the ability to select some text in a textarea and then replace the selected text with a SpanElement. I cannot use a TextLayoutFormat because it doesn't have an "id" property.

How do I insert a span in a specific position in a textarea?

View 1 Replies

ActionScript 3.0 :: Use The UIscrollbar To Scroll A TextFlow?

Apr 2, 2011

I need to add a scroll bar to a textFlow and I was wondering if it's possible to use the UIscrollbar component to do this.

Here is my code:

Code:

import flashx.textLayout.container.ContainerController;
import flashx.textLayout.elements.ParagraphElement;
import flashx.textLayout.elements.SpanElement;
import flashx.textLayout.elements.LinkElement;

[Code].....

View 1 Replies

Convert String With TLF Format Into TextFlow In Flex?

May 16, 2010

I used TextConverter to convert a TextFlow in Flex to String to store it in my Database. How to convert that string back to TextFlow in order to display in Rich Text format

View 1 Replies

Html :: Import Flex RTE HtmlText To TLF TextFlow?

Jan 5, 2011

I am working as a developer on a Flex/Air application and we are using the buggy Flex RTE (RichTextEditor) to let the user manage his notes. At the moment I am trying to evaluate how costly it would be for us to build a new text component using the TLF (Text Layout Framework).Really important is the question if we can import the HTML text, produced by the RTE straight away. I know that there are some limitations regarding lists with TLF 1.1, but does it work in general?

I have just tried to grab some HTML formatted text from RTE like:

[Code]...

View 1 Replies

Flex :: Get The Cursor Position Of TextLayoutformat/textFlow

Jan 26, 2011

How can I get the cursor position of flex textLayoutformat/textFlow.

View 1 Replies

Flex :: Add ToolTip To InlineGraphicElement Inside TextFlow

May 27, 2011

[code]I want a specific toolTip for "icon". I have read about using HTML and rollOver and rollOut but I'm building this as part of a larger text block; it's difficult to switch from incremental objects to HTML in the middle.If I cannot set an event on the icon, can I create an HTML bit in ActionScript as part (but not all) of a paragraph ?

View 3 Replies

Flash :: Flex - TextFlow Ignores Whitespaces?

Oct 17, 2011

i'm trying to add whitespaces in front of my text, but flex removes all but one whitespace from the text. So i can't format the text.

Here is the specified line:

<s:p> - Lorem</s:p>
<s:p> ipsulum</s:p>

Here its shown correctly but when running the swf it reduces the whitespaces of the second line. Of course i tried to use CDATA but this didn't work too.

View 2 Replies

Actionscript 3 :: Check If Two Textflow Objects Are Equal?

Feb 10, 2012

Is there an easy way to compare two TextFlow objects with each other? I have two text flow objects that are created with TextConverter.importToFlow() and want to check if they are equal or not. Only way I found so far is to use TextConverter.export() to export them to a string then compare which seems bit convoluted...

View 1 Replies

ActionScript 3.0 :: Use TLF TextFlow To Change The Format Of Text?

Apr 4, 2011

I need to use TLF textFlow to change the format of my text, I have links, italics, bold, paragraphs, etc. Is there a way to PUT the textFlow inside a textField so I can scroll the text inside the textField?

View 0 Replies







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