ActionScript 3.0 :: BitArray - "writeBoolean" Take Up The Full 8 Bits Instead Of A Single Bit?

May 19, 2010

I was messing with the ByteArray, and it seems that functions like "writeBoolean" take up the full 8 bits instead of a single bit. Why so? I'm looking to "super optimize" some space (for fun, but I'm sure it has practical uses) so it does make a difference.

View 2 Replies


Similar Posts:


Flex :: Encoding Key Strokes As Bits In Uint

May 9, 2011

I am trying to encode certain values that I receive from keyboard event. Basically I want to check if a certain key combination has been pressed or not, so for that I am converting the key codes into sequence/pattern and store it in an object and a value(function) against each code sequence. Now I have to use four bytes and in first byte(MSB) I've to store shift, alt, ctrl respectively and in the last(LSB) I have to store the keycode of the key pressed.

Here is the code:
private function m_encodeValue(key:String, Ctrl:Boolean = true, Alt:Boolean = true, Shift:Boolean = false):uint {
var encodedValue:uint;
encodedValue = uint(Shift) << 2 | uint(Alt) << 1 | uint(Ctrl);
encodedValue = encodedValue | (uint(key.toUpperCase().charCodeAt(0)) << 24);
return encodedValue;
}

View 1 Replies

PHP :: MySQLI Values Returning Bits And Ints As String

Feb 24, 2012

I have a project made in flex, using php data services to access a sql server database, and I need to convert it to mysql, I have changed all my php services from sqlsrv to mysqli. Something like this:

$this->connection = mysqli_connect(SERVER,USERNAME,PASSWORD,DATABASE); // Start Connection
$ssqlstring = "select * from Users";
$runssql = mysqli_query($this->connection, $ssqlstring);
while($user = mysqli_fetch_array($runssql)) {
$users[$user["ID"]] = $user;
} return $users;

It worked fine on sqlsrv but with mysqli it returns to flex the INT, BIT or DATE values as string the main Datatypes on mysql are INT,VARCHAR,BIT(1),DATETIME,DATE (same as sqlsrv)
and on the flex the return types are mainly as object[]

View 1 Replies

ActionScript 3.0 :: Can Flash Handle 16 Bits Per Color Channel

May 31, 2011

I was wondering if Flash was able to handle PNG files with 16 bits per channel. I seem to remember (quite clearly actually) from some official blog post on Pixel Bender, that since Flash only handles 8 bits per channel and Pixel Bender works at 24, a conversion occurs when data is passed from Flash to PB and vice versa. (this thread is totally unrelated with Pixel Bender though) So if I'm correct, Flash uses 8 bits per channel even if you try to load a 16 bits per channel PNG. Do you guys have any experience whether this is a fact or not?econdly, assuming this is a fact...could I still load a 16 bits per channel into Flash, not to display it but to convert the data to a 8 bits per channel PNG that I would save as a file. For instance the 16 BpC PNG could be loaded in a ByteArray and I'd work from here, however I have to know whether the PNG would still be 16 BpC once it reach the ByteArray.

View 2 Replies

ActionScript 2.0 :: Making A Website With A Couple Of LoadMovie Bits Of Script In

Apr 18, 2008

I'm making a website with a couple of loadMovie bits of script in. I'm loading these into empty movie clips in the .fla file, to load a photo gallery and a portfolio.

The problem I'm having is they're not keeping the individual paramaters (if thats the right term) of each .swf file (the movie it's loading)

For example, my gallery.swf requires the scroller to be at x. 29 for it to work. Dunno why, but i worked around it. However when it's loaded into the website.fla file, it's using the x and y co-ordinates of the website, as opposed to the original movie. So, if I place the empty movie clip where i want the movie to load, the scroller doesnt work. However if I place it a 0,0 it does.

With my portfolio.swf the files are not located in the root folder. But my website .fla is. It's not possible to have the files in the root folder because of the way it works. When loading the portfolio.swf on it's own the files work fine and are linked okay. But when the .swf is inside the empty movie clip on the .fla file, it's not going to the correct source, it's seaching for the files from my root folder as opposed to the portfolio folder where the .xml and sub folders are located. Changing the path it looks for doesnt help either. I tried to make it search for "portfolio/gallery.xml" (as opposed to "gallery.xml") and that made the rest of the code try to look inside a portfolio folder (so instead of "gallery/design/image1.jpg" it was looking inside "portfolio/gallery/design etc." whilst already being inside the folder).

What I want to know is, is there a piece of actionscript that will tell the loadMovie function to use the original paramters of the movie it's loading, and not intigrate them with the .fla you're working on.

View 1 Replies

Professional :: Separated Symbol From White Background But Now It Has Bits Left - How To Clean Up

Feb 21, 2012

I have a photo turned symbol on a white background. I'm not sure how I did it but I separated the symbol from the white background. but now I have all these bits around the edges left over that are white and I don't know how to clean it up. I tried the eraser, I tried painting over it, I tried selecting it to cut or delete. not one of these things worked.

View 3 Replies

ActionScript 3.0 :: Slideshow - 3 Bits Of Information To Be Display In The Flash And A Start Screen?

Nov 17, 2009

Ok, So I've decided to show some information on my site, but instead of using a static table, I've decided i wanted to use flash.Basically, want I want to do is have 3 bits of information to be displayed in the flash and a start screen.When the flash loads, it will show the starter Screen. From there the user will select either one of the three buttons,which will direct them to one of the 3 bits of information. I was thinking each bit of information on a different frame.How would I link the Buttons to the information?

View 4 Replies

Ensure The Swf Or Projector File Always Stays In Full Screen - Full Page Mode?

May 11, 2010

I am creating a flash-based Kiosk. When launched, it runs full page/full screen. However, if a user clicks a button that opens an external document, the swf or Flash Projector exe leaves full page mode and appears in the Flash Player. Is there any way to ensure the swf or projector file always stays in full screen - full page mode?

View 4 Replies

ActionScript 3.0 :: Get The Full Browser Width Before The User Goes For Full Screen

Apr 1, 2010

I am working in Flash CS3 and Actionscript 3.0 My application resizes according to browser width and height. If the user first resizes the browser and then loads the flash application, I could not get the full browser width untill the user goes for full screen. Is there any way around, to get the full browser width before the user goes for full screen.

View 1 Replies

ActionScript 3.0 :: Full Bleed (full Size) Swf In The Browser Window?

Jan 22, 2009

I'm working on a small flash site and I want the swf file to have "bleed" or to go to the very end of the window so that the swf isn't just ploped over top of a background. [URL]

View 1 Replies

ActionScript 3.0 :: YouTube Chromeless Player Ceases To Enlarge Up To Full Screen Width In Full Screen Mode?

Jul 9, 2011

I tested my skin for YouTube Chromeless player, and seems it worked properly.All graphic elements, including TLFTextFields, are stored in external SWF, all the AS3 code - in loading SWF.I use ProLoader class to load SWF.However, when I tried to attach Player skin code to my Home Page code, I immediately bumped into two issues:

1. TLFTextFields ceased to display proper font;

2. YouTube Chromeless player ceased to enlarge up to Full Screen width in Full Screen mode, whereas all publishing settings were kept the same...

Although I managed to cope with TLFTextField bug by replacing instances with vars in loaded SWF, I have no the slightest idea what to do with those paddings in Full Screen mode... Neither removing all children on stage before loading YouTube Player skin, nor compulsory resetting player's size can't make it work...  

View 10 Replies

ActionScript 3.0 :: Display A FLVPlayback Full Screen The Same As When Click On The Full Screen Component Button?

Sep 17, 2008

I wnat to display a FLVPlayback full screen the same as when you click on the Full Screen component button.

function goFullScreen():void {
vidPlayer.enterFullScreenDisplayState();
}
var vidPlayer:FLVPlayback;

[code]....

View 1 Replies

Flash - Close A Video From Full Screen Without Closing The Projector Full Screen?

Dec 10, 2010

I am creating a full screen projector with flash CS4. In the projector I have more videos, starting from an swf player-

The problem I encounter is this:

The projector starts correctly FULLSCREEN (using AS). The video plays 900x506 correctly. If I click on the player, to get the video full screen, it works. But when I press ESC, not only the video, but also the PROJECTOR looses full screen.

This is a bit annoying. Is there a way to apply the "back to normal size" only to the video? I do not want to prevent the app to be exited from full screen, it's not a problem if the user wants to exit the projector full screen. But not when the user exits the video from fullscreen mode.

How to target only the video?

View 1 Replies

Javascript :: Flex - Get Full Screen, Withsame Vertical And Horizontal Bar, As It Was Just Before Full Screen?

Aug 9, 2011

// for Full Screen stage.displayState = StageDisplayState.FULL_SCREEN;// for the normal screen stage.displayState = StageDisplayState.NORMAL;But this code does not fulfill my requirement. I need Vertical Scroll Bar, even I go to the FullScreen, but I don't find any Scroll with this code.Even I tried "window.open" of JavaScript with ExternalInterface, but I couldnot succeed.

View 2 Replies

ActionScript 3.0 :: Why Does Full Screen StageDisplayState, Makes Videos Full Screen?

Sep 29, 2011

i am creating an interactive application that will run independantly on a computer.I have implimented the full screen stage display state to a btn, and it works great!

-------code-----
import flash.display.StageDisplayState;
function goFullScreen():void
{

[code].....

however as soon as i add a video [i will be adding several] the video takes on the full screen property, and that is not the desired effect.I have used several diff ways to import the video but as soon as i call the full screen, it goes to an all black screen.

View 1 Replies

Actionscript 3 - Flash Stage Full Screen Mode, Movieclip Full Screen Mode?

Jul 28, 2011

i am wondering from this code, it makes the stage full screen, does it also makes the content of my movieclips scaled to full screen? i have tried this code and it does not seem to do that, how can i make my content to scale to fill a stage's full screen? i have a Movieclip containing a background with a class to make special effects on the background, i am having trouble making the background be "fullscreened" nicely with the stage.

View 1 Replies

ActionScript 2.0 :: More Than 1 Instance Name To A Single MC?

Aug 23, 2011

I'm using CS3 and want to know if it's possible to give more than 1 instance name to a single MC using AS2? The reason I ask is I have a bunch of templates that I want to load (one at a time) into a master swf that will be used for scaling & positioning of movie clips (which data will be saved to an XML file) in all the loaded swf files. I would like to have some code in the loaded clips that the master swf could use for controlling it's movie clips. This code would reassign the clips a second name so the master swf recognizes the clips in the loaded swfs and is able to manipulate them.

The problem now is I have a lot of template swf files with all different named movie clips and changing all of there instance names one by one will take a long time.I imagine that unless the clips were allowed 2 different names and were just assigned a new one, that it would stop any preexisting code from working correctly.

View 5 Replies

ActionScript 3.0 :: Put Together All The SWF Module Onto A Single SWF?

Aug 16, 2009

I had been working on an application.I have developed swf's (around 5) of all the modules of the application. Now I want to make the main SWF, that would display all the other SWF modules at a pre-decided position on the screen. put together all the SWF module onto a single SWF?

View 8 Replies

ActionScript 2.0 :: Calling A Single ID?

Feb 18, 2005

i have an xml file containing the news content for a movie. and i have the as below for loading the news and formatting it to my needs. basically what i want is the movie to only load one entry at a time, and then have a next button to go to the next.

Code:
the_xml = new XML();
the_xml.ignoreWhite = true;
parseAll = function () {
if (fileexists == false) {

[code]...

View 1 Replies

ActionScript 2.0 :: [CS3] Stopping One Single Sound?

Jan 30, 2009

I want to use a button to stop just 1 single sound. (Ill have a background track playing, and a voice over on top, and want a button to stop just the voice.) I was able to get an mc with 2 frames inside with 2 buttons and have this code:

on (release) {
tellTarget ("../sound") {
stopAllSounds();
}
}
on (release) {
nextFrame();
}

That will work but it stops all sounds. Can i stop just the "../sound" portion??

View 2 Replies

CS3 :: Multiple Buttons Run Single Clip?

May 16, 2009

What I have done:

1/ A very simple Flash movie

2/ 5 very basic rollover buttons

What I want to happen:Everytime I'd hover the mouse on each button, I would like the background animation to run. And have the animation stop on mouseout for each button.I was able to make it on one button via this tutorial: [URL]But this doesn't seem to work with multiple buttons involved.

View 1 Replies

ActionScript 3.0 :: Preloading A Single MovieClip?

Aug 1, 2009

i have 49 different levels, each in a different movieclip.is it possible to just pre-load one of those movieclips at a time?

View 6 Replies

Slow Down Single Cell Animations?

Oct 13, 2009

I'm new to flash and I'm working on an animation project for my class.I decided to do half of it as single cell animation and half of it using tweens and whatnot.The parts that are single celled are moving WAY to fast and are throwing off the flow with my tweens. It's a requirement of the project to have atleast 20 fps, and I don't have enough time to dedicate to drawing tons of more cells.For example, I have one animation made up of 40 frames and it needs to be stretched to about 100 frames.I've tried copying all of the cells into a movie clip and attaching a stop(); method at the final frame in the movie clip, then importing that into my movie and stretching it to the length i need, but it just runs at the normal animation rate and then stops until the timeline gets to where it's time for the next event or scene to take place. It sort of looks like i need to find a way to control the fps of my movie clip independently of the entire movie, but how would i go about that?how i could go about extending this?

View 1 Replies

Apply Ease In And Out Both To A Single Tween?

Apr 22, 2010

I was wondering if theres a way to apply ease in and ease out both to a single tween..as i want the tween to start slowly than gain normal speed and then again stop smoothly.

View 2 Replies

ActionScript 2.0 :: F8 Single File Mp3 Player?

May 20, 2010

I'm trying to get my hands on an open source mp3 player with a volume control and progression bar but all the ones I've found are for use on webpages.. What I want, however, is to insert such an mp3 player into a projector file that I've created.I've got 10 keyframes, each with a different slide. I want an mp3 player on each slide, but it will play a different track.Does anyone know of a customizable mp3 player like that?

View 2 Replies

Using Multiple Players On A Single Page?

Nov 22, 2010

I'd like to use the same music player displayed multiple times on the same page, one for each song. But when songs are played, I want the existing play to stop. For example:

song1
song2
song3

I click to play song1, while it's playing, I decide to play song3 instead. Based on the default setup, song3 will start playing while song1 continues to play. I'd like song1 to stop when song3 starts.

View 2 Replies

ActionScript 3.0 :: Loading Single Image Via XML

Apr 30, 2009

I am trying to load a single image on to the stage via an xml file.Here is my xml file<?xml version="1.0" encoding="utf-8"?><pictures><pic>image1. jpg</pic></pictures>I'm trying to figure out the actionscript 3 code but I don't know how to code it.

View 6 Replies

What's The Best Method - Daisychain SWF's Or Create Single

May 26, 2009

I'm not looking for code at this point, I am simply looking for feedback on the best way to do the following... I have created a series of Flash animations that I would like to string together to play one after another either by a simple click (at end of one movie to play another) or by automatically moving to next movie once one another is complete. Here's my question.... Is it better to...

[Code]...

View 3 Replies

Embed A Single Font In .swf Webpage?

Jul 19, 2009

I've been trying to simply embed a single font in my .swf webpage-- not with actionscript, just as a library symbol, using cs4-- the directions I've seen are pretty straightforward, but for some reason it's not displaying correctly on computers other than my own.  I wonder if I've got the URL correct:  should it just be "myFile.swf"? 

View 10 Replies

ActionScript 1/2 :: Controlling Only A Single Sound?

Sep 20, 2009

I used a template from a flash template website but I just realized that the background control was written to control all sounds, now all the video sound and seperate sounds objects stop when I click on this one button. This is the code below that I found on the button. There are others also.
 
[Code].....

View 11 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved