ActionScript 2.0 :: Display A Picture From The Library On The Flash Page?
Feb 16, 2004whats the actionscript to display a picture from the library on the flash page?
View 3 Replieswhats the actionscript to display a picture from the library on the flash page?
View 3 RepliesHow can I programatically make a picture of a flash application in an ASP.NET/C# page which is hosting the flash application?
View 2 Repliesi found a couple of samples, but they seem to be fixed only to PHP.
View 1 RepliesI 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 RepliesMy basic aim is to create a newspaper that consists of four pages. Each page i have created and are sitting in the library as sprites. Each page has buttons that need linking so that when pressed it loads the next page or page that i want. This is the part i am confused with =/ how do i make the buttons on each page load the next page (sprite) from the library??
View 2 RepliesIm currently in need of a library that contains flash.display.loader. I searched in google but the libraries I found doesn't contain display.loader. Would you mind to give me link where I can download this?
View 1 RepliesI 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]
Im creating a sort of a picture album, i would like the users to be able to click for full screen display! How do I achieve this??? pics. are most probably jpgs.
View 4 RepliesI've been stuck on this one a while. I've created a simple picture slide show whiich works fine on Dreamweaver. However, when I throw it onto the server it doesn't display on the website. I've checked everything and i'm pretty sure all is in order so i'm baffled as to what I'm missing. It's probably something simple that I simply don't know. The Flash file is a .swf. It's saved in the root folder. It works fine when off-line. When online nothing appears (area where the the Flash file should be remains clear).
[Code]....
I am trying to edit a site, I have a picture on top right side. I want to use a different picture for each page using action script. I have added the pictures in series and no actionscript seems to be working for that. Can anyone pls check it out?
[URL]
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.
Here is the title error with complete paths:
\psfHomeDropboxDevelopmentRepositoriesGITi-ccPowerhouseNotesmasterflashliblibnoteNotesCore.as:1: 5000: The class 'lib.libnote.NotesCore' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type.
Firstly, what I have tried and what I am using:
[Code]...
I am mainly from a Java background, so perhaps I am misunderstanding an ActionScript concept; if anybody could point me in the right direction I would be extremely grateful!
I have created a Flash video clip, and can't see the video when published to server. I am able to see the video on the page when I preview it in Dreamweaver CS3. I have deleted, recreated and re-uploaded the files.URL...
View 2 RepliesI want to have a Mouse Over to use on my list, so when I mouse over an Item on the list, it displays a picture. It's to use on my Chapter Select page of my flash game.
View 0 Repliesi have something like this in my XML
Code: Select all<?xml version="1.0" encoding="ISO-8859-1"?>
<data>
<city_data>
[code].....
I made the this tutorialhttp:[url]....and align the movie clip instance to the stage.The problem is when I test the movie the picture is loaded like the movie clip instance is the top left "insertion point" so the picture is not centered. How can I fix this to make the picture aligned in the page?
View 11 RepliesIf I find the the stage width and the stage height and divide each one by 2 then I know where the middle of my stage is. However, how can I use that point to be the middle of the image that I display on the pop up?
View 2 RepliesI how that any Can help I have a Picture that I want To destroy it As someone break it as a glass and then something made it go back as she was
View 1 RepliesWe need to display an HTML page within a Flash executable file. We request the members of this forum to kindly guide us on how to go about it.
View 1 Repliesok..so..i have a data in dynamic textbox which comes from input text box.....what i need that when i click submit button the data of dynamic text box should be displayed in html page....
View 0 RepliesI want to have a Mouse Over to use on my list, so when I mouse over an Item on the list, it displays a picture. It's to use on my Chapter Select page of my flash game.
View 0 RepliesI am using pictures for backgrounds in this game that I am making. About 10 pictures for each level. When the user starts a level all of the pictures needed for that level will be loaded into an array.
I can't use URL request because it won't always have access to the picture files at runtime.So I need to have a separate class for each picture. That is all okay. The picture class names are like so Level01_Picture01, Level08_Picture12, Level67_Picture01, ect... and are stored in the folder: theGame. To access them I user getDefinitionByName().This is the function that should return a MovieClip containing the picture specified in the parameters:
[Code]...
Firstly I'd like to ask: what does the @291d3121 mean? More importantly though, is it accessing the class theGame.Level01_Picture01? And if it is, how do I display the picture that belongs to that class?
So we were going to make a website allowing users to upload video. The website is going to be in PHP/MySQL. Are there any converters out there available for PHP to convert a video from a given format to flash to display on the web page to play?
Basically we would have a file on the server in say .avi format, or quicktime format. How do I grab it from the server, convert it to flash and display it on the php page to play?
Also, does can I use the video capabilities of HTML5 with PHP to make any of this easier?
How do i display the flash banner first and then the home page details using javascript.I need load the flash first and then display the home page
View 1 RepliesI have a website made in flash uploaded on a server. It was working fine tomorrow and today it shows blank page, why so ?? this is the link [URL] . There's an index.html page and main.swf file
View 2 RepliesHave a flash picture slide show that fades in and out to transition from picture to picture. Would like to use a shared object so that when someone goes to the next page it will load on the picture it left of at. Should the shared object load at the last state or should it save the frame position? The movie has so many pictures that people will only see the first couple pictures every single time they change pages and never get to the end of the movie. This was made in Flash CS5
View 1 RepliesMaybe you know how do easy turn page. Picture will be load into swf files and with turn page effect they change when some time will pass (sorry for my english)
View 1 RepliesI have code that is in HTML format that I think will work. Is there a way to get it read and displayed in a flash frame? or Window?
View 8 RepliesRunning Flash CS3, I've reviewed the lynda.com tutorial on building particle systems in ActionScript 3.0 to try and build some shooting sparks in an animation.I'm getting stuck at what I think is a really elementary point, but I can't seem to get past it.
Basically, all I'm trying to do at this point is create a class called Particle (which I will teach to do things that particles do a little later) link it to a MovieClip on the stage in my .fla file and use the particle's update function to move it across the stage in a manner defined in the instance (so I can later give different movement properties to each AS generated instance of the MC). I know there are easier ways to accomplish my base task without loading an external package, but this seems so strightforward that I must be doing something very simple wrong I just can't see so I thought I'd post the code here and see what I'm missing.
I start with a file called Particle.as in the same folder as my Spark Test.fla file.
In Particle.as I have the following code:
package{ import flash.display.*; public class Particle extends MovieClip { public xVelocity:Number; public yVelocity:Number; public function Particle() { xVelocity = 0; yVelocity = 0; } public function update():void { this.x += xVelocity; this.y += yVelocity; } }}
So I'm declaring that all particles are built with no motion, but if they are explicitly granted an x or y velocity, they will move by that much when the instance's update function is called in the timeline.
Then in my Spark Test.fla file, I have a small shape in a MovieClip called Spark. In the Linkage properties of Spark I have chosen to Export for ActionScript and Export in FIrst Frame. The class is called Spark and the Base class is Particle. For testing purposes I've dropped an instance on the stage and called it spark. Then in the actions layer in the first frame (the timeline is just the spark layer and the actions layer, one frame long each with no "stop();" so it should run forever) I have included the following code:
spark.xVelocity = 5;spark.yVelocity = -1;
function updateSpark(event:Event):void{ spark.update();}
addEventListener(Event.ENTER_FRAME, updateSpark);
What it looks like this should do is on each ENTER_FRAME Flash should call updateSpark which is a function that runs the update() event for the spark instance which is a instance of a movieclip that has an update event which moves x and y position by their relative velocity variables. This all seems pretty straightforward to me, but when I ctrl-Enter to test the movie, I get the following 3 compiler errors:
Particle.as Line 1: 5000: The class 'Particle' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type.
Particle.as Line 7: 1071: Syntax error: expected a definition keyword (such as function) after attribute public, not xVelocity.
Particle.as Line 7: 1084: Syntax error: expecting rightbrace before semicolon.
I am having an issue with compiling a .swf. I get the following error on what seems to be related to the images. There is about 40 that are all very similar the the error code listed below:
5000: The class 'com.decalmywall.Emb_EMB_BORDER' must subclass 'flash.display.BitmapData' since it is linked to a library symbol of that type.