Bmp Image Turns Into A Red Square?

Feb 23, 2004

I've been using flash for a whopping 3 days now, and I've stumbled onto a problem that I can't seem to find a way around. I'm using flash 4, due to the fact that #1 it's all I've got, and #2 the new flash mx 6 won't run on the old ass computer I'm using. This is my problem: I import a .bmp image and edit it in flash to make portions of it animated. The image is a symbol (I think it has to be anyway to animate it...) Everything runs fine when I use the basic play/rewind buttons to test the animiation, but when I make it into an executable, or when I go to the menu and hit "Test Movie", the image shows up as a red square. The animation I added still runs, but the actual image I imported is a red square.

View 5 Replies


Similar Posts:


ActionScript 2.0 :: When Creating A Dynamic Square With The Api - Won't Drawing Api Square Object

Dec 2, 2010

when creating a dynamic square with the api. 400 by 400. I am not sure why it wont draw the object

[Code]...

View 2 Replies

ActionScript 2.0 :: Have An Enemy Square That Chases The Player Square?

Jan 15, 2010

I have this game, and some levels have a moving square as the player, you move the square with your arrow keys.... I want to have an enemy square that chases the player square.... They only chased mario when you didn't look at them? Kinda like that...... but in this regards:

I only want the enemy square to chase the player square when the player square moves.... soo say the player square moves 5 pixels per movement (know how to do all that), I want the enemy square to move when the player square moves..... towards the player square at like 7 pixels per movement..... so eventually you won't be able to avoid the enemy square....

View 4 Replies

ActionScript 3.0 :: Placing Bitmap Image Instead Of Vector Square?

Oct 15, 2010

I am attempting to adapt a face detection application for a project I am working on. It works great, and displays a sprite of a vector square where it detects a face. The problem I am having is that I would like to place a bitmap image (from a source file) instead of a vector square. Here is the snippet containing the drawing of the vector:

Actionscript Code:
/*** Creates a rectangle*/
private function _createRect() : Sprite {
var rectContainer : Sprite = new Sprite();
rectContainer.graphics.lineStyle( 20 , __rectColor , 1 );
rectContainer.graphics.beginFill(0x000000,0);
rectContainer.graphics.drawRect(0, 0, 100, 100);
return rectContainer;
}
I'm pretty sure that this is the only part that needs altering in order to swap the square with a bitmap though.

View 3 Replies

ActionScript 2.0 :: Resize A Square So That A Thumbnail Size Image Comes Through?

Jun 29, 2006

just wondering how to resize a square so that a thumbnail size image comes through

heres the link peeps: its awesome [URL]

View 1 Replies

ActionScript 3.0 :: Detect When The Cursor Turns To A Hand?

May 17, 2011

I would like a function to run when a user clicks anywhere on stage. But this function should not run when the click is on buttons & on url:s inside a dynamic html-formated textfield. How can I detect this? I do realise that the cursor turns to a hand when you hoover over a url inside a textfield & you can set the hand to appear on buttons as well (which i always set it to do). So is there a way in realtime to detect when the cursor is & is not a hand? I've tried the following:

Code:
btn_mc.buttonMode = true;
stage.addEventListener(MouseEvent.MOUSE_DOWN,down)
function down(E:MouseEvent)

[Code]....

View 2 Replies

ActionScript 1/2 :: Html Turns To Percent Signs?

May 28, 2009

I am trying to load html into a text box from a website. when i load to the text box, everything goes fine except that it is loaded as something that looks like this:
 
"%20Cheese%20Croissant= %3B%3Cimg%20src=%22http%3A%2F%2Fwww%2Ehousi ng%2Eumich%2Eedu%2Fdining%2Fmenus%2Fm%2Dfit%2Egif%22%20alt%3D%22%2A%22 %3E%3C%2Fdiv%3E%3Cdiv%20class%3D%22Desserts%22%3EOat%20Bran..."

I wouldnt mind if the html tags were there, because I can deal with those, but I don't know what to do with this. Here is my loader:

[Code]...

View 8 Replies

Within MovieClip - Pasteboard Turns To Color Of Stage

Jul 14, 2009

Flash CS4. When I enter a movie clip to edit the timeline the pasteboard turns to the color of the stage. The result: I can't see the edges of my stage. This is only within the MC. And only within one particular MC (I created another one and the pasteboard stayed 4% gray). When I take the content in the bad MC (via copy frames) and move it to the good one, the same thing happens: Pasteboard turns to the color of the stage. I've tried SFT-CTL-ALT double click. No luck. Strangely, this isn't happening in every FLA. I know it must have something to do with the content on that timeline, but what that is I have no idea.

View 3 Replies

Arrays :: All Color Values Turns Into CurrentColor

Feb 20, 2011

I'm trying to make an array with different color values. My problem is that when I do...
teamColor[i] = currentColor...
All color values in my array turn into the currentColor. (I would upload more code, but that would be a massive mess, considering that I have code everywhere with references from movie clips that are as far as 3 layers deep. However, this would be irrelevant anyways (probably), because I tested this with color values on my main timeline, without any references to or from anything deeply nested). I would like to add that I tried adding strings in there and that the strings remained their original, intended, value, while the color exhibited the same phenomenon.

I changed my code by creating separate variables for each color instead of putting the variables into an array (not what I really wanted to do, but it works). My code looks like this:
if (teamColor != 0) {
this["team"+teamColor+"Color"] = new ColorTransform(0,0,0,1,currentColor.redOffset,currentColor.greenOffset,currentColor.blueOffset,)
teamColor = 0
namebox.addboxes()//function in a movieclip
}

TeamColor is now an int that is changed based on which box a user clicks from a movie clip that has a dynamically generated name, based off of what the variable value in a loop was when it was created.
(E.G: 'tempboxname[ttns].name = i;')
teamColor is then equal to that name when the user clicks it. I have another movieclip with colors in it and the above function is called to check if any teamColor change has occurred, and if it has, act accordingly. (The idea of having teamColor equal to 0 is so that if the user clicks twice, nothing changes. I other conditionals for other colors, all within the same function). That is how I fixed me code. It's not what I wanted, because it's not an array (meaning a seemingly infinite number of teamColors, and thus, teams) but it'll do for me.

View 2 Replies

ActionScript 2.0 :: How To Make Knob That Turns Volume

Jan 11, 2009

i want to create an mp3 player with volume ,frequency, bass, treble and speed knobs any pointers to any scripts that might help me would be great, but at the moment i am just trying to work out how to make a knob that turns.I assume i would use drag over and some kind of rotation function.

View 0 Replies

ActionScript 3.0 :: Tweener - Mouseout Turns Off OnClick

Sep 1, 2009

Basically, I have a button that when moused over it makes rivers go to 50% opacity (they start at 10%), then when clicked they go to 100%.
What I want: Then the rivers stay at 100% until the user clicks the button again.
What is happening: Currently though the mouseout is fading the rivers back to 10%. I know that my code is telling it to do that and want to know how to make it stop.

Here is my code for this:
function shipMouseOver(event:MouseEvent):void {
Tweener.addTween(rivers_mc, {alpha: 1, time:2});
Tweener.addTween(this.dashboard_mc.ship_btn, {alpha: 1, time:2});
} function shipMouseOut(event:MouseEvent):void {
[Code] .....

View 1 Replies

ActionScript 2.0 :: Circle Collision Turns Into Attraction?

Nov 14, 2009

I have a whole heap of circles which are user created and they all bounce off one another. Generally it works fine but occasionally two balls join together and sort of .. orbit each other.

my collision code is this: (it's within two loops going through an array of movie clips, where mc1 is the current movie clip in the first loop and mc2 is the current movie clip within the second loop)

ActionScript Code:
dx = mc1._x-mc2._x
dy = mc1._y-mc2._y

[Code].....

View 1 Replies

ActionScript 3.0 :: Capturing Microphone Turns Down Volume

Dec 19, 2011

In our application, we are using a Microphone object, that is published to a server (via NetStream).The recording works well.But unfortunately, while the microphone is active and the NetConnection+NetStream remain, all other audio from inside the flash application (and I guess other active flash applications as well, at least it does it with grooveshark) has its volume turned down.This is completely against the flow of our flash application, as you have to hear certain sounds clearly while speaking into the microphone.How can this turning down of the volume be disabled?

View 3 Replies

ActionScript 2.0 :: Lightsaber Turns On When Push The Button

Sep 24, 2005

im trying to make a lightsaber that when you push the button, the lightsaber turns on, and then when you push it again, it turns off. There are three frames in this animation. It starts out with just the handle on frame one and by frame 3 the beam gets to its full size. Right now, the light saber will start out with the beam completely out and when you click the button, the beam will go down and then back up and stay there. This is the actionscript i have so far,

[Code]...

View 7 Replies

ActionScript 2.0 :: Flipbook Which Turns Page Automatically

Sep 12, 2003

I'm interested in coming up with a flipbook which turn to another page, with a "turn page" animation. Exacly like what they did for Fullerton, at this URL...I got a great reply from JCS (thanx again dude!), who passed me a fla where they came out with a flip book, but you'll have to manually drag the page frm one page to another. Technically this flip book is more superior, as the user can flip the book manually, and it looks very very cool, but the thing is, there doens't seem to be a way to flip all the way to the last page withouth going through all the pages in between, and that sucks, as imagine that the document has like 50 pages!. BTW, the file in JCS sent can be downloaded here.URL...So basically, I want to modify the script to enable the the page to turn automatically when clicked, instead of having to drag the page.

View 11 Replies

ActionScript 3.0 :: Extending VideoPlayer Turns Sizes Static?

Feb 12, 2009

I'm extending VideoPlayer and it's been working fine for weeks - all of a sudden it's gone berserk on me. I create a few instances and I'm passing different dimensions to each but new instances are using the size of the largest instance so far...as though the height/width had somehow turned static...?Here's the pertinent code:

PHP Code:
import fl.video.VideoPlayer;
import fl.video.NCManager;

[code].....

View 2 Replies

When Upload Site And View Swf It Turns Out Smaller On Webpage?

Dec 9, 2011

[URL]I have published my site but when i upload it to my server and go to view it gets smaller on the screen,i have tried to attach html but it wont upload.please help its driving me crazy and its my first time trying to do this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>~~main9_v4</title>

[code]....

View 1 Replies

Professional :: Intro Background Turns To Black Instead Of Staying?

Jul 19, 2010

I have a flash intro and when ever I preview it,the intro background turns to black instead of staying the way it should be.Can somebody please help me out here,I need this flash intro for a website.Please explain this to me in simple terms because im pretty NEW to adobe.
 
Note I've tried everything to make the flash background stay the way it was but nothing I do works.

View 6 Replies

Ios :: Flash CS5.5 For IPad Turns Landscape Stage Into Portrait SWF

Sep 16, 2011

This seems pretty weird even for Adobe standards. I've set up size of the movie to be 1024x768, which is the resolution of ipad screen in landscape. The stage looks ok but when I publish the swf it goes into portrait mode.

I even used this line of code but it doesn't help.

stage.setAspectRatio(StageAspectRatio.LANDSCAPE);

View 1 Replies

ActionScript 3.0 :: Converting Textfield To Bitmap - Turns Into White Box?

Sep 22, 2009

I'm starting with a textField containing some bold white text.

If I add it to the stage directly it looks like it should look.

If I convert it to a bitmap, like this:

var bmd:BitmapData = new BitmapData(textfield.width, textfield.height);
bmd.draw(textfield);
var bm:Bitmap = new Bitmap(bmd);
addChild(bm);

Then I just get a white rectangle the same dimensions of the type.

View 2 Replies

ActionScript 2.0 :: Turning Dial With Sound Clicks As It Turns?

Dec 17, 2006

I'm having trouble with this turing dial. I want to have a clicking noise as the user drags the dials around.

See it here: [URL] Download the .fla file here: [URL]

View 7 Replies

Professional :: Media Encoder Turns Audio Into White Noise

Aug 24, 2011

I'm running CS5.5 on an intel Mac 10.6.5, and I have been having problems encoding to flv. All my videos are edited the same way, and using the same formats etc., yet recently I have found that when converting to .flv, some will work fine, and others will have the audio replaced by white noise.

Checking through the video specs, it appears that the one difference is that the ones which worked fine are all Apple ProRes 422 HQ files, and the ones which failed are Apple 10bit Uncompressed. The strange thing is the audio is the same for both. Yet when the encode problem happens, the video for both is fine, its just the audio where the problem appears.

View 1 Replies

ActionScript 1/2 :: Swf Dynamic Text Turns From Horizontal To Vertical When Published?

Aug 24, 2011

I've got a two year old site (ww.pantelco.be/coaching.html) and something odd happened today. I had to change something in the fla, tested the swf and uploaded it to the server. When I test the swf in flash or just open it manually, all is fine, texts are okay.But whenever it's in a htmlpage (using swfobject), all the multiline textfields turn from horizontal to vertical expanding text, so a large column of 1 character.
Even my backup site acts the same way. It's driving me crazy.
 
I installed a couple of new browsers a couple of days ago, and I remember I had to update my flashplayer. Maybe thsi is relevant? I just don't know. Texts are loaded through xmls - well, they load alright, but they don't show up the right way.

View 4 Replies

ActionScript 2.0 :: Remove Clip From Cache - Background Turns Black

Jun 26, 2009

I load this clip:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var myGalleryXML = new XML();
myGalleryXML.ignoreWhite = true;
myGalleryXML.load("gallery.xml");
[Code] .....

In the last frame of my time line I add:
removeMovieClip("container_mc" );
The movie disappears but the placement turns black.
I added:
this._alpha = 0;
But the other clips of the main movie doesn't load.

View 1 Replies

ActionScript 3.0 :: Created A Class That Turns A Movieclip Into A Clickable Button

Sep 4, 2010

I created a class that turns a movieclip into a clickable button. But for some reason it only works on one of my movie clips and not the others, even tho the other movieclips were created as duplicates. It saying that its a null object Below is my code for the class.

Code:
package {
import flash.display.MovieClip;

[code]......

View 0 Replies

ActionScript 2.0 :: When You Click 'off' On The Song, It Turns Off All Sounds, Including The Video?

Jun 13, 2007

I have a song that plays on my site, with an on/off button. And the way the code is set up now is when you click "off" it turns off all sounds. I just put a video on my site, and now the song interferes with the video, so when you click 'off' on the song, it turns off all sounds, including the video. Of course all you have to do is re-start the video, but I'd rather have it set up so the code for the musicbox just turns off only the music.Here's the way it is now, on the off button:

Code:
stop();
stopAllSounds();
play_btn.onRelease = function(){[code]...

I don't know always know the proper way to write it. These last few days have been like a person who's in a foreign country and has a lot to say but can't because they doesn't speak the language.

View 2 Replies

IDE :: Passing Instance Names To A Function Turns Up Error Message?

Feb 24, 2010

I made this function,that is supposed to create a bunch of slides based on a parameter. That parameter should be the instance name:

Code:

function createSlide(instName:Object){
trace(instName);
this.createEmptyMovieClip(instName, this.getNextHighestDepth());[code]....

In the script I call the function with

Code:
createSlide("mySlide");

After execution, this error message appears: Error: A 'with' action failed because the specified object did not exist.The trace statement returns the instance name -"mySlide"- When I replace instName with a stringtype name like "mySlide", it works fine.But I don't want that 'cause in that case I have to write a specific function for each slide.

View 2 Replies

Flash :: Professional - When Publish To An Animated Gif The Text Turns Into Blobs On The Screen

Nov 3, 2008

I have a simple litte banner I did with flash (version 9.0). Just a few images and some text that I fade in and out with a motion tween. When i publish this to an animated gif, the text turns into blobs on the screen.

View 6 Replies

ActionScript 3.0 :: Screen Turns Black And Flash Quits On Video Playback

Oct 21, 2010

I'm using a playback control that is giving me problems. The only thing that I'm using is a play/pause buttons and the time scrubber. I found this code on a website. Now, when I preview the swf, it plays fine, but when the video starts playing, the screen turns black and flash quits automatically.

This is the Error that I'm getting:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Website10_fla::MainTimeline/updateDisplay()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

And this is my code:
import flash.display.MovieClip;
import flash.utils.Timer;
import flash.events.TimerEvent;
// time to buffer for the video in sec.const BUFFER_TIME:Number = 8;
// start volume when initializing player
// const DEFAULT_VOLUME:Number = 0.6;

View 20 Replies

Actionscript 3 :: Turn Tiller To Left With Mouse, Boat Turns To Right & Vice Versa

Mar 31, 2011

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.

View 2 Replies







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