ActionScript 3.0 :: Text Loader Disappearing Under A Mask?
Oct 20, 2009
I created a loader class which creates a text pre loader and works fine until I add a mask over the images.Then the preloader doesn't display anymore. The preloader is called "progressOutput"
I have the following code which simply loads an external swf, puts it in the right place and should all be hunky dory.This works:
Code: var myLoader:Loader = new Loader(); addChild(myLoader); var url:URLRequest=new URLRequest("foobar.swf");[code].....
to set the dimensions of the loader so the external swf doesn't 'spill over', the result is a blank screen. No matter how high I set those dimensions it just doesn't display anything.
I have a startDrag function set up on a loader and mask that when the mouse is down on the loader it drags, when not it doesn't. There is also 2 buttons that control whether mask1 or mask2 is used. What i would like however is when the mouse is down - the area of the loader outside of the mask is visible but only by about 10/20% alpha, that way the user can see where all the image is while dragging. Is this possible? Full code can be seen below and i have attached the zip with the .fla file:
why my key frames are disappearing when i turn my shape tween into a mask. I have shape tweened a mask ontop of a tree branch and all the frames are there as a plain shape tween, but when i turn that layer on as a mask the key frames go blank..
I have event listeners for when an image is loading and for when loading is complete.
Both of them fire--I've used traces to confirm that.
But I can't get the text field that says "Loading..." to disappear once the image has loaded. I've tried making the text field invisible, making the text equal nothing, and removing it as a child. Nothing is working. Maybe I am not manipulating the text field properly?
I'm currently working on a LARGE flash presentation broken up into many small flash movies. the files play fine in the timeline, but SOMETIMES when publishing as .swf, the text is not visible, but all the other objects and tweens play as normal. My co-worker is also having this same issue, but we can not figure out why. It seems random and does not happen with all of the files. We are copying and pasting symbols from file to file. i don't think that is the issue, though. i wonder if anyone else is experiencing this or knows why. causing LOTS of extra time spent remaking presentations.
I'm working on an interactive poetry project. I have 49 textfields displayed in a 7x7 grid. The properties are stored in an array. Here is the code for that. For the purposes of demonstration I place the character "S" as text in each field. This code works as intended.
var instances:Array = []; for (var i:int = 0; i < 49; i++) { var j_inst:TextField = new TextField(); j_inst.text = "S";
[code]....
The problem occurs when I want to change the text. When it's triggered the text simply disappears. I have no idea why and I'm running out of ideas. I've tried without the embedded font but to no avail. Changing other text properties like instances[j].x works but whenever I change the text I lose it.
function ChangeText(e:TimerEvent):void { for (var j:int = 0; j < 49; j++) { instances[j].text = "X"; } }
I am creating a map that has pop ups with country information. When a country is clicked, a box pops up with the country name, an overview of the area and a link. All the text is pulled in from an external XML doc. My problem is that the link only shows up on the first box (as soon as it clicks, it wont appear in other countries profiles).I don't receive any errors and the links work fine, just as long as they are the first to be clicked.
I'm animating some text, I enlarge it by using free transform tool and drag the handles until my text covers the screen. Problem: the text is so large that the left and right drag handles disappear from the stage, I can only resize using the middle handles and this is not constraining my text the way I want it.
I'm having issues with dynamic text disappearing under a specific circumstance. When the playhead enters the Photos frame the code below is executed. This code sets the text value of the linkTEXT textfield and adds a bitmap to the linkTHUMB mc. The code runs perfectly and everything is populated most of the time.
The exception... The website has 4 frames which it can navigate to (home, photos, order, contact). If I stay within the first three, each time I navigate to Photos the textfields and bitmaps will be populated and display correctly. However, if I navigate to the Contact page, either before or after I've already visited the Photos page, only the bitmaps will display.
Strangely enough, the textfields still trace their proper values. It also appears as if their parent movieclips are still in the display list since I get the hand cursor when I mouse over their x+y coordinates. If I trace the parent's numChildren property I can see the textfield is still a child.
So where is the text going, or why does it suddenly disappear? If the textfield is still there and it's on stage in the display list why isn't the text being displayed?
I have a linked movieclip in my library that contains a dynamic text field. I edit this text via my external class but when I tween my MC, the text just disappears !!
Code: var goTo1:_goTo1= new _goTo1(); addChild(goTo1); goTo1.id=0; goTo1.buttonMode = true;
I have a static textfield using Myriad Pro bold font that, when set to STATIC TEXT works absolutely fine, in the correct font. If I set it to DYNAMIC TEXT and test the SWF, the text shows up as a system font; not Myriad Pro If I set it to EMBED CHARACTERS the text doesn't show up at all on ANY system, whether the font is installed or not.
I have tried adding the font to the Library and using that "Family" for Properties>Character in my dynamic text box, but get the same results as when I don't set that to EMBED CHARACTGERS. I've tried selecting the font for the textfield as both the standard OS Font, as well as the one with the Asterisk next to it, but get the same results both ways. The library font is set to "export for actionscript" and "on frame 1". I don't think it's an issue with the font not being available, as I'm able to see it when setting textfield to STATIC type, and I use the font in other CS4 products (Photoshop, etc.).
I have a .f4v on a layer using the FLVPlayback command. On top of that I have a dynamic text layer. It plays fine in a browser or at the exported resolution. When I use the command ("fullscreen", "true") or when I open the .swf and go full screen using CTRL-F the text disappears. I have removed the video and put the text on a solid background layer to determine it is the video causing this. I have also tried to convert the .f4v to a .flv and embed it in a .swf in multiple manners but the end result is always the same as the text disappearing.
Ok, so i have this problem with text dissapearing if i use one font, it shows in one textbox, but the other ones are odd, they either show 0 or 1, or the first letter only, or nothing at all. What's the problem?In the beggining i tried to ignore the problem by changing the font or the font style, but now, it's becoming to ugly if i use too many different fonts.
The problem is: When I press my buttons twice, the text in the scroller disappears.Everything is set so that It shouldnt be possible to press the same button twice though.The situation in short is as follows. I have 4 scenes and 4 buttons, every button linking to respectively another scene / page. The buttons all are in movieclips. I have 4 different movieclips all containing all buttons. For the page movieclip the-button in the movieclip getsœswitched o by ungrouping it and so on, and so on.On every scene I put the movieclip, with the correct button switched of, on top, with thenction. The other movieclips are made invisible by the visible = true˜delete this.onEnterFrame; function.Im not a develloper but a graphic designer. Dont know much about AS2. I bought the photoslider and textscroller on FlashDen and thought d finnish of this project pretty quickly, but I thinking m almost there" for already many hours now.
I am trying to do some text effects by using a text mask but I can't get the mask to work. I can successfully mask a circle over a rectangle, and even mask a rectangle over text, but text over a gradient rectangle just doesn't work - I end up with the rectangle moving across the stage, but no text mask.
i have a dynamic text block which is inside a movie clip, is i grouped with other elements.This movie clip sits behind a mask. when i am in the movie clip i can see the text field, when i am on the root level (and the mask is disabled) i can see the text, but when i preview the movie the text IS GONE or I CAN'T SEE IT.
I'm working on making a news scrollpane thingamagig. I have a movieclip called "entry" with textfileds (basically it's just a header bar and a bottom border bar with two textfields). These are dynamically attached based on the number of xml nodes into a holder clip and I have that holder clip masked and for some reason the entry movieclips will show, but the actual text doesn't. when I get rid of the mask then the text shows.
Hello Flash World, Ok, I may have posted this question before but I am still confused. I have a Master Movie Clip that has a Mask over it. By having that mask I can't view my dynamic text box that is scrollable. How do I embed a font so I can view my dynamic text box? (Im using AS2) attach is a file that explains my problem.
i have a dynamic text block which is inside a movie clip, is i grouped with other elements. This movie clip sits behind a mask. when i am in the movie clip i can see the text field, when i am on the root level (and the mask is disabled) i can see the text, but when i preview the movie the text IS GONE or I CAN'T SEE IT.
I've been trying to dynamically change some text for a titlebar that is behind a mask
However, I find that when I change the text of the dynamic text field (whose containing movieclip is masked by a graphic), the text no longer appears at all.
When i remove the masking, the text changes properly when asked, but when it it masked, the text does not show at all.
I'm relatively new to Flash, and I�m in the process of creating a flash intro to my website. The problem is, whenever I preview one of my Mask layers by pressing Ctrl+Enter, the mask effect doesn�t work � it merely shows the masking object. The puzzling thing for me, which leads me to suggest that the mask should work is that in the normal timeline view, when I lock both the mask and masked layers and press Enter or slide through the frames � the effect works perfectly. On Ctrl+Enter all of my other Masks work fine as well - the one in question has text as the mask content.
It only stops working when I view it as an .swf file or play the movie with Ctrl+Enter. Does anyone know why this is happening, how I can get around it, or whether it will be a problem when published?