actionscript

What's browser support like for bare SWF files?

Does anybody use bare .SWF files as webpages? I know it's possible; it seems to work fine for me. Why would I embed a SWF inside an HTML page if it's just going to be full screen (I mean the size of the browser's normal viewable page area, not COMPLETELY fullscreen)? Is there a lack of browser support? Or is this functionality deter...

Using a composite MXML component from ActionScript

I'm trying componentize one of the pieces of UI in an AIR application that I'm developing in Flex. In this example, I want to display file information on a single line (which has an icon, some text/link and the size). My code looks like this (component is called FileDisplay): <?xml version="1.0" encoding="utf-8"?> <mx:Canvas xmlns:mx=...

TileList item selection

In my TileList, I want to select the TileList items on rollover, as opposed to the click event. I already have the TileList setup to allowMultipleSelection = "true". ...

Links in Datagrid (flex)

Hi community, I wanted to ask how I can put links into a datagrid. My dataProvider is the folling xml <xml> <item> <name>A name</name> <url>A url</name> </item> <item> <name>Another name</name> <url>Another url</name> </item> </xml> sure with some more items in it. Now I want to have a datagrid that displays the name as a...

Flash Actionscript 3.0 Videoplayer help

Hello, it's been a while since I last used Flash so thought it best to learn Actionscript 3. However, I've been working through a [Flash videoplayer tutorial][1] and I'm really struggling to cusomise the layout for my own needs. I moved the progress bar down by 13.9px and to the right by 55.8px. I also shortened the progress bar to 176...

ScrollPane in Papervision3D

I am having major issues with a ScrollPane component in Papervision3D. This issue has been brought up at a couple of different forums, but not solved: http://osflash.org/pipermail/papervision3d%5Fosflash.org/2009-March/029503.html http://www.nabble.com/ScrollPane-doesn%27t-size-or-display-properly-td22302394.html I have tried dynamic...

Same domain but security error

Hi community, I am hosting a java service and a flex application on the same server. The flex application accesses the java service. As the flex application loads I get a security error, how can this happen? I thought I do not need a crossdomain.xml when hosting on the same server. My flex app gets the data via a http service that send...

Share code between JavaScript and an ActionScript library without a bridge

I'm involved in writing a Flex/ActionScript library and in the future I will be involved in writing the same library in JavaScript. Rather than writing a library in each language and having to maintain them separately I was wondering if it was possible to: 1) Write the code in one language and share the code into the other e.g. Write th...

Adobe Flex - How to embed component inside an image's "window"?

I have a an image, lets call it "StageSkin.png". This is an image which is really just a border, and the middle of the image is "windowed", meaning that it is meant to show other information inside of it. The information inside of it is in the form of a component (based on a canvas component, lets call it 'Gauge'). I want to create a ...

In Flex3, what type is an object property?

I have many Flex objects like this one: public class MyData { public var time: Date; public var label: String; } I am populating this object from a DB record retrieved via AMF that looks something like this: { label: "Label", incident: "2009-08-15 11:12:14.12233" } I want to write a generic value mapper for these ob...

How to dynamically change the size of the Canvas?

If the size of canvas set in the MXML markup, some part of the components that go beyond the boundaries of canvas not displayed. If the canvas size to change dynamically(canvas.width, canvas.height), canvas boundaries are virtually absent. How to dynamically change the size of the Canvas? ...

Flex - How to access component inside another component in MXML?

I have two components. One is called "InsideComp" and one is called "OutsideComp". OutsideComp has InsideComp as one piece of its component, and in my main MXML file, I have embedded an instance of OutsideComp. How do I access a public variable of InsideComp within my main MXML file? In Actionscript, I could just do something like: Ou...

How to anti-alias a collada model in papervision3D?

How to anti-alias a collada model in papervision3D? I've tried searching everywhere but didn't find any ways to anti-alias models. I've also tried blurring it a little as an anti-alias method but that only f-s it up and makes it look worse. How do I do that properly? ...

Image scaling and smoothing

I'm importing some images dynamically into a SWF from an external site using AS2. It works perfectly when I load my images from my computer, but when I try to load them from the external server the smoothing doesn't work. My code: var imageLoad:MovieClipLoader = new MovieClipLoader(); imageLoad.addListener({ onLoadInit:function ...

Flex: Getting "a bunch" of data from Flex into an HTML page?

I've got a bunch (say, 1k) of data in Flex, and I want to get that data to an HTML page, where some JavaScript will slice-and-dice the data and generate a report. What's the simplest way to get it there? I've considered passing it as part of the url, for example: navigateToUrl("report.html?data=" + serialized_report_data) But, apart...

Creating Dynamically Flex Custom ItemRender (Constructor)

Hi, am creating some Advanced Datagrid with actionscript. I have created an actionscript class where I extend the VBox object: package core { import mx.containers.VBox; import mx.controls.TextInput; public class customItemRender extends VBox { public function customItemRender(_TextInput:TextInput, _TextInput2:TextInput) { ...

flex 3 play effect removedFromStage

Hi, I'm removing a component from the WindowedApplication, using removeChildAt(), and want to play an effect (defined within the component, say mx:Resize) which reduces the height of the component (an hbox) to 0 before it is removed. I was using the removedFromStage event within the component, but it just disappears (without playing th...

Binding a Flex component to a class function

I have several components where I want to enable buttons based on passing a username to a function. I want to dynamically bind the "enabled" property on a button so that if the "somethingChanged" event fires, a button may become enabled or disabled. But, I'm not sure where to fire the "somethingChanged" event. It's possible that I may n...

AS3 code feedback

I have just started coding in AS3 and it would be really great to get some feedback from the experts; on my coding style, things I'm doing wrong, thing I can improve on, best practises, and so on... Also if you have some extra tips or tricks, that would be great. Here's my first bit of AS3 code, took me 5 hours, puh: package { import...

How to generate function call graphs for JavaScript?

Are there softwares that can generate graphs that show which functions call which functions? I need to analyze JavaScript source code, a language which Doxygen/Graphviz does not support, though it does support C++ and others. If there are no tools that support JavaScript out-of-the-box, is there a way to convert JS to C++ so I can use ...