I have a task where a user fills in a form and uploads a photo. As a result a HTML page is generated that pass the form data to SWF file using FlashVars.
What i want is that the SWF movie loads the uploaded image and show that at frame no. 400 till 1000
I want to know what steps I have to take and what Code i have to write in order to achieve what I want.
I found this seamingly usefull mini tutorial on Actionscripts.org on how to use the FLASHVARS value in the 'HTML' to controll which part of the Flash movie is shown. But I can't get it to work, the AS gives loads of errors in Flash. The value is set, as I have got a textbox showing it the values. here is the AS I did as an experement,It's just supposed to move the playhead to a different named frame depending which page loads the Flash.the FlashVars value in the html pages is page=one and page=two.
Code: var siteManager:siteManager = new SiteManager(this, _root.page); class SiteManager { private var _tl:MovieClip;[code].....
I have an image on the stage which is bigger than the stage itself:
The stage is 700x550
The image is 2100x1650, and it's registration point is at its center, if I remember correctly.The initial location of the image on the stage is 350,75.I want to make sure that the user will be able to drag the image, as long as the edges of the image doesn't show.here's what I did:
mapRect = new Rectangle(0-mapMC.width/2, 0-mapMC.height/2, mapMC.width, mapMC.height);
and later on:
mapMC.startDrag(false,mapRect);
The the top and the left of the image are bounded well, but as far as the bottom and the right side of the image.
How can I show an image that I have just captured with the webcam?I am able to save that image using PHP but before I save it, I want to show a preview. How can I do this? Here is a snippet of the code that I think can be used to do this:
ActionScript Code: foo = new BitmapData(640,480); foo.draw(myvideoobject, scaleMatrix);
Is there a way I can do it so at a certain percentage of the preloader a image shows up? Like lets say from 0-49% the background is black then once it hits 50% an image shows up as the background, and stays there until 100% so basicly 0-49% = black background and 50-100% = show an image as a background Is that possible? Also, here is my current code I would like to add that option to: [php]stop(); this.addEventListener(Event.ENTER_FRAME,
loading); function loading(e:Event):void { var total:Number = this.stage.loaderInfo.bytesTotal var loaded:Number = this.stage.loaderInfo.bytesLoaded; bar_mc.scaleX = loaded/total;
this[newroto].rotographic.gotoAndStop(random(this[newroto].rotographic._totalframes)+1); <-- this line gets the images randomly.. and i wanted it to show all images... like the image on frame 1 the image on frame 2 on frame 3.. this 7 (the var set on the beguining..)
I am a php programmer who has no experience whatsoever with flash. I've got a swf on my website that calls an image. The images it calls can take a few seconds to load and I would like to display something in the meantime to let the visitor know that the site is working.[code]I've done some Googling and I think it is something to do with LoadListener. Am I right in thinking that this "self monitors" the process and that you can use this to display something in lieu of the actual swf loading??
I want to have a player that shows a static image to begin with and then plays 2 short .flv files, one after the other and then reverts to the static image.I've found this, which works beautifully for the static image and one movie clip but I don't know how to add the second movie clip.
startBtn.onRelease = function() {// make sure your video has an instance name of vid// and it is NOT set to auto play.vid.play();this._alpha = 0;};var listenerObject:Object = new Object();listenerObject.stopped = function(eventObject) {startBtn._alpha =
I am trying to do this also, only with one static image at the beginning and then the option to play the flv file: Here is where I am at the moment:In the .fla file in Flash CS4 Have the FLVPlayback Component and the FLVPlaybackCaptioning Component (with related .xml file) plus the Caption Button Component inserted, and all work fine.At this point have made the video with controls the bottom layer on the timeline. The FLVPlayback Component instance name is vid. Next layer is the still image as a graphic symbol.Top layer is the actions layer.On the actions layer I have place the code as shown in the previous answer, before you tweaked for the two videos:I get five compiler errors, which I have attached a screenshot of as a jpg file. I am very new to AS, understand code, but not AS code.
I am just wondering if it is possible to show an image instead of flash content for mobiles? I want to allow the adobe sniffer to do its thing when it is people using pc and mac browsers and direct them to the plug in page to download the flash player if they need it, but is there a way to sniff for a mobile / smart phone browser and if they cant view flash it will show an image instead?
I CANNOT see my image files when I import them. This is the case regardless of whether I import them directly from my image files, or from my Flash library. They WILL NOT show up in the stage area, although the panel on the right shows the file! What can I do to correct this? I am using Flash CS4 which I need for my Digital Design classes through the Art Institute of Pittsburgh! I will FAIL this course if I can't get this program to work properly!!
I would like to show some images and text in the same line. The text and image is completely dynamic. At first I thought to use htmlText property of TextField as img tag is supported. Something like this:
var tf:TextField = new TextField(); tf.htmlText = "before img <img src='img.png'> after image"; addChild(tf);
But I found that the image is showing in the next line, not in the middle of two text segments. Then after checking the manual of TextField I have found that this is the documented behavior that the image will be shown on the line following the img tag.
So what is the best way to do this? Note that the text and position of images are completely dynamic.
I understand that it is possible to split the input in a series of texts and images and then position them calculating the text and images width. In other words parse the input ourselves.
Is there any better way to do this? Or is there any library available that does this parsing?
I have some 3rd party Flash SWFs on my site that are up to 100KB in size. e.g. the Flash video player "JWPlayer" SWF is 98KB.
That's fine for people with Broadband, but not so good for the slow dial up bandwidth visitors. e.g at 40 kbits/s, we're talking 20 seconds to download.
The problem is that on slow connections, all the visitors are seeing is a static white screen, and so may close the page thinking it's dead. If I right click the area where the SWF is to go, an Adobe Flash Player Object is occupying the space, but the 3rd party SWF has not finished loading in yet.
I would like the website visitors to see a loading spinner GIF or something similar.
Unfortunately, none of the 3rd party SWFs have "preloader" element. And they are not open source, so I cannot add a preloader to them.
Is there any way to display a loading image, prefereably a GIF animation, while the SWF is loading?
For example, is there any way to force the Adobe Flash Player to show an image while it is loading in the SWF?
I don't have any Flash coding skills, so a solution that doesn't include creating an extra SWF or a SWF within a SWF would, probably isn't best for me, but might be worth adding to the post in case other people have a similar problem.
I have a list of artist, each one a mc, in a vertical display. Next to them, I have a holder in which I load the thumbnails one the mouse is over a mc.This images, are being loaded via loadclip.. resize-center and then shown with alpha..But sometimes, the image are shown huge, and instantly resized and positioned.This a dvd project.. so images are not being downloaded..this is the part of the code..
Currently everything loads perfectly except for the thumbnails and I really cannot figure out why or how to make it work. All thumbnails are .jpg's so that's not the issue, I know it has to do something with the coding.
if (items[i].attributes.type == "article") { // create variables for our elements var article_title = items[i].firstChild; // var thumb = items[i].childNodes[1]; // second child node
OK I have an empty MC. I want to draw lines that show on top of an image, but everything I try draws the lines below my image.This code is ran from the main timeline.This is my code so far.
Code: _root.attachMovie("Audiogram_Chart","Show_Audiogram",100000); //this is my MC that will hold the graphics
I tried to do that;a txt file which created by PHP , includes :[code]I load the values image1,image2,image3 but I can't show the images please help me ? how it can be possible,LoadMovie(image1) does not work,how it can be possible ?
I am just new to Flash CS4, recently trying to add a slide show in my webpage, with the function of click on any of the images in the slide show, that will bring me to another webpage. The flash file will be inside a html pages manage by Adobe Contribute.
I have already build a one layer with 10 images slide show, but have no idea to add the function of clicking on any images to bring to another website, can anyone give me a hand on this.
I have made a bitmap image into a rollover button - reason - so that when the mouse rolls over the hit area of the button/image/thumbnail - it becomes larger on the stage and when the mouse moves outside the paramaters of the larger picture it goes back down to the original button/image/thumbnail size.That works fine.However . . . there is always a however. When I implemented the same functions to the other thumbnails on the stage - if I rollover the second thumbnail- the other thumbnails show up (through) on top of that enlarged image.
I have an image slide show that was created in Flash CS3 with a fade transition. I want to slow down the slide show so the pictures display longer. Is there an easier way to change the speed of the slide show other than dragging each frame on the time line?I dragged each frame 20 frames longer and it's not working for me. It seems as though some images display much longer than other.
I am working on a Action Script3 project and I am showing images after resizing. I am using Bitmap and BitmapData manipulation for this but not getting image quality as like original image.
I'm used to working with the timeline and don't often go into the actionscript side of things.
I've created a 60 second animation of an hourglass timer counting down, and next to it, is a card showing a word. I need this whole animation to play when you hit a 'start game' button and also I need the word on the card to be a random word. All of the words are saved as separate vector files for now.
What is the best way to manage this on the timeline, and what would be the code to make a random image appear?
I need to be able to load a jpeg/png image from disk and show it in flex and send it to a server as a base64 encoded string. But once the image file is loaded, in my flash.display.LoaderInfo object, the bytes property (type of ByteArray) contains more byte than the file content.