Actionscript 3 :: Image Auto-load From Desktop?
Apr 11, 2012I need to load an external image into the clip from the desktop using:
var myimage:File = File.desktopDirectory.resolvePath
I need to load an external image into the clip from the desktop using:
var myimage:File = File.desktopDirectory.resolvePath
Experience with Flash: very very little (very) Version: CS4 Operating system: XP Pro. I was given an FLV file to display on the web. I imported the file into flash and exported it as an html file.
The movie worked great online, but then I was asked to save a copy of the movie on a CD to send it to a client - I saved all the files in a folder. I tested it on my computer and I was able to view the movie, but when the client loaded the html page, all they saw was a bar (that has the volume & play buttons) and a green line that scrolls across it. Here's what it looks like
Some people can load the html file and view the movie and others cannot (on their desktop). On some computers I tried updating the flash player (I removed the existing one first), but it still did not work.
As much as I'd like to be, I am not a Flash developer - I just use it to the extent that I must (the nature of my job) Did I provide enough information for someone to be able to tell what the issue is and how to resolve it?
I am trying to find the solution to loading a .txt from c:/ to my online swf.
View 2 RepliesI have a mx:html component in a AIR Desktop Application that load an external webpage into it...this webpage has an iframe in it and the iframe load (obviously) another page...I can't figure out how to get the code of the iframe...If I try to get the webpage content I only retrive the start page like:
File webpage.html
<html>
....
<iframe src="http://host/framepage.html">content default</iframe>
....
[code]...
It's like as the second page is not loaded, but it's actually be loaded and rendered in the browser window (i tried also using a button so I can delay the search for the iframe content.
img_mc.loadMove("xxx.jpg",0); i want the pic auto fit to img_mc width an height how can i do using as2??
View 1 Repliesimg_mc.loadMove("xxx.jpg",0);
i want the pic auto fit to img_mc width an height
how can i do using as2??
Is there a way to automatically save an image from the webcam to a folder without having to click a button, or can you make the button take the image and save it to a folder as well, without a pop up saying "choose the folder to save to"?
View 1 RepliesJust wondering if anyone knows how to auto-resize an image in flash/xml. I have a flash slideshow that is loading an external xml file with images, but would like the images to appear no larger than a certain size in flash. I'm not really sure if it would be better to do this in flash or in the xml file. I have tried setting a fixed width and height within the xml file with no luck (it is still displaying the image at its original size in flash).
View 5 RepliesI'm have googled untill my fingers bled, but I can't find out how to load automatically an external flash file inside a mx.controls.Loader in Flash. Links for the files are; [URL] Edit: This means without a button, it loads when the origianal .swf file loads with the mx.controls.Loader in it!
View 7 RepliesI'm have googled untill my fingers bled, but I can't find out how to load automatically an external flash file inside a mx.controls.Loader in Flash. Links for the files are; [URL]
This means without a button, it loads when the origianal .swf file loads with the mx.controls.Loader in it!
How would I go about creating a gallery that displays images in a grid format that are both portrait and landscape without any cropping or spacing. I cant figure how to go about scripting the arrangement/scaling functions?
View 1 RepliesI have a textField that I'm populating dynamically through loadVariables. The text that is being loaded dynamically is HTML with an <img> tag. Once I autoSize the texField the image is removed.
View 2 Repliesmc.loadMovie("01img.jpg",0);
i use a mc load a pic i want the pic can auto fit the mc's width and heigth
I Have a question regarding a dynamic XML driven image slide show.
I want the movie to slide continuessly from the left side automatically when it is loaded. Now it only loads when a mouse movement enters the screen.
The link is: [URL]
Here is the code from the main time line, Frame 2 (Frame 1 loads the XML file:
stop();
// Number of items
itemNum = 15;
// Stage Dimentions
[Code]....
If i cant get a border to auto resize to the MC as MC's are load with attachMovie(); , can i get a border to animate a resize to a specific ._height, ._width (also with a var speed = #)? Am i just totally F'ing this thing up or what. Heres and example: [URL] i would make a second frame and have the AS for the border load a different value and a new MC.
View 8 Repliesok so i've created (X) amount of .flv's and i basically want a slide show but i didn't want to make it all one file bfcuase the time line would be longer. i need to link all the files so that when i play the first one it will auto load the rest one after another.
View 5 RepliesThe name of the background image movie clip symbol is bg_main. The problem here is img is aligning outside the browser window on extreme bottom-right hand side instead of centering.[URL]
Here's the code below:
//set stage for FBF
stage.align = "TL";
stage.scaleMode = "noScale";
[code]...
I like what the script below does but I need it to be extended in 2 ways and I can not figure how.this is what I would like this code to do...
1. play (ideally stream) sound automatically on entering the site.(right now the play button must be invoked, and it takes a little time to load.)
2. loop that same sound source
3. instead of stopping the sound I would prefer a pause.so more simply sound plays on entering site and I have ONE button (well 2 but changing visibilities) that control only pause and resume I have looked around quite a bit but can never find what I am looking for it would appear that everyones sound issues are so unique that no one has the exact issue that I do (well I am sure many do but I can't find the thread. ) and here is a link to what I have as of now
Code:
var loadSnd:URLRequest = new URLRequest("ax Mr .l..mp3");
var thisSnd:Sound = new Sound();
thisSnd.load(loadSnd);
[code]....
[Code]...
i have the above code wherein i load data from external text file i want the text to be vertcically auto scrolling on load without any scroll bar
How can i make a image resize based on the users screen size in flash?
View 4 RepliesI am having trouble by loading my homepage after my flash intro ends.Does anybody knows the ActionScript for this move?
View 5 RepliesI have an app. in which I have placed a ViewStack with (16) Tabs, and Im using a Timer set up to cycle every five (5) seconds through these VS Tabs automatically.
Each VS Tab has an IFrame included to load a particular web site, and I use the auto cycling to not need to go to each Tab manually and wait each time until the page loads before I can use it.
(Note: The IFrame does not need to do anything else other than to show the page nothing else)
All works very well on the work computer running the app. with CPU activity of around 20 to 30%, but when I address the app. on the sever I have increased CPU activity starting with around 30% on the first sequence, and running the second Tab sequence it is going up to around 90% in Semi-auto or Full-auto modes with five (5) seconds beak in between Tab switches and between each sequence.
To explain more in detail I do have six (6) sequences and an arrangement which uses Semi-auto or Full-auto mode (Looping).
I do use (timerName.reset) instead of (timerName.stop) and have also have used (timerName.removeEventListener .) as each Timer sequence get called separately.
making my image gallery, but it only works as each image in the array is clicked. Now I am trying to make the gallery move automatically to the next image in the array every 5 seconds while still giving the user the ability to click on an image to view the one that they want.Here is my code so far (like i said it works great, but only as a click-able gallery):
import flash.display.Loader;
import flash.net.URLRequest;
import flash.events.Event;
import flash.display.Sprite;
[code].....
I followed the 3D Carousel tutorial from gotoandLearn http:[url].... I was able to put in my images and change the features to how I want, but for the life of me can't figure out how to make the thing auto rotate.
var tw:GTween = new GTween(container, 0.8, {rotationY:targetRotation}, ease:Exponential.easeOut});
tw.autoRotation = true;
But when I added it it just gave me errors and the carousel would not load.
I'm making an interactive film. At certain points within the film, the viewer has the ability to select from a few options that will direct them to an external video clip (they are flashback scenes). The main story pauses when the user selects a flashback scene and I'm clear on how to achieve this.
However, my issue is that once the flashback scene ends and the external video closes, I'm not sure how the main story will resume. Is it possible for it to auto-play (resume) in some way? My last resort would be to have the viewer select a play button - this is only because I do not want a break in the narrative and want to limit the amount of clicks the viewer has to make.
I am trying to load a colour image and then it is changed to black and white image. Here I am using a mask. But it is not getting worked. The code that i am using for this purpose is attached following: import
[Code]...
I developing a site where on the homepage, there are about 6 images that rotate, but if you click on a sub link, a different image loads. But the problem is that, the first image has to cycle through before the second image loads. I want the second image to load immediately.
[Code]....
I have an application that I'm migrating from flex 3 to flex 4.5. In this application, there is some mx Image components that load a simple swf file (image). Spark image doesn't load swf files, so I was wondering, should I keep the mx Image, or should I change it to SWFLoader? Is there any advantages to using one or the other?
View 1 RepliesWhat would you use to create buttons which when pressed load an image in an image area within the same flash document?
View 1 RepliesThis shouldn't be too difficult, but what I have is a button, which in the 'over' state I want to load an external image, and then have the image disappear when the users mouse hovers off the button
View 2 Replies