actionscript

Loading variables from html into swf (the right way)

Hello I have this project where I need to load 3 external variables into my swf-file on a webpage. The wierd thing is that I got this to work before, but now it suddenly wouldn't :\ I use swfObject to setup the variables like this: <script type="text/javascript"> var flashvars = {page:"page1", box:"head2"}; var params = {}; ...

Creating a Store Locator Flash Movie using Google Maps Flash API

Hello All, I am trying to create a flash banner add that utilizes the google maps flash api to display a store locator tool similar to this: http://portal.oggifinogi.com/Oggifinogi.DemoView/Latimes.aspx?pl=9b78efa4-ac0c-4a51-9516-8d0ebb5a1aa9&amp;camp=bcb25763-d64d-4ba7-b673-8195ba50e9f1 I have been given an extremely tight deadline a...

How can I determined if I'm within an AIR app through Actionscript?

I'm seeking a method that tells me whether my code is running inside an AIR app or not. Something a lot less tacky than polling an AIR-only method. So far, searching the docs has been unfruitful. Anyone know of such a method? ...

Difference in Flash CS3 AND Flash CS5 Linkage option??

Well, I have Flash file which has one movie-clip (Box1) and it is exported for Action-Script in Linkage option but export for Frame 1 option is unchecked. Now my document Class is here package { import flash.display.MovieClip; public class GetTimeLineObjects extends MovieClip { public function GetTimeLineObjects() { var ...

Flex builder 3 or Flash builder 4?

Mainly my project was to create some UI interaction. Degrafa supported Flex 3 and FXG supported Flex 4. Which would you choose in term of performance in UI and AIR 2.0? ...

Problem with Flash and non-latin text input

As most of you may know there is a problem when not using wmode='window' in google chrome. The problem that I have is that I'm integrating a system with facebook and if you do that you need to use transparent. This is because if you don't do that it's impossible to see the facebook messages like the share or some notifications. I leave...

flex: what is the best way to create multi window web application?

I am using flex4, I am seeking the answer to create multi window web application. My application is some sort of complex, currently I only know using PopupManager to create a new window. Should I create each MXML for each window that I want to instantiate? And then load the mxml and put it into the stage? Is there any tutorial describing...

MovieClip is not visible at stage, however it exits.

My Flash file contains a movie-clip(Box1) that is exported for Action-script but it is not exported to Frame 1 in Linkage Dialog Box. Box1 has been put on frame-40 and the object is accessible in document Class but is not added to stage. However when it reaches to Frame 40, the object at Frame 40 get visible. My question is where is boxO...

Flex Video Player fullscreenButton override

I'm using mxml to create a spark video player with controls. When I click on the "fullscreen" button in Chrome, it goes full screen on the browser but I am unable to go back to normal size. In Internet Explorer, the whole screen is filled up but the zoom on the video is too big and thus my controls are no longer visible. Is there any wa...

Two problems with scrollbar in List component

I want to hide/remove the up and down arrows from the scrollbar - how can i do that? the scrollbar is to fat - the skin i am using is not that fat. How can i make the scrollbar thiner. thanks ...

flex 4 button down state

I have skin a button with up, down, over, and disable states. I hope to know if there a code enable a button to keep press (down state) when the user press and hold a specific key link to that button. Something like down_button state. ...

keep 'down' state for spark skin button

I have spark skin a button with up, down, over, and disable states in a button component to create a modular. Is there a way when the user press and hold a key, the button will remain in 'down' state? The button component include skinclass: <?xml version="1.0" encoding="utf-8"?> <s:Button xmlns:fx="http://ns.adobe.com/mxml/2009" x...

ActionScript 3 SharedObjects don't persist across different swfs?

I am serving two different swfs that read and write to the same SharedObject variable. The SharedObject variable is a number, and each swf checks that number to make sure it isn't using the same number twice. It then stores the last number it selects. In this way both swfs should never use the same number twice, no matter which order ...

How to use hitTestPoint when a movie is scaled

Google says that: displayObject.hitTest(stage.mouseX, stage.mouseY, true) is the way to test for the mouse being over a DisplayObject. This works if my movie is displayed at 100% scale. But if maximise my browser window so the Flash movie changes scale, it all goes to pieces. Does anyone have a way to fix this, please? Many thanks....

can i add a container to a canvas in flex using action script?

hello i am trying to add a container having some UI components as child in it to a canvas and also want to set the border size only using the action script without MXML, 1) is it possible to add the container that is a lower class in hierarchy from parent to child upward, can canvas addchild() accepts the container as child ? 2) how ...

How does "paletteMap" work?

I need to port a bit of ActionScript code into Java. btw, never touched a as file in my life. So far it's been easy, because AS syntax is fairly simple. There's a piece of code that calls bmpData.paletteMap( bmpData , rect, point, rArray, gArray, bArray); //all arrays of size 256 The entire file is kind of dependent on this function ...

Fxcomponent: Flex video player issue

I'm using the fxcomponent: Flv video player to play my flv/mob files. You may get it from here. Now, player works perfectly as shown in their site, but when I try to use the FXVideo control in popup window (popup manager help is here), the component gives mirror image!, strange, I didn't change any code in that. So can any one help me...

What is the diffrence in MouseEvent.CLICK & MouseEvent.MOUSE_DOWN on ActionScript 3.0

Hi, I'd like to know what is the difference between MouseEvent.CLICK & MouseEvent.MOUSE_DOWN. Because when i use MouseEvent.MOUSE_DOWN for a button to set full-screen view its doesn't work, instead of this MouseEvent.CLICK works. So what was the reason. ...

Dynamic Text - Auto Resize of Font

I have dynamic text field that must be a fixed width and height. The actual text that will populate the dynamic text field is variable. What I would like to do is to reduce the font size if the text does not completely display within the text field's dimensions. Any ideas on how I can accurately perform this? Also, I am using AS...

generating and displaying dynamic tables in adobe flex / flash / AIR

All, I have a adobe AIR application. In the app, I need to be able to create dynamic tables where I can display images and text. Dynamic in the sense that data in the table can be added, removed, modified, and table that is displayed changes to reflect the modifications. For example, the table contains 3 rows and columns, where there is...