AS3 :: Preserve Tabs When Saving XML In FLex4/Air App?

Mar 31, 2011

I'm loading an xml file in AS3/Flex for an AIR app. When I save it, the indenting looks pretty, however all the tabs from the original file, are now spaces. Can I save to that the tabs remain?

open file code:

var file:File = event.target as File;
var fileStream:FileStream = new FileStream();
fileStream.open( file, FileMode.READ );

[code]....

View 1 Replies


Similar Posts:


Flex4 - Vertical Tabs In Flex 4?

Oct 21, 2011

I would like to have vertical tabs in Flex 4. I have started implementing this by having a vertical list down one side. On list selection I am updating the selection index of a view stack. This gives the functionality of vertical tabs.

My problem is the look and feel. How do I get the list to have a similar look and feel to the horizontal tab bar? Is it a case of overriding skins? I have found this post: Flex 4 vertical TabBar

which does implement vertical tabs. My problem with this is that I do not get any text in the tab. I think the problem is that this was originally written for flex 2. I am using flex 4 and am trying to put this component inside a

View 3 Replies

Flex4 - Flex Spark Tabbar Initialize Hidden Tabs?

Sep 24, 2011

problem is I have a spark Tabbar, with many forms in each tab. But I have a single global save button.problem is, if I don't open a Tab,it doesn't get initialized and therefore the forms it contains do not exist..

How Can I make it as if the user had clicked on every tab?

View 1 Replies

Flash :: Flex4: Loading Flex4 Swf Using Swfloader Shows Only The Loading Bar

Dec 23, 2009

I try to load an swf in my flex 4 project using the following line of code: <mx:SWFLoader id="game_swf" source="demo.swf" complete="init()" /> the demo.swf file is another project i created using flex 4. the problem is that when i run the application i see only the loading bar of the demo.swf flash file and nothing else. if i try to load a different swf file (for a example a game i downloaded), it loads just fine.

View 1 Replies

Flash :: Preserve Illustrator Glow In It?

Apr 2, 2012

When I pull Illustrator elements with Outer Glow into Flash, the glow looks pretty nasty...lots of artifacts and "squares" throughout the area where the glow is.

Is there a way to preserve the high quality glow I see in Illustrator once I import those graphics into Flash?

View 4 Replies

ActionScript 3.0 :: Preserve Array Of Objects?

Aug 2, 2011

I need to store an array of objects that will serve as a back-up of some master data. I then will need to copy that array and manipulate the object data within. The problem is: when i change any of the object data in the new array, it is changing the orginal object data in the "back-up" array - the array that should not be changed in anyway.[code]...

View 9 Replies

IDE :: Way To Preserve A Stroke Whilst Resizing

Feb 24, 2009

I would like to know if there is a way of maintain the stroke size whilst resizing my object with actionscript.I have an object that imported from Illustrator with a 7pt stroke and would like that stroke to maintain its aspect even when resized to 10%

View 1 Replies

Flash :: Preserve Transparency When Resizing Picture?

Jul 25, 2011

I use a flash program in my website to resize pictures before transfert, for preserve my bandwidth.

But, when i try to transfer a .png file with transparency, the resize don't maintain transparency in the .png file result. It's a problem for use it after.

[Code]...

View 1 Replies

ActionScript 2.0 :: CS3 Load Php Into Flash AND Preserve Text Formatting

Feb 26, 2009

Using AS 2.0, I'm trying to load some php into a dynamic text box in Flash via loadVars, and once I bring it it, it strips the formatting on the next. Such as link colors, bold, italics... just simple html formatting. How can I preserve that. The formatting of the text is done on an admin website.

[Code]...

View 2 Replies

ActionScript 3.0 :: Preserve Image Quality When Importing It From The Library?

Feb 12, 2009

How do I preserve image quality when importing it from the library. For some reason it seems to lose a lot of the quality.

View 2 Replies

Professional :: Adobe Media Encoder Wont Preserve Widescreen

Mar 4, 2009

I have a mp4 file that has a resolution of 640 x 360 pixels.When viewed in VLC it looks natural and in proportion. I simply want to convert the .mp4 file to an .flv file for web distribution maintaining the existing dimensions. I am attempting to do this with Adobe Media Encoder.The problem is that Adobe Media Encoder insists on converting the file to a 4:3 aspect ratio with a resolution of 480x360 pixels.Viewing the output in VLC results in a squashed out of proportion image. The output preview in Adobe Media Encoder also looks squashed.When I select the option to specify the output dimensions and manually set the resolution back to 640x360, in then adds to solid black bars on the right and left-hand sides of the video which is undesirable - aswell as making the video squashed. I have messed around with every setting and have had no joy in producing the output I require.I have a command line version of ffmpeg which is able to convert the video successfully (keeping the correct aspect ratio) using the most basic command: ffmpeg -i input.mp4 output.flv . I don't want to resort to using ffmpeg at this point. I just spent $1200 AU to upgrade to CS4 Design Premium and want to use the nice GUI I just paid for :)

View 1 Replies

Javascript :: Preserve Browser Window Focus When Clicking On Plugin?

Sep 7, 2011

I have a web page that uses javascript counters to count user "active" time, meaning the time a user spends viewing this page (and not some other page). I do this by starting/stopping them using the [URL].. However, when the user clicks on a plugin inside the same page (flash, java, etc), the window loses focus and window.onblur is fired. Is there a way to tell that the user is still on my page?

View 1 Replies

ActionScript 3.0 :: Scale9grid A Button To Preserve Its Rounded Corners When Resizing?

Aug 24, 2009

I am trying to scale9grid a button to preserve its rounded corners when resizing but I have run into trouble.The button is an ordinary Button symbol and it has 4 layered states (Up, Down, Over, Hit).In each layer there are some shapes (the outer button border, two background shapes inside the button for shading and then some extra outer border shapes to create the pressed down effect). The button contains no other elements,not even a textfield (the textfield is on the same level as the button).

The button is inside a movieclip (which also carries the textfield) that is of the same size as the button and is resized as by Adobe design when the button is resized (i.e. I am never manipulating its size).The Button is 35 high and the textfield is 25 high. They have their registration points both centered and placed at the the same coordinate.I use the follow code to resize and scale9grid the button:

popup.btnLoginButton.width = popup.btnLoginText.width + 20;
popup.btnLoginButton.scale9Grid = new Rectangle(10, 5, popup.btnLoginText.width, 15);

The above scale9Grid throws a Error #2004: One of the parameters is invalid.The same error occurs unless the Rectangle parameters are very small - for example Rectangle(5, 5, 5, 5) even though the textfield is much longer. But when the Rectangle is that small of course no scale9grid scaling is taking place.

View 2 Replies

ActionScript 3.0 :: AddChild Inheritance - Object Preserve It's Initial Alpha?

Dec 23, 2010

i have this: object1.addChild(object2); object1.alpha = 0,5; How can object2 preserve it's initial alpha?

View 5 Replies

Javascript :: Replicate Flash Cube Rotation In CSS: Preserve Correct Perspective?

Mar 21, 2012

I am converting a Flash Web App to a Javascript(HTML and CSS) Web App. I have a cube rotation animation working but I have a problem with the perspective.My Problem: I am not sure which CSS attribute I should use to replicate the Flash versions perspective(please see the 2 images below). The 2 below images where taken while the cube rotation was occuring and you can see the difference in the perspective(the 2nd image is too wide and should look like the first). You can see a working example here(Note it only works onThe first image was taken from the flash application and displays the CORRECT perspective(that I am trying to achieve in CSS).The 2nd image is taken from my CSS, Javascript and HTML web app and the cube rotates with the INCORRECT perspective. What CSS attribute do I change in order to achieve the above images cube perspective?

View 1 Replies

ActionScript 3 :: Use RegEx To Match A Tag With Optional Attributes - One Specific Attribute / Value - And Preserve Its Contents?

Mar 3, 2011

I am not new to regex but have come across a problem I can't seem to solve. I'm trying to locate a specific HTML tag that has a specific attribute/value pair (it may have other attributes, too, but those are optional), extract it's contents as a backreference and wrap a new custom tag around it. The original tag is:

[Code]...

View 1 Replies

Actionscript 3 :: Exported SWC Doesn't Preserve Auto-complete Functions' Parameters' Names?

Nov 30, 2011

I am using Flash CS5 and I have created a large, rarely changing framework that I don't want to be recompiled every time I use it in my projects.I must be doing something wrong because the "auto-complete" functionality doesn't show the names of the parameters of the functions.For example, I have a function:

public class Hey {
public function show(name:String, num:Number, data:Array):void {...}
}

[code].....

View 1 Replies

Set So Windows Open In New Tabs?

Aug 31, 2009

I'm kind of new to flash, and I'm working in CS3 AS3. Here is my code. - Home is my button instance name

[Code]...

Now, _top, _self, I can't get anything to work for what I want to do. What I'm trying to do is make it so when I click a link, it opens it in the SAME tab. I have seen many (dozens) of these problems, but none seem to help. On firefox, it openes in a new tab, (I have it set so windows open in new tabs), on IE it opens in a new window, and in chrome it opens in a new tab. Please help me fix this problem,

View 5 Replies

Actionscript 3 :: How To Put Tabs In Application

Dec 7, 2010

how to put tabs in application using only actionscript, there are lot of examples there using flex mx controls for tabnavigator, but i want to use only actionscript or flashscript.

View 2 Replies

Linking Tabs To Different Pages On Website?

May 23, 2010

I am fairly new to flash and I have started to attempt to modify a template that I found online to make it my own. The thing that I am having problems with is the URL Links. There are 5 different clickable tabs on the header that I have, and when you edit it in flash cs4, each one is the same image when you edit it. The only way in which you can change what each one of them says is by editing them in the library. This isn't the problem. I want to link these tabs to different pages on my website. When I edit one of them, all of them change to the same url link. The file is too large for me to upload I think.

View 4 Replies

Flash Selects The Tabs In The Next Line?

Jun 14, 2009

I can't really understand how can Adobe let the developers release such a messy embedded Flash editor. Please, fix the line copying, it drives me mad. In every normal editor, when u get to the start of the line and press shift+downarrow, the whole line is selected. Flash selects the tabs in the next line also. So pasting is a horrible nightmare.

View 1 Replies

ActionScript 3.0 :: Tabs Do Not Move Beyond First Attempt

Feb 28, 2012

I have five tabs (moviclips). On the first interactio it moves to the appropriate tab but it does not work afterwards. The following is the code:
 
stop();
taba.addEventListener(MouseEvent.CLICK, gotaba);
tabb.addEventListener(MouseEvent.CLICK, gotabb);
tabc.addEventListener(MouseEvent.CLICK, gotabc);

[Code].....

View 6 Replies

Actionscript 3 :: Find Out The X And Y Coordinates Of Each The Tabs

Sep 3, 2009

In a tab navigator, I need to find out the x and y coordinates of each the tabs. Is there a way to do that? I am using HBox as Tab in the TabNavigator.

View 1 Replies

Actionscript 3 :: Different Width For Different Tabs In Tab Navigator

Feb 11, 2010

Is there some way to have a tab navigator in flex where each tab width can be controlled explicitly ?

View 1 Replies

Flex :: Have Different Colors For Different Tabs In SuperTabNavigator

Apr 2, 2010

Well the heading is basically what my question is:

How can I have different colors for different tabs in SuperTabNavigator.

Below is the code to my SuperTabNavigator with three tabs:

<containers:SuperTabNavigator x="0"
y="10"
width="100%"

[Code].....

I want to have different color for every different tab.

How should I do this.

I know there is a firstTabStyleName and lastTabStyleName: is there any way to have the secondTab or the middleTab

View 2 Replies

Flex :: Sort The Tabs As Each New Tab Is Loaded?

Feb 13, 2011

Im loading tabs for an accordion control at runtime. The number of tabs is determined by the role of the user. Each tab comes from a module so the load time is variable. As a result the list order changes every time the app is run.Is there a practical way to sort the tabs as each new tab is loaded?

View 1 Replies

Php :: Synchronizing Web Application State Across Tabs?

Sep 21, 2011

I'm trying to maintain a web applications state across multiple tabs whilst using ActionScript, JavaScript, and PHP. Should I use AJAX to update the database after an item has been purchased etc, or should I prevent the game being loaded if it's already open in a single tab (if so how could I achieve this)?

I'm building a facebook game, when the user buys an item and has many open tabs it doesn't update the state in the other open tabs. The buying of an item is handled by ActionScript, and the storage of that item is dealt with using PHP.

View 1 Replies

Flex :: Bind An Object Across Other Tabs?

Feb 14, 2012

I am having a table at the backend, so when a query is asked at the frontend for an object, all the tabs in the front end should be populated with the details of the query object. I am able to pick the query object at the back end , but i dont know how to bind that object across all the tabs in flex. I am getting an error type coercion failed, cannot convert X to mx:Array collection

View 1 Replies

ActionScript 3.0 :: Text Tabs In Motion?

Nov 20, 2009

I'm building a website like [URL] with the text tabs. Now I'm not sure how to create this on a neat way with actionscript.I found this application which is for purchase, but I would like to create it by myself ofcourse.[URL]

View 1 Replies

ActionScript 2.0 :: Switch Tabs And Windows?

Apr 5, 2010

I am trying to switch windows in a browser from a swf. The window is already open and has been paused as the viewer is taken from swf 1 to another window that plays the swf 2. I would like them to be taken back to swf 1 once swf 2 has finished playing.

View 0 Replies







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