Actionscript 3 :: AmChart Component Is Not Rendering (AIR App)?
Jul 20, 2011
Our AIR app consists from multiple modules. Each module extends MovieClip class. But when I am adding AmChart component to one of these modules, it is not rendering. Here the sample (PieChart.mxml):
I have a component that has a sub-component they both use a shared variable from the model. The shared variable needs to be set by the parent component before it can be used by the child component. I did like this in the parent component:
But for some reason when the code inside myCustomComponent tries to use myVariable for the first time I get a "null" object error. This means I guess that the child component gets rendered before the group1_activateHandler gets called and consequently myVariable gets set.
What should I do to ensure that the parent container initializes the variable before the child component gets created?
I have created a MyTreeItemrenderer extending TreeItemrenderer.
However, I do not want any label, folder, disclosure icon nor icon. I want to dispaly every node of the tree with my own graphic like eg: a line, round image etc.,
Beginner Question: I am using the IFrame Component for Flex in Flex 4. The code below works when it is put at the top of the scrolling area. However, if I put it where it below the viewable area it will not render. I am a complete beginner to Flex. The interesting thing is when I resize the window while the HBox is in view, the Iframe will load. But scrolling to it will not. Below is my code. I have made sure everything is visible=true but it seems like I need to add a listener or somehow trick it to think that the window has been resized to get it to render. Anyone with an idea how to fix this?
I am a little confused about the setActualSize method. It appears from what I've read, that if it is not called on a component by its parent, the component will not be rendered. So it appears that setActualSize is a critical method that is directly bound to rendering the UIComponent. It also appears that the width and height properties of UIComponent override the functionality of the width and height properties of flash.display.DisplayObject, in that they are not directly bound to the rendering of the object but are virtual values that are mainly used by the getExplicitOrMeasured when the parent of the component calls the component's setActualSize method. So the question are:
How to set inline style sheet to htmltext of textfield component as mentioned in the xml CDATA. At present , i am using textfield.htmlText propert , but i am not able to get the fontfamily as mentioned in the xml CDATA. The text is also not getting displayed in the correct format. The image is not coming in between the 2 question strings and its getting displayed at the bottom of the question while the 2 question strings("q text info", "with images also") are displayed as a single string. How to reformat the xml so that the image comes in between.
I have an application which displays employee information. If the user opening the detailed employee information page is not authorized to make changes I set the TextInput to disabled. Some users are reporting rendering issues with this. The TextInput's text value does not appear inside the box but is misaligned and is outside of the component. You can see the screenshow below of the disabled ID column where the numbers which are supposed to be in the TextInput box are far off to the right.
I have an Air Application that uses a HTML Component. The HTML page that the component is rendering includes images with title tags. The tags render fine outside the Air Application, but when run in the AIR application, they do not render.
I have a component "child" which has a cancel button. Now this component is placed in a state called "newChildComp" I also have another component called "parent". In the parent component, i have a button that dispatches an event. Here is the event code:
[Code].....
so, basically,i am checking to see if the cancel button component in the Child component, while i am still in the parent Compoent, was clicked, if it was clicked, call the cancelButtonHandler. The problem is by the time the addNewChild handles the event, that cancel button was still null. My question is how do i solve this without using the itemCreationPolicy on the cancel button?
I have to animate a bunch of text flags on a timeline, which my artist layed out in Illustrator. I import them from AI and if I am zoomed in they look fine, the verticals of the text are straight up and down. But if I zoom out, the verticals rotate to the slant.
Same goes for when I publish the swf. I have the flags all scaled small on the screen, and the text is all messed up. Then I scale up each flag to focus on it, and somewhere in the scale Flash decides my text is now big enough to look the way I want it. It is erksome. Is there a way I can force it to render straight up and down, without having to break everything and un-editablize my text?
I scripted a DropShadowFilter to render on my Movie Clip. The MC just consists of static text and its using the Tween class to move on the screen. Can't figure out why its not showing up. I'm using the same method on another movie clip that is just images, and works fine. Not generating any errors either.
Code: import flash.filters.*; var tds:DropShadowFilter = new DropShadowFilter(3,90,0x000000,40,3,3,1,3,false,false,false);
I used FalshDevelop to compile PanoSalado opensource ".as" files to produce corresponding ".swf" files.it works great and my movie shows.However, when I run it via a webapp under Tomcat, it just sits there. The url is:Note that I'm running the same file (.swf) from the same place in the filesystem.And I even tried to embed the swf in an html page (actually a jsp page) to see if it would work.. but no dice... same issue.FWIW the html that is used to invoke the swf is :
<div id="flashbanner">this will be replaced by the SWF.</div> <script type="text/javascript"> alert('0'); var so = new SWFObject('maps/ModuleLoader.swf','mpl','555','416','9', '#336699'); alert('1');
I'm trying to create a video background for a game using the FLVPlayback component. I need to smoothly trasisition between multiple videos so I make a FLVPlayer for each one so that I can just tween the alpha when I need to show it. When I start the game I load everything and store the Playback components in a Vector, I think add them to the stage like this
Once the game is loaded though the first video dosnt render at all, so I have a see thoough background. But once I transition to a video that is on top of it, the top video renders.
I am trying to find a way to render a Flash object, more specifically a Open Flash Chart, in the server, and save a screenshot of it to a temp file to embed it in on a PDF report.
I've found some solutions that use Javascript to generate a temp file in the browser, and then send it to the server (like here). However I need to generate reports automatically and send them as e-mail attachments, so I cannot render it using a browser.
I'm playing with Air and trying to get the PaperVision3D engine to display some 3D models.
But its really slow since Air seemingly does not support GPU acceleration. Any way to enable GPU rendering in air apps? browser apps can use "wmode=gpu" in the HTML settings...
The idea is to increment the height of the TextField (with font embedded) and see the difference when it becomes too big. When container.height is over 279 you can notice two things:
1. container starts to increase its width property.
2. The "pixelated" glitch is gone now. (the original ugly pixelation comes from rendering multiple TextFields on top of each other - you can check the for loop). It looks like the issue of one font covering the other is solved differently now.
My question is: what changes when the font becomes too big? is there any property of the TextField (besides the size of course) that I can check to catch the moment? (gridFitType, antiAliasType, thickness, sharpness do not change)[code]...
I have a flash file that loads dynamic text from a text file. When you press the space bar, it animates the text upward like movie credits. It works fine until I add more than 50 lines or so, at which point it delays showing the text until it's well into its scrolling.the kink here is that it only displays this error when it plays in fullscreen mode (which it is set to do by default, and what I need). if I escape out to window mode, it plays the text animation just fine.
rendering performance when scrolling some content. I have a large sprite with a lot of content that I need to scroll and the problem that I am encountering is that when scrolling this big sprite, the rendering of the Flash Player seems to slow down and the movement is choppy. I wrote a custom scrollbar class that simply updates the target sprite y or x properties on an enter frame event. The large sprite that I am scrolling mainly contains other sprites that have drawn shapes, loaded bitmaps and text fields.
Considering that I am simply moving the sprite, there are no other animations happening, nor other intensive processes at the same time, I do not think that it should be that resource intensive as to slow down the Flash Player that much. What can I do to improve the performance when scrolling the sprite? (Just to give a rough approximation, the sprite that I am scrolling contains around 20-30 sprites with drawn shapes, 2-5 loaded bitmaps, 5-10 text fields.)
I have a webpage containing 2 DIV containers hidden using CSS. The site has a Flash Movie embedded. I want to render the content of these hidden DIV containers from within the Flash movie.I'm using CS4?
HTML <div id="sectionone">content</div> <div id="sectiontwo">content</div>
CSS hide sectionone div and sectiontwo div
FLASH Display sectionone within flash movie when requested
I would like to ask the experts for help. In a flash movie I want three lines of text where I want line1 to appear with a preset motion, then line2 directly below line1 to appear with a preset motion, then line3 directly below line2 to appear with preset motion. I want to have the smallest possible fla file.
how I can render just part of a symbol without hiding it behind another symbol. I wish to make a marque of symbols... I'm a c++ game programmer so I am familure with ways of specfing with part of a texture to render but I havn't found anything with Flash that looks like I can do the same kind of thing. I'm using CS5 with AS3.0
I recently upgraded my IE from 8 to 9 and immediatly saw problems with text. No problems in loading, or giving errors, etc. Just quality of some text. With IE9, in many of my flash (cs4) applications, text that had been quite sharp is now blurry and hard to read. Some text is fine, other poor, and I cannot seem to see what is common to the places where text is poor. If I shift to IE8 compatability, all is fine there. Back to IE9, the problem.
If in IE9 I check in Internet Options/advanced to "use software rendering not GPU rendering", my IE9 flash stuff looks fine. That solves in my end, but obviously no help for publishing on the web. (This was a recomendation somewhere.) have apps that looked fine, only to have parts of them almost unreadable when viewed in IE9. All fine in Opera, firefox, safari, IE 8/7. Has always been somewhat a problem in chrome, but have seen where that is a documented problem.
I'm using a lineseries chart, but it gets fairly slow to re-render when I add a new point when the total # of points is ~1200 points. Granted, this is running on a fairly slow PC (~600 MHz). Reading the Flex documentation on how to speed up rendering (turning off dropshadows, turning off filterData, etc...) doesnt seem to help. I bound my chart to an ArrayCollection (rather than the array I used before which I manually updated) and it doesnt seem to be any faster. Adobe's documentation seems to have me believe that the Chart looks only at what changed since the last time it was updated, but i'm only adding one point!
If their info is correct, why does it take significantly longer (5 seconds) to update one point when I have ~1200 points then when I only have 2 points (instantaneous)? FYI - When I add a new point to my ArrayCollection, I have to do a "AC.refresh()" to get the DataBinding to pick up the new data.