I have started working with colors and have got a need for playing with hexadecimals. I tried making a variable which adds two hexadecimals, and it works but when I trace the answer, it comes out in decimals. How can I make it remain in hexadecimal or convert the decimal to hexadecimal?
I am trying to build a small script where I can convert celsius to farenheit and vice versa, I am able to convert celsius to farenheit in a file but not getting how to do the farenheit to celsius convertation in same file. I am giving the script i am using below
enter_button_mc.onRelease = function() { var f:Number; var c:Number; f=1.8*c + 32.0;
I have some avi files that I need to turn into swf. When I convert them to flv files using adobe media converter on the PC then put them into flash and export as swf files, they look good on the pc but will not show on the mac (just white box). Conversley when I make swf files on the Mac (using the FLV files from the PC) they look OK on the mac but do not work on the PC?
I have a functionality working with a file hardcoded through URL Loader, but I want to be able to select the file from anywhere on my harddrive in an Air application.
public function loadFile(): Array { csv = new URLLoader(); csv.addEventListener(Event.COMPLETE, completeHandler);
But when I go in front of the shelf I want it to swap layers and vice versa on the other side so it looks 3D my problem is that the sensors on the other side get touched when going in front! Then it swaps layers for the other side...
Is there a library simplifying the process of dragging and dropping between the Flash/Flex environment and the surrounding browser?
I've done some research on the process, and so far the closest thing that I have found is from HTML to Flash in a Floorplanning application. I have yet to find a demo going in the other direction however.
test.fla's document class is Test.as test.fla's library has two MovieClips ThingMovieClip and Thing2MovieClip
I tried accessing the Thing.as public var thingState's property;
directly,
using something called Casting (??),
assigning an instance name,
but something that seemed so simple doesn't work,I commented the errors I got next to each way I tried,conversely how would I access the MovieClip Thing2MovieClip from Thing.as (which is a child of Test.as because that's where it's instantiated), it just doesn't recognise an object of its parent exists, here are the 2 classes:
I think i'm missing some basic but fundemental understanding of ActionScript 3 and I have no other knowledge of other scripting /programming languages either.when I follow tutorials exactly they seem simple enough, but then start applying what I think is logical usage then it throws up errors..
Using a standard Flex DataGrid, is there an easy way to determine the grid row index given the data object or index of the data object in the data provider? On the flip side, is there a way to get the index of an object in the data provider based on the DataGrid row index?
I am trying to use the _visible property of loaded swf files to trigger the opening animations of these files to prevent the animations from playing before the preceding swf animation finishes. The problem is that the property of the loaded swf files read true when false and vice versa. If you click the link again, the property reads correctly (false when false etc). The onEnterFrame handler seems to be the issue, but I need it to read the property. The code is a bit lengthy, but I posted it for reference sake.
// the purpose is to unload the content and use the width property // or visible property to trigger the opening animation // of the next swf file onSelfEvent (load) {
Flash AS2, AS3, and so on have many limitations. For example it is almost impossible to do transitions from a straight path to a curved one and vice versa for example as required in a in a car race game. You may have go for a frame by frame animation which is very cumbersome.
This link will show you what I'm trying to do, but in AS3 and with additional features I've described below[url]...
Need to be able to modify the text in the dynamic box, which also manipulates the slider. For instance, I'd like to be able to drag the slider to, say, 12 and then type in 25 on the box and the slider moves to 25. Control Flash slider bar with input text and vice versa in it?
I wonder if it is possible to pass values from external .swf files to the main projector (.exe) file.? I would also like to know how a button of an external swf file can control the playhead of the main .exe file.
I have this map of tasks. and each map have these houses which when clicked will take you to a certain task(external swf). and when accomplished should have a button to take you back to the map(main swf), and also the button to send a value to the main swf that the task is accomplished.
I am trying to create an animation that will show the basics of steering a sailboat. The idea is that there will be a top view of the boat with the tiller and rudder very pronounced. I want the learner to be able to click and drag the tiller one direction or the other, while the tiller is dragging I want the rudder and the boat to rotate the proper direction. Example, I want the boat to go left I will push the tiller to starboard and the rudder will rotate clockwise and the boat will turn left. There doesn't need to be forward motion by the boat in my head, I think that as long as the boat rotates it would be fine.
i have a loader.swf contains important functions and variables that loads 10 external swf-s (site compontents) in a container MC, those external swf-s also have some important functions and variables.my problem is that i don't know how to access the variables and functions declared in the main swf ( loader.swf ) from the loaded swf-s.so the hierarchy looks like:
Code: Select all main swf ( loader.swf ) childAt(0) ( container MC )[code].........
1. ( for example ) : how can I access/refer the functions and variables declared in the "main swf" ( loader.swf ) from the "2. loaded swf" ?
2. how can i access/refer the functions and variables declared in the "2. loaded swf" from the "1. loaded swf" ?
I need to convert latitude longitude values into pixel positions as well as do the opposite. I've found many solutions to go from lat/lng->pixel, but can't find anything on the reverse.
A couple of notes:
The map is a fixed size, no zooming, no tiles. I don't need anything super accurate, its not important. Preferably mercator projection, but not required. I'm not actually display the result. (Any 2D projection) I can't rely on any web based API's, ie: no Google Maps
A solution in almost any programming language would be fine, as long as it doesn't rely on any platform specific APIs.
This is an example of going from lat/lng->pixel:
var y = Math.round(((-1 * lat) + 90) * (this.MAP_HEIGHT / 180)); var x = Math.round((lng + 180) * (this.MAP_WIDTH / 360));
I have a PDF file with images etc that I would like to convert to a SWF with buttons to replace the PDF thumnails, but I don't know how to do it. The only thing I found was SWFTools for Linux but I use Windows and want to do it in MX.
i'm very new to using videos in flash. i uploaded a video into flash in order to add texts to it to upload later to web. my problem is converting the fla file to mp3. i tried the video encoder but i'm stuck.
I've designed a vector animation in flash 8 using a 16:9 ratio to be projected on a video screen. What is the best way to convert this swf to a format that can be played on a normal dvd player so it can be projected on a screen and maintain the vector graphics and continuously loop without pauses?
I need to convert a .swf to a .flv in order to post the file on a web site that only allows .flv files. The coversion needs to be automatic (no GUI involved).Basically I have an swf that based on a text input by an user performs an animation. Now I need to aumatically upload the resulting animation to Youtube.I was thinking of going the following way:
1- Dinamically create AS3 source code that would just play the animation passing the text as parameter, avoiding having to wait for the text input, to avoid user interaction. 2- Create a service that would receive the resulting AS3 code and would compile it into an SWF using mxmlc. 3- Convert the resulting SWF to FLV with a command line tool (I have only found Moyea SWF to Video SDK, which costs $1500) . The problem is that this tool does not work on Windows 2003 Server.
I have a SWF document that I would like to convert into a FLA.I have tried different programs with the free trial but the Action Script stop working or it just allowed me to modify two files...The fact is that I just need to do it once and I can't really afford buying the program.
I know you have to convert a flv to a swf , I am looking at how to do this with mac. I work on mac. I have a flv file and I need to put this in a html , I know how to put a swf into a html, that is the reason I am looking for a solution as to how to convert a flv to swf.
I saw a wonderful flash animation yesterday, i really want to use some elements which contained in it, what tool can i use? Or how to convert the swf file to fla?