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?
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 orignally 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..
loading dinamic text from rollover on buttons, with:Code:textfield_txt.text = "Example of text loaded on dinamic field"But sometimes the text will be longer than the permitted field _width, missing some letters.Is it possible to make the text flow, like a marquee or a news ticker, from left to right when the text is too long, and then go back and start again? I searched for it but is always use movieclips
I 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?
i hav a left right moving thumbnail gallery from xml, i need that on the last image image come on focus from the left side so automatically the left button will be disable or opacity goes 0 anything and same thing from right side also.
I have a series of thumbnails that should scroll from left to right & right to left when you roll over the movie clip buttons on either side. IT was working in another flash movie, but I moved it to a different flash file and now it's not working. The hit buttons within the movie clip buttons have this action script:
looking to create an image/mc slider that moves form right to left via user clicks of a left and right button.I would assume I would create an array to hold a series of mc's in (my images) and then tell the left and right buttons CLICK events to move linearly through the array (displaying next in line and previous etc.
I've some components with dynamic heights. They have to be aligned with respect to the bottom of my canvas container, so I cannot set the same y for all components.
I could compute their heights and successively set the y but I was wondering if there was an easier way to do it.
I have an Image called "PanoramaImage" (which is very long in width). I want this image to move from right to left & from left to right automatically.
I am using flash as3. I am loading this image from the same folder where the .fla file exist. my image to move by using Up & Down arrow keys.
The following is the sample code i found on web.
var loader:Loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.CO MPLETE, completeHandler); loader.load(new URLRequest("panorama.jpg"));
I have an Image called "PanoramaImage" (which is very long in width). I want this image to move from right to left & from left to right automatically.I am using flash as3. I am loading this image from the same folder where the .fla file exist. Right now I have the code which will help my image to move by using Up & Down arrow keys.The following is the sample code i found on web.
var loader:Loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.CO MPLETE, completeHandler); loader.load(new URLRequest("panorama.jpg")); var content_mc:Sprite = new Sprite();
My vision is to have a colored square at the top of the site Im working on which should span across the entire browser window. I have created a square 1280 x 100 pixels in size and imported it to the stage, alignment is set to x=0, y=0 ad alignment. The scene is the same size as the square I 've imported. When I view my Flash creation its displayed 8 pixels from the top left corner of the browser window. The flash file only contains the square and nothing else. take a look at the 3 files I've attached: issue-scrreen1-3.jpg. The first 2 screens are my Flash, properties and library screen shots. The third screen shot is my browser window.
I am currently working on a Flash socket client for a pre-existing service/standard. The service uses TCP flow control to throttle itself and the Flash socket is reading in everything as fast as it can despite not being able to process it as fast as it's being taken in. This causes the bytesAvailable on the socket to keep increasing and the server never knows that the client has fallen behind.In short, is there any way to limit the size of bytesAvailable for a Flash Socket object or throttle it in some other way?
use CFC's via CF8 to interact with an Access db. In 1 screen of my Flash8 application, I have to update up to 7 rows in a table depending on whether a screen field was filled in and each of these updates is an identical activity. Ideally, my code might look something like this:
I must be missing a step. I've set up a text container and font parameters correctly, and I've selected multiple columns. The text, however, won't flow from one line to the next. I'm working from Classroom in a Book, Lesson 7, on Using Text. I've never encountered this problem before in other Adobe programs.
Something that is similar to the Cover Flow in iTunes.
I can use Adobe Flash, Flex, or pure html/javascript.
HOWEVER, I need a pointed to production ready code. I've looked at plenty of examples in both Flex and HTML that aren't ready for prime time. No demo code needed.
Here's my requirements for production ready:
1) Memory leaks are under control.
2) Works like a river with larger data sets, paging in sub-sets in some set number. The component/code needs to be able to handle 100+ items to flow through, preferable up to 500.
I'm stepping through my code to figure out why a certain function takes more time to run the first time it gets called than on successive calls. The code flow for each function call is the same up to when a dispatchEvent gets called. I'm pretty sure it's different afterwards, as that call takes a lot more time the first time around. Unfortunately, I have no idea which other parts of the code chew on this specific event and thus cannot step through the handling of such event.
The question: is there a way to either figure out who handles such events or magically step through the handling code without explicitly setting breakpoints there?
Specifically, I have a demo of a flash game (sort of super mario style). In it I have two types of weapon - a simple fire and big fireball. I reviewed the code in order to learn flash better [I am very new - since around monday this week].
I saw that the program has a variable that keeps track of the number of uses I have left in each weapon. I tried to review all the places this variable was used but I couldn't find where it affects the drawing onto the screen.
I even tried removing the variable declaration and then testing it - so I may find all references to the variable -- By the way any convinient way of finding all references to a variable/method/class [I am using ADOBE FLASH CS5.5]? Also, I tried changing the variables starting value to "12" and I noticed that when I test the game, the weapon has 12 uses indeed.
So my problem:1. It seems that this variable is somehow affecting the drawing. Yet, I don't know how it does so since all the code I have found that uses this variable has nothing to do with drawing. It is all, logic, like
if(var <= 0){ var--; } else{ return false; }
Where is this influence coming from?get all references to a variable[like in eclipse ctrl+shift+g]?
I am using the open source version of the flow player. I need to write some code or write a plugin for the player that allows the user to click on a button that will slow down the player and another that will speed up the player.
I have a project where I'm loading some HTML into an HTML-enabled dynamic textbox, along with some images, using the img tag. The problem I have is that no matter what I do, the text tries to flow down one side of the image (depending on whether I have the image set to align 'left' or 'right'). I don't want this. I want the text to sit under the image, not flow around the side. I've tried everything I can think of, and I just can't seem to achieve this.
There's a lot of talk of how the new Event Flow makes for easier communication between classes.This sounds swell,but nowhere is it properly explained. Every example I find concerns dispatching events within the same class or looped through a customEvent, but I need a way to tap into this Event Flow for backward communication.I have a mainGUI document class that distributes my application subclasses.How do I set up a listener within mainGUI that gathers certain events from any of its children or grand-children? And how can I use this line to post object properties?
My goal is to shoot a bullet everytime I click on ship. What happens, in fact, is that If I click on it once, the bullet is shot, but if I click on it twice before the first bullet is off the screen, the first bullet literally stops(it does not disappear, only stops) and the second bullet is shot.
public var ship:Ship = new Ship(); public var bullet:Bullet = new Bullet(); stage.addChild(ship);[code]...
a couple of month ago i saw a picture showing the responsibility of the different actors in the as3 robotlegs frameworks. The picture was great for beginners who didn't know which actor is responsible for what task. It was like: "Do you want to bind a button to an event -> use the mediator"[URL]...
What is the proper OOP method of communicating between classes that are not on the display list?
For example: The Document class instantiates a new class just for loading in different XML files. This XmlLoading class should let the document class know when the xml has been loaded and parsed so that the interface can be built out.
From my understanding, events can only be listened to and dispatched through the display list, but since there is nothing visual with this xml loader, it doesn't make sense to me to make this class extend a sprite and add it as a child of the document class.
I've got 4 button images that drop in when the movie starts, and when you click on an image it loads in an XML image flow. Problem is, when I click the "go back" button, it goes to frame 2 to start over, but the XML gallery/image-flow won't leave the stage. Link is below, code is attached.I've been pulling my hair out for a few days now
When the feed truly fails, then onXmlLoad never runs (or it breaks; not sure which; either way I don't have an issue). However, when the feed doesn't fail, both catchHttpError AND onXmlLoad run which creates a problem. I want to set this up so that its either one OR the other.
As I was looking into the properties of HTTPStatusEvent.HTTP_STATUS, I noticed that I can check status, but the problem is that status can either be 200 or 0 and this is not exclusive.