Flex :: 0-byte In Size When I Build A Component Using Compc?

Sep 9, 2009

I'm building a flex .swc library using Ant, and many of the assets that are supposed to be in the file are not being copied, instead creating 0-byte entries in the .swc.Here is the ant compc target that is doing the creation. I've tried both compiler.include-libraries and compiler.library-path here, which is why the latter is still present and commented out. Neither worked.

<compc headless-server="true"
default-frame-rate="${flex.default-frame-rate}"
debug="${flex.compiler.debug.mode}"[code]....

View 1 Replies


Similar Posts:


Flash :: Flex Relative Size Component, Fixed Size Border?

Mar 3, 2011

I want to create a panel (or any other component) inside a component that has a 5 pixel border on all sides, but scales fully when the window is resized. I know I can set width to "100%" to make it resize, but that gives me no borders. If I put it to "95%",I have borders, but they scale annoyingly. Also, that only works for borders on the right or lower bounds, and not to the left or upper sides.Is there a convenient way to do this without having to write tons of resize-code (in which case I will not bother and just accept bad rescale behaviour, as it is for a private pet project).

EDIT: I know that I can just overwrite the display handling and set the positions manually every frame. I wondered if there is a cheap way to do it in the mxml-structure, along these lines:

<mx:Panel>
width="100%" height="100%"
</mx:Panel>

Coming from C++ and Java, I am intrigued by the option of setting something to "95%" and let the library work out the details, instead of having to write many lines of code, just so my text-area always keeps a 5 pixel distance from the border, but scales with window width.If there is no easier way to do it than figuring out pixel sizes by hand and setting the coordinates.

View 1 Replies

ActionScript 2.0 :: Finding The Byte Size Of Array?

Aug 4, 2009

I'm just trying to find the size of a array I created. I know how to find the size of the swf and movieclips with getBytesTotal but that doesn't seem to work for arrays. anyone know of a method to find this or some built in function. I searched google and other search engines but only find the getBytesTotal command for use with MCs.

View 3 Replies

Professional :: Build A Flash That Auto-adjust Its Size To The Browser Window Size?

Jun 8, 2010

I am trying to build a flash that auto-adjust its size to the browser window size, while leaving the content of the flash itself top-centered in the screen.I have found this solution [URL].. on How to keep centered stuff in this exact case so i am pretty confident i will be able to adjust that script to do what i want.
 
Now my problem is that if i put my content inside the movie-clip (centerrectangle) with all the animation require, link and other stuff, the movieclip (center rectangle ) never have the exact same center, thus making the script go wild trying to always adjust the location to the variable size of the movie clip.

[Code]...

View 9 Replies

ActionScript 3.0 :: Build A Flash That Auto-adjust Its Size To Browser Window Size?

Jun 8, 2010

I am trying to build a flash that auto-adjust its size to the browser window size, while leaving the content of the flash itself top-centered in the screen.

I have found this solution [url].. on How to keep centered stuff in this exact case so i am pretty confident i will be able to adjust that script to do what i want.

Now my problem is that if i put my content inside the movie-clip (centerrectangle) with all the animation require, link and other stuff, the movieclip (center rectangle ) never have the exact same center, thus making the script go wild trying to always adjust the location to the variable size of the movie clip...

I need it to stay exactly at the same position whatever the size of the movie-clip. [code]...

View 0 Replies

Flash :: Flex - Live Preview On A Flex (compc) Generated SWC

Jul 20, 2009

Does anyone know what criterea Flash uses for discovering the Live Preview class for a Component? Background We are attempting to automate the creation of a SWC that contains a component to be used from Flash. We are able to make it visible to flash by modifying the manifest.xml and wiring up the component definitions. However, the component cannot be dragged onto the stage (or library), presumably because it has no form of LivePreview. To give better clarification of where we are coming from, we've noticed the following in SWCs exported from Flash (using swfdump):

fl.livepreview.LivePreviewParent contains the same mod attribute as the visual component in the manifest.xml file fl.livepreview.LivePreviewParent is exported as a symbol The short-named component (ie. no package, referenced in the components definition in the manifest.xml) is exported as a symbol However, I can see no other differences between that and the SWC from Flex. We can obviously use JSFL to perform the task, but we'd rather not install Flash on the build server.

View 1 Replies

Flex :: Compile A SWC Using COMPC, Excluding 3rd Party Library?

Jul 17, 2009

I have a code library that I have built. It relies on 2 other (third party) libraries. At the moment, when I compile the library into a swc, both third party libraries are included. I am looking for a way to compile my code library against the third party libraries, but without including them in the compiled swc.

This would obviously mean that anyone using my library would need both libraries as well, but I would prefer it this way. I am not using Flex/Flashbuilder which I know allows you to choose the classes to include in a swc.

View 2 Replies

Convert Pdf File Into Byte Array,retrieve Byte Array Into Pdf File In Flex Desktop Application?

Mar 28, 2012

convert pdf file into byte array.and also i tried in Google also but no results yet.can u prefer how to convert pdf file into byte array and retrieve byte array into pdf file in flex application.

View 1 Replies

Flex :: Compiling Content Of Directories / Wildcard To SWC Using Compc Ant Tasks

Jul 29, 2010

Here is how I usually write the compile task:

[Code]...

What I'm looking for is a way to compile the entire director of classes without having to specify each class. I'm sure there's already an option for that, but I couldn't figure out the exact syntax.

View 1 Replies

Flex :: Get The Actual Size Of A Component?

Jan 19, 2011

I'd like to get the actual height of a component after adding some children.

When inspecting the variables tab in debug mode, I see 2 different height variables:$height (which contains the correct value: 138) and height/_height (which contains a wrong value: 10).

I guess that the display is not updated and so I'm not getting the correct height using component.height, but how can I get the value in $height?

[Code]...

View 2 Replies

Flex :: Get Visible Size Of Component?

May 16, 2011

I have DataGrid with horizontal scrollbar. How can I get its visible width?

View 1 Replies

Flex :: ViewStack - Adjusting Component Size To Be Same

Mar 22, 2010

I have a viewstack with 3 items in it. Now my problem is that I want all these components to be of the same size. Its simply enough to do this manually but is there any other way of setting the size for all the components at once?

View 2 Replies

Actionscript :: Validate On Demand A Flex 4 Component Size?

Nov 16, 2010

I have a component and I add some content to it making it change it's size, immediately I need it's new size, but flex only updates the size in the next frame by calling updateDisplayList. how can I force it to update the size of the component right away.

View 1 Replies

Actionscript 3 :: Flex - Layout Overview - Get A Component's Preferred Size?

Nov 16, 2009

Is there a good place that has an overview of how Flex layout stuff is managed? I'm trying to create some user-resizeable "windows" in Flex, but I'm having some trouble getting the layout calculations for the contents correct. Right now I'm just trying to get a good understanding of how Flex calculates its layouts, but I haven't found any good overview documentation. For instance, looking just at the width value there are the following:

[Code]....

and the same set for height. What's the meaning of each of these? How is each used? Is there any way using those to calculate some preferred size of a component (like getPreferredSize() in java)?

View 3 Replies

Flex :: Setting Font Size Of Header Of TitleWindow Component?

Mar 7, 2011

How can I set font size of title property (header) in TitleWindow component? If I use fontSize property, it sets the font size for all components in TitleWindow, which is not what I want. I only want to set it for the title. I'm using Flex 3.

View 1 Replies

Flash :: Flex - TFS Build 2010 Call An Ant Script And / Or Build?

Mar 31, 2011

In TFS 2010 build, I have a new build and I want to call an ant script that builds Flash. How do I call the ant script? Also How can I compile the Flash directly? I've seen the Power Tools and this question but it doesn't help me as we don't have TFS 2008. I can't find any documentation on how to use the power tools except the 1 sentence on the bottom of download page saying to create your build the old way and import it (which isn't very helpful). I've installed the power tools on the agent computer but I don't see any new options in the Toolbox when I'm designing the build flow.

View 2 Replies

Flex :: Creating Ant Build Script To Build Only When A Dependency Was Updated?

Apr 14, 2011

I just started working with ant a few days ago. Right now I have a general buildall.xml which should call each project's build.xml. Because some projects depend on each other, I need to rebuild some other projects which depend on it. This isn't a problem--I'm just setting the depends property of the target. However, ant is always building the dependencies, even when the files haven't changed.Let's say project1 has no dependencies; project2 depends on project1; project3 depends on project1, 2; project4 depends on project1, 2, and 3; and so on.I could hack a solution which looks at project K, and checks if project 1 .. project K have updated files using uptodate. If so, then run the target. This is messy and appears unnecessary.

What is the cleanest way to implement this?EDIT: So I decided to just hack in a bunch of targets, "check_projectK" where it does the uptodate checks on all of its source files, its build file, and the build files of the 1 .. K-1 projects. Due to dependencies, this is always handled correctly. However, this is still a large amount of copy and paste for a large workspace.

View 1 Replies

Flex :: Layout - Size The Height Of A Component To Fill The Space Available On Stage

Jun 26, 2009

Im trying to create a layout in flex using mxml, the layout contains a Canvas component and a Box. The layout should always be such that the Box sits at the bottom edge of the application and has a fixed height, whereas the Canvas fills the remaining stage area and does not overlap with the Box. My MXML is as follows;

[Code]...

View 3 Replies

Flex :: Change Font Color And Size Within Single Label Component?

May 18, 2010

i'm trying to create a unordered list in Flex. My issue is that within each line, i want the word NEW to be a different font color and different font size from the rest of the label text. I am unsure of how to do this INLINE within the label component.

<s:VGroup fontSize="15" color="#ffffff">
<s:Label text="u2022 NEW Invite your friends!" />
<s:Label text="u2022 NEW Features coming soon!" />
<s:Label text="u2022 NEW Invite your friends!" />
</s:VGroup>

View 1 Replies

Flex :: MouseOut Event Triggers Based On Old Component's Size After It Was Resized?

Mar 22, 2011

I have a component called X. I'm trying to make a menu come down from it when I put my mouse over it.

I have a mouseOver handler which changes the component's state to another state which shows an extra child component (the menu) on the lower part. This of course makes the X component grow.

I also have mouseOut event handler which makes the menu disappear by returning component X to its original state.

When I move the mouse over the component the menu appears as expected. But when I move the mouse down to the menu that is now visible, as soon as I touch it, it disappears. This way it's impossible to reach the menu.

I guess the mouseOut event is triggered as soon as I move out of the old boundaries. Is this so? And how can I avoid it? The new boundaries should now consider the extra child with the menu.

View 1 Replies

ActionScript 3.0 :: Changing Component's Size Doesnt Update Parent's Size?

Mar 1, 2010

I have following problem:

Code:
title_txt = new TextInput( );
title_txt.setSize( 100, 20 );

[code]....

View 4 Replies

Flex :: Compc "error: Could Not Find Source For Resource Bundle" When Upgrading From 2.0.1?

Mar 30, 2011

I have moved our project from SDK 2.0.1 to 3.5 because I'm using TLF. This has compiled OK in flex builder 3 IDE but I am now using command line compilation for our build system and getting errors for all the standard Flex resource bundles: Sharedresources, collections, containers, controls etc. I can see this is because of the improvements in Flex 3 and the SDK local folder doesn't have these as .properties files but now has a framework_rb.swc.

View 1 Replies

Flex :: Ant Tasks Compc For Air Errors "undefined"?

May 26, 2011

I'm trying to compile the SWC from the source I have writen, but for some reason I'm getting this error:
[c
[compc] Error: 'flash.events:StageOrientationEvent' is undefined.
[compc]
[compc] Error: 'flash.data:EncryptedLocalStore' is undefined.
[compc]
[compc] Error: 'flash.desktop:NativeDragActions' is undefined.[code]....

View 1 Replies

Actionscript 3 :: Programmatically Altering Font Face, Size, Weight And Color Of A Flex Label/Text Component?

Dec 24, 2009

I can change the color of the label in Flex Builder, I can even BIND the color to a variable and that works, but I can't find the Color PROPERTY in order to change or reference it programatically! What is the ActionScript 3.0 code to change the font or color of a piece of text in a Flex RIA - or is caring in what color your text appears too bizzarre a request for a RIA? I wrote whole applications after just minutes of "learning" flex, how come it's taken me three days and I still can't change the color of my stupid label?

View 1 Replies

Java :: "Invalid Byte 1 Of 1-byte UTF-8 Sequence"error?

May 25, 2010

Invalid byte 1 of 1-byte UTF-8 sequencemy error is the above line.am using am calling java method using Blaze DS.

View 3 Replies

ActionScript 3.0 :: Build A Textfield In Library Or Component?

Oct 26, 2009

How to build a textfield in library or component so that I can drag it to stage?

View 2 Replies

Flash - Use CS4 To Build An AS2 Project That Uses The New FLVPlayback Component?

Aug 8, 2010

We have a huge project written in AS2 with the old FLVPlayback component which was responsible for progressive download playback of FLVs. I'd like to support MP4 files (which is now supported in Flash 9 and up with the updated FLVPlayback) but would like to not have to rewrite all of the project.I've seen in various posts on SO surmised that one could possibly use CS4 to open the AS2 project, replace the FLVPlayback component with newer one and build.

View 1 Replies

Javascript :: Build A Website Where Words Are Floating In Position And Size And If The Mouse Comes Over One Word?

Sep 23, 2011

I am kind of new to javascript/html5. normally I would do that kind of stuff inside flash/as3. but since the iPad doesn't support that I need to switch the horse...I want to build a website where words are floating in position and size and if the mouse comes over one word it should draw some lines to all the other words. are there any frameworks one could use? the whole should look like a tag cloud with lines between the tags.

View 2 Replies

Flex - Return Byte Array From Alchemy C?

Feb 3, 2011

I have written a alchemy code for reading the byte array that i have passed from flex.

When i print the value i get the error cannot convert "OggS" to flash.utils.ByteArray

Alchemy Code

[Code]....

View 1 Replies

Flex :: Convert Byte To Domain Objects?

Mar 9, 2011

A Java developer just asked me the following:

If I send you byte[] for all the method calls on Remote Objects - will you be able to convert it to domain objects?

View 1 Replies







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