ActionScript 3.0 :: CS5 Package Flashx.textLayout.elements.examples?
May 2, 2010How do I use the xamples in the language reference, which have this package id:
package flashx.textLayout.elements.examples
How do I use the xamples in the language reference, which have this package id:
package flashx.textLayout.elements.examples
I am trying to get my text progression to flow right to left but flip it so that instead of tiliting your head to the right to read it you would tilt your head to the left. I had originally transformed and flipped the text box which worked for english text. But there is an option to change the language to chinese and when you do, the chinese character display upsidedown. Do you know how to handle that?
View 5 RepliesI have a set of custom UI elements that are used in a number of activities, and want these maintained separately but linked into the activity on compile.Basically an external library that can be linked to by all activities.My understanding is that a SWC is the correct way to implement this.I have created a bare-bones example of this duplication problem,download here.The following description is based on this example.The "shared.fla" has a library symbol with a linkage id (which is actulaly just a TLF Textfield).Compiled to SWF this is 52KB (all of which is flashx.textlayout.* TLF actionscript bytes) + 153KB textLayout_ *. swz.Compiled to SWC this is 397KB.The "activity_link_swc.fla" displays this shared library symbol on the stage, and links to the "shared.swc".This creates a 179KB swf file. This filesize is the same if the Runtime Shared Library Settings default linkage is either "RSL" or "Merged Into Code" - obviously the inclusion of my "shared.swc" automatically inlines the textLayout code.
If instead of linking to the SWC I just copy all of the SWC's library contents into the activity, of course this gives a SWF size the same as the "shared.fla" - 52KB + external textLayout.swz 127KB smaller (assuming the swz file will be cached locally, and that's the whole point of SWZ files).Is there any way to get this to work?Having a compile time shared library of assets, without incurring a penalty for touching the mess that is TLF?
Does anyone know if there is a way to find the height of the text within the TextLayout class?
I am making my TextLayout objects like so:
this._textFlow = new TextFlow();
this._paragraphElement = new ParagraphElement();
this._textFlow.addChild(this._paragraphElement);
[Code].....
All the public properties I'd expect to find the height are undefined such as this._textFlow.lineHeight.
I am having trouble embedding a font as bold using FB4. I am using TextLayout fields and TextLayoutFormat to do this and my code is as follows:
package {
import flash.display.Sprite;
import flash.text.AntiAliasType;
import flash.text.Font;
import flash.text.TextField;
[Code] .....
The font just displays as normal and the 'fontWeight' property is ignored.
I am having troubles passing an x and y argument into a package function that creates a projectile on stage at the tank.gun's x and y.I have attached a zip of the code I am working on.[code]
View 6 RepliesI'm running into this weird thing with ASDoc. It will only document one package function per package.For example.I have these two functions:
gs.util.printf
gs.util.ftrace
In these files:
gs/util/printf.as
gs/util/ftrace.as
The only function that get's documented in ASDocs is "printf". But I know it can do more than one. As an example, in the livedocs [URL] There are more than one functions documented.
I'm a PHP programmer who's learning more about adobe products including flex, and would like to train myself to recognize when flash/flex is the right technology to use for a client/project (and of course when it's not the right technology to use).I guess the best way to get it is by experience, so if you know of any examples (full site or even small part of a site) that you think the developer was right or wrong in choosing the flash technology for that project/part, please add it here with an explanation why. Same for other projects that were not implemented in flash but should have been. If you think the developer made the wrong decision, say why and what you would have used instead. The idea is to provide real examples to help people like me who are getting into flash/flex, but want to understand the right way to fit it into their work if at all.
View 7 RepliesI would like to know if anyone has seen online search evidence that google indexes swf sites. So If you have an example where its purely a flash site and a search comes up finding copy from within, I'd be keen to check it out.
View 1 RepliesI want to test some things in AS3, and am currently trying to use some things i found on the internet. A lot of the examples are made for flex (i think).. they just dont work. Take for example the pngencoder from adobe. Copy pasting it obviously doesnt work, so could anyone explain how to change it?..
View 4 RepliesI have an actionscript file,it has a package name,it locate C:demo directory,like follows:
package demo{
import flash.display.*;
public class ABC extends Sprite{[code]............
Then I compile above code like following command,but it raise following error:
C:>mxmlc demoABC.as
Loading configuration file C:sdkframeworksflex-config.xml
C:demoABC.as: Error: A file found in a source-path must have the same package structure '', as the definition's package, 'demo'.Where is wrong above command?
This is with Flexbuilder 3.2, Eclipse 3.3.2.I am moving my development environment to a new machine. Actionscript classes that compiled in the old environment now get a compile error:
A file found in a source-path must have an externally visible definition. If a definition in the file is meant to be externally visible, please put the definition in a package.I do declare the package in these classes - I think failure to declare the package is the usual reason for this error.To add to the mystery, many classes in this project compile without errors.
I had seen different examples of volume controls for videos. I had built one that works, but the volume control is outside the main controller/Holder, so If I move the Holder the volume stays. I tried placing the volume controller inside the holder, but I loose the ability to drag and control the volume. here is the AS3 code I have.
Holder_mc is the main mc that will contain all other controllers.
[Code]...
I am trying to create a simple board game (a kind of checkers), where users will be able to play online with each other using flex application as a client.
I am using django application to process the game on the server side. And I come across the problem, if one user made a move, I can send it to a server, but how do I let the opponent know about it?
The way I am thinking to do it is to create a timer and send requests to the server asking was opponents move done or not....But here we have 2 limitations:
1) Each client would produce big amount of requests (not sure how server will work if I have e.g 100 such clients)
2) If players will chose game with a time limit for example 5 minutes/per game it will be very important to show them situation on the board as soon as it changes (without a pause), but timer will send request only on timer event, so if for example I will chose tick interval to 5 seconds it will mean that 5 seconds another side will not be aware of the situation changes.
I'm in the process of learning Flex, but I learn best by example. Where can I find open source examples of Flex applets? In particular, I'm trying to reproduce the functionality of the JavaScript based Simile timeline, so a timeline example would be sweet.
View 2 RepliesI'm considering using Flash as the UI of a native Windows app, for several reasons, but before I dive in and start building, I figured I'd poll the community to find out whether anyone's got any good examples of this particular approach out there today, just to prove the concept satisfactorily. So I guess that's pretty much the question: Anyone built one specifically? Or better, anyone know of an app in relatively wide distribution that demonstrates the viability of this approach?
View 4 RepliesLooking for Flex (RTMFP) examples for the service online consultations (with sources).When an expert conducts a text chat with a customer.
View 1 RepliesI'm looking for examples of command chaining in Parsley. What I mean by command chaining is when one command returns a result that is then immediately used to initiate another command. I ask this question here because the parsley forums have been down for 2 days.
View 1 Replieswhere I can find some examples for calculating trajectories? Basically I'm trying to create a simple example where a missile is shot at a certain angle (already got the movable station) then every frame a function is fired to calculate what happens to that missile. What I need help with is what happens every frame.
View 2 RepliesThe enclosed image is a snapshot of part of my web page portfolio. At the moment it is placed jpgs into Dreamweaver. When you click on a work example it opens up a new browser window with the work example enlarged (old fashioned way). This is not really a problem but I was wondering if I put my work examples into flash CS4 how do I go about creating the effect of a work example instantly being magnified the moment someone clicks it? Like what happens when you click the enclosed image.
Is this an actionscript job or can this effect be produced without any complex scripting work? Perhaps someone knows a tutorial somewhere for a similar effect in Flash CS4. I would like the work examples to magnify quite large though. My thinking behind this was so people can't steal your work example JPGs so easily (flash portfolios seem to not allow saving of the content)
I am trying to create a simple gui component that has a vertical gradient, simple enough right... I create the sprite, and draw the gradient with beginGradientFill and a matrix with a 90 degree radian angle on it; but it stops working if the sprite has a long width, below is an exmaple of what I mean:
package {
import flash.display.GradientType;
import flash.display.Shape;
import flash.display.Sprite;
import flash.geom.Matrix;
[Code] .....
If I change
matrix.createGradientBox(800, 100, Math.PI*0.5, 0, 0);
to
matrix.createGradientBox(800, 100, Math.PI, 0, 0);
It works fine - but horizontally - why is it that applying 90 degrees the fill does not work?
Is it generally to position elements relative to other elements or in absolute values?
View 2 RepliesDoes anyone know where can i find tutorials or even examples for connecting to a remote web server via XML-RPC. I want to establish connection with the server and call a remote method ...
View 0 Repliesdoes anyone know how to shift all the array elements by one or more without deleting the array itself?
Something like rotating the array:
1,2,3,4,5,6,7,8,9,10
10,1,2,3,4,5,6,7,8,9
9,10,1,2,3,4,5,6,7,8
8,9,10,1,2,3,4,5,6,7
7,8,9,10,1,2,3,4,5,6
When i create a menu, the dropdowns go behind the flash element. But in some sites, like Digg, it is shown above. z-index is of no use
View 2 RepliesI made a .as Class where some graphical elements are spawned into the stage. However, the Flash (.fla) have some internal graphics that are supposed to be over the graphical elements spawned from the custom class.I tried to make another layer over the layer where the as3 Class is being called, but unfortunately it doesn't do anything, the graphic from the .as still appearing over the internal .fla graphics.
View 2 RepliesI have classes witch resides in this package :com.network.interface_as. When I try to load one class from that package in another class in the same package like this:
[Code]...
Looking for a programming book that is in tutorial approach. Example this chapter teaches you how to do a login form. In the second chapter it teaches you how to integrate the login for to another app.Basically I'm looking for a book that teaches you real working application rather than abstract ideas. Programming language I have in mind is Adobe Air/Flex, Visual Basic. Functions I have in mind should at least cover Drag and Drops, Integration to a web form (form entry) and customizable interfaces.The languages i had in mind isn't fix. If you know a programming platform that has little code or easy to learn but still be able to develop a cool application.
View 3 RepliesWhen and where will see (ore already can get) Adobe® Stratus 2 examples (with source) on "Swarming", Live Application-Level Multicast, Distributed Data Storage?
View 1 RepliesI searched the forum, could not find questions like this so I hop this is the right forum.[code]...
how I should add this package to CS4?