ActionScript 2.0 :: Importing Picture From Library On Stage

Jul 12, 2009

I use the DistortImage class by Sandy to distort an image. This works. However it shows the picture twice unless I add _visible = false; to it on the mainstage. Now I don't want it to be on the mainstage in the first place so I place the picture on the stage from the library:

Code:
_root.attachMovie("photo2", "photo6", 1);
photo6._x = 100;
photo6._y = 100;

Now I want to distort it:
Code:
import sandy.util.DistortImage;
_root.attachMovie("photo2", "photo6", 1);
photo6._x = 100;
photo6._y = 100;
clip = createEmptyMovieClip("holder", 1);
[Code] .....

But now the picture disappears?! Here's the .fla with the distort class for CS4: [URL]

View 1 Replies


Similar Posts:


Professional :: Photo Import Vs Result - Difference Between Importing To The Stage And Importing To The Library

Mar 24, 2010

I am importing a picture in flash and i found out that there is a difference between importing to the stage, and importing to the library... [URL] I've placed both picture close of each other and if you look closely, you'll notice that one of them is losing some resolution. Both picture come from the same file, a png. The picture imported to the stage is sharper than the one imported to the library. is there a way to import that picture to the library without losing any resolution?

View 5 Replies

ActionScript 3.0 :: Error Importing TextField Instance From Library To Stage?

Dec 1, 2010

I'm making a project that is based almost entirely on code and I'm using classes. And everything was working fine until I came to a situation where I needed to make text field inside flash and not with code. I made a text field put some text inside, converted to a MovieClip, set the "export for actionscript" linkage in the library and deleted the movieClip from the stage.

Then went to my document class and wrote this code:

ActionScript Code:
var txt:text1 = new text1();
addChild(txt);
txt.x = 20;
txt.y = 20;

And I get this error: Error #1009: Cannot access a property or method of a null object reference.

Weird. I don't understand this problem. I then put this as3 code into the first frame and disabled the document class. And the text appeared normally on the stage.

What is even more weird. I get the same error even if I delete this code. In other words, I get this error just by having this text object inside my library.

So what do I do wrong? Why can't I use this command in my class? And what is happening this just by having this object inside my library?

View 9 Replies

ActionScript 2.0 :: Get Picture From Library?

Dec 21, 2009

I have a .jpg in the library linked to Actionscript as "npc10". At a certain point in my code, I try to attach this to a movie clip using attachMovie(). But nothing happens. So I've tested with another MovieClip instead of the .jpg. It works! I've also tried attachBitmap() with a simple bitmap. That works, too! Then I try attachBitmap with the .jpg. Nothing.[code]...

View 3 Replies

ActionScript 3.0 :: Importing A Button From Library

Feb 13, 2009

How do I import a button I have from the library to create a new instance of it?

View 4 Replies

ActionScript 3.0 :: Importing Swf Into Library And Accessing Data?

Apr 3, 2009

I have stored some basic data in a custom class, imported it into a project, and compiled it into an swf. Now, I want to import that swf into the library of a new, entirely separate flash project, and access the data from the original custom class inside that imported swf.

Here's how I'm trying to go about it (unsuccessfully):

1. Create a custom class 'MyClass.as' with some basic data ("hello world") stored in a property:

Code:
package {
import flash.display.MovieClip;
public class MyClass extends MovieClip{

[Code]....

View 2 Replies

ActionScript 3.0 :: Importing Image Into Library Via AS And Then Compiling

Sep 25, 2008

I need to be able to add into the library an image via Actionscript 2 and 3 so when the AS is compiled into a SWF the image is in the library. Anyone know how to do this? I know I can drag and drop into the library manually, but i'm trying to do this dynamically and then compile it by way of the command line.

View 9 Replies

ActionScript 3.0 :: Importing A Replay Button From Library?

Apr 12, 2011

how to place movieclips onto the stage using actionscript 3.0 without having any material in my timeline. In other words just having my actions layer, and placing all my movieclips I created from my library to the stage using code.

how do I import a replay button onto the stage using actionscript. Right now I'm creating a web banner for school using as3, but I would like to learn if there is a code that would "replay" all actions I've written in my actions, or how to make my banner replay once is done animating.

View 5 Replies

ActionScript 3.0 :: Preserve Image Quality When Importing It From The Library?

Feb 12, 2009

How do I preserve image quality when importing it from the library. For some reason it seems to lose a lot of the quality.

View 2 Replies

ActionScript 2.0 :: Display A Picture From The Library On The Flash Page?

Feb 16, 2004

whats the actionscript to display a picture from the library on the flash page?

View 3 Replies

ActionScript 2.0 :: Toggle Any Settings When Importing A Sound Clip Into The Library?

Apr 28, 2008

I embeded an mp3 into a movie clip, and the source mp3 is professional quality, yet the embedded clip sounds horrible.

Is there a way to toggle any settings when importing a sound clip into the library?

View 2 Replies

IDE :: Importing Bitmap To Library Creates A New Graphic Symbol Everytime

Apr 20, 2010

Is there a way to avoid this? I import A LOT of bitmaps all the time and it's really really annoying to have to delete the graphic symbol flash creates with it.

Couldn't find a way to toggle this "feature" off in preferences.

View 1 Replies

Flash - Embedding/importing SWC At Compile-time Without Setting A Library Path?

Mar 12, 2011

how to import a SWC file directly in ActionScript, without setting a library path to the file.To exemplify, I need something like this:

package
{
[Embed(source = 'Library.swc')] // This line won't work, of course...
import ClassInsideSWC;

[code]....

Besides, I don't want to (I can't, in fact) import the SWC by loading it with Loader class.

Edited Just to add more info about the problem, I'll showcase my scenario with more details...I have a class SubClass that wil be independent from the rest.It will extend a class SuperClass that is inside the SWC/SWF...This SWC/SWF have the whole framework.I can't compile every class inside a single SWF.Every part of my framework is a SWF apart and will be downloaded by Loader class on runtime.

View 2 Replies

ActionScript 3.0 :: Flex 1 Swf Loader, Multiple Swfs Importing From Shared Library?

Dec 15, 2009

I'm using Flex builder 3 for my main application (web-based), and I need to load multiple swf files built in flash cs4 (AS3) at different times. The flash swfs import assets from a separate flash swf used as a shared library. I'm using 1 swf loader in flex to keep 1 flash swf loaded at a time.Loading the first swf works fine, but loading subsequent swfs generates an error in importing from the shared library swf.

Here's an example of an error:

"ReferenceError: Error #1065: Variable sharedApps is not defined."

View 3 Replies

ActionScript 2.0 :: Make A Picture Gallery And Use Buttons That Move You From Picture To Picture And Backwards?

Apr 22, 2002

I want to make a picture gallery and use buttons that move you from picture to picture and backwards, but I don't want to tell button 1 to go to frame 2 and button 2 to got to frame 3 and so on (I hope you know what I mean)Can I use on button on a separate layer with the same action set? I tried something like that, but it didn't work:

on (release) {
thisframe =+1
}
[code]........

but it didn't work. I'm kind of new to any action script other than gotAndPlay, easy functions and all that.

View 2 Replies

ActionScript 3.0 :: How To Get Picture X And Y On Stage

Nov 27, 2009

I have a container movieclip on stage that anyone can drag and drop. Inside are 3 pictures that also can be dragged and dropped. Now If you drag and drop the container movieclip its x and y will change. If you drag and drop the pictures there x and y will change. The question is, if you drag and drop the container movieclip, how do you get the pictures x and y as if they were on the stage and not inside the movieclip? Because if you drag and drop the container, its x and y change, but not the pictures because they are inside the movieclip. But if you look at them they actually do...

View 3 Replies

Professional :: Importing PNG Sequence Into Stage

Jan 25, 2011

I am trying to import 100 png sequence (of a rotating object), so I choose the import command, choose all my 100 png sequences by shift clicking, but only one gets placed on the 1st keyframe the rest are in the library. How can they all be placed into the stage, all 100 png sequences taking up all 100 frames. So when I control test my movie I can see the object rotating.

View 3 Replies

Importing To Stage From Illustrator Causes Crash

Feb 5, 2010

I'm trying to import a rather large, many layered illustrator composition on to the stage. The progress bar reaches the end and then flash crashes.

View 8 Replies

Importing JPG To Flash To Arrange On Stage Animation

Aug 10, 2009

I have 10 jpg which same size and the name is liked a1, a2, a3...a10. Can I import them to flash and arrange them to same position on the stage and the animation is like:
frame1:a1.jpg
frame2:a2.jpg
...frame10:a10.jpg
What ways is quickest to achieve it?

View 1 Replies

ActionScript 3.0 :: Importing Images Onto Stage Dynamically

Feb 20, 2009

I am new to Flash and ActionScript 3.0. This code (which I think is the code to import an image onto the stage dynamically using AS3 code and convert it to MovieClip, so that I can access mouse_click events on the image present on the stage.) Actually, it is displaying nothing on output and no errors. Will it works good and is the code correct? I am new to AS3.0.

View 1 Replies

Professional :: Importing To Stage PNG's An FW's Crashing Flash

Jul 10, 2011

For the last two days I've tried to import more than one PNG or two FW files onto my stage.  Flash Crashes as soon as I start the import process,  I realize this can be a file size issue, but the two FW files are 838kb and 833kb.  These should come in easily, they have in the past.  Is there some setting I haven't made or is this another problem totally? 

I'm using Flash CS5 (11.02.489) with no updates available.  I'm working on a box running XP Pro with a 3.00 ghz DuelCore Pentimum processor.

View 3 Replies

IDE :: FLVPlayback - Importing Videos Via Wizard To Stage

Dec 16, 2009

I imported multiple flvplayback videos on my file via the Video Wizard Import. After that I removed all videos except one. But it's still trying to load those old video and the skin of their player when I preload the file. I am sure there's no player on the stage except the one I need. And when I need to play the file, it's working well, the only problem is the extra loading for 6 skins that I don't use anymore and the time to look for 6 videos that are not there. So here're my questions;

1- When you import a video via Wizard, it there a script hidden somewhere that can be found?
2- When you import a flv to the stage, there's a loading bar saying getting metadata. Is there a place to edit or erase this metadata?
3- Any other ideas of where I could look to find this hidden data or trace or ghost that needs to be remove from the file ?

View 1 Replies

Professional :: How To Tile Picture In Background Off Stage

Jun 11, 2010

Okay, since my stage doesn't take up the whole window when viewing it on the Internet, is there a way to tile a picture in the background? So no matter how big someone's screen is, in the background they will see a tiled picture.

View 4 Replies

ActionScript 3.0 :: Move The Picture From Movieclip To Stage?

Aug 8, 2010

i have movie clip with images and buttons: left, right, up, down, need for this buttons add events, to be able to move the picture from movieclip to stage

View 2 Replies

ActionScript 3.0 :: Document Class On Stage - Importing Buttons?

Jun 13, 2009

I have drawn buttons on my stage. They all set to export for as3. I then made a class for buttons

package{
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.system.fscommand;
public class Buttons extends MovieClip{
public function Buttons(){
[Code] .....

And then I put in my document class ; import Buttons; nothing happens and no errors...

View 14 Replies

ActionScript 2.0 :: Importing Images Dynamically From Folder To Stage

Feb 22, 2011

I made this flash CS3 project using Actionscript 2.0 I want to import some images in a folder to stage. The images are named 1.jpg, 2.jpg, 3.jpg etc.. All these images are 600px in width. I used a movieclip as a container for these images.

[Code]....

When i run this code, only the last image is loaded. since i used Actionscript Code:
i<3 in the for loop, only the 3rd image is loaded. its in the right place. (_x = 1800). The first and second images are not loaded...

View 3 Replies

Flash Freezes Up On Importing File To Stage From Illustrator CS4

Nov 6, 2009

I've been running Flash CS4 (on a mac) for a few weeks now without any major issues. But the last few times I have attempted to import to the stage from Illustrator CS4, Flash freezes up. It allows me to select the file, gives the appearance of loading then the stage remains blank. Menus pull down but all options are grayed out. How to remedy this?

View 1 Replies

Importing SWF Into CS4 Flash Stage Results In Text Errors?

Dec 28, 2009

I have a inDesign CS4 (.4 update) exported SWF that behaves badly when it is imported into Flash Pro CS4 (.2 update). Hyphens in the text on word breaks are being changed into question marks. Font used is Arial. The SWF ( attached) views fine in Flash Player 10, but produces the errors when imported to the stage. I have tried all settings (Text to Vector Paths, Text to Flash text) but the result is the same. Rasterizing the text is unacceptable because text quality is severely reduced on zooming the Flash document.
 
If you try importing the attached SWF to a blank file stage, you will see the errors on page 3.So far, the only fix I have is creating all text in flash.

View 7 Replies

ActionScript 2.0 :: Make Visible The Webcam's Picture On The Stage?

Aug 18, 2009

I have problems with webcam streaming in AS2. In AS3 I can make it visible on stage with a Camera.get call and a Video object. Because of some reasons in one of my works I have to use AS2. Can anyone provide me a working code to make visible the webcam's picture on the stage? I use the following code, but it doesn't work:

var cam = Camera.get();
//it's okay I can see the real camera name in the name property
var vid:Video;
vid.attachVideo(cam);
//... and nothing happens on the stage Why?
trace(vid) returns "undefined" Why?

View 0 Replies

ActionScript 3.0 :: Taking A Picture Of An Area On Stage + Webcam?

Jan 6, 2012

taking a screen grab of a movie clip while the webcam is on..(the end goal is to create an app where people can put funny stuff on their face e.g an eye patch ect..)Is there any simple tutorials on how to do this?, i've tried the whole matrix thing but im still having issues when i resize or move movie clips around, to get it align with someones face!

View 7 Replies







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