ActionScript 2.0 :: File Only Contains Around 100 Lines 2 Images
Feb 27, 2006
When doing a preview, flash loaded quite fast and you were able to see the preview in only a few seconds! But suddently it has become slow! Now it runs to about 80-90% in loading when pressing CTRL+Enter and then it stops, and you have to wait like 10 seconds to see a preview.. Why is that? The file only contains around 100 lines of AS and 2 images!!
I can easily make a dynamic image with one or two lines of symmetry.
My normal approach is to take a square image and mirror it once too make one line of symmetry like this:
and then to make two lines of symmetry I can just mirror that image with one line of symmetry as well, making something like this:
images with 2 lines of symmetry work really well for 2D tessellations, but for 3D tessellations I need 4 lines of symmetry.
this is a problem since the way you'd normally do this is to basically fold the square in half both ways diagonally, which gives you triangles instead of rectangles.
this makes it harder to use rotation matrices to mirror the source image.
has anyone come up with a good way to give a source image that you can loop through every pixel quickly and mirror it in such a way that it has 4 lines of symmetry?
i have this completed so far, but i need the texture map to have 4 lines of symmetry, not 2 like it currently does.
I have been working on a map viewer based blitting technique. As part of the map I need to draw approximately 50000 lines and performance is currently really poor.
Alright im trying to figure out how to take the xml gallery tutorial, and add the ability to add lines to the xml from the swf itself.The swf would just be 2 text boxes, one having the url to the image, and one for the caption
My code is on the main timeline.I call a function loop to draw lines between them.The lines are drawing between the right x, y values BUT between those values on the main stage, not those values within the kite.For example, dot1_mc is at x100, y0 inside kite. the line that should go from its center, draws from stage x100, 0.How do I draw the lines inside kite so that they draw between the dots?Heres my code that draws the linesPHP Code:
function loop():void{ lineDrawing.graphics.clear(); var a:Point = new Point(kite_mc.dot1_mc.x, kite_mc.dot1_mc.y); var b:Point = new Point(kite_mc.dot2_mc.x, kite_mc.dot2_mc.y); var c:Point = new
I have an animation that reads some info from a txt file (such a bkg color, bkg image and text). So I would like to make my main animation in the root to repeate a segment of the animation (beteween 50 and 80 frame) or to loop an MC so many times like the number of lines in this txt file.
For exapmle if I have in my txt 6 lines to go from 50 to 80 frames, that again to 50 and like this 6 times (e.g. to repeat this segment 6 times)
I have a text field that i have set to load several lines of text from an XML file.
Code: <?xml version="1.0" encoding="uft-8"?> <imageText> <text> <text1>text for image one <br> line 1 <br> line 2 <br> line 3</text1> </text> </imageText>
it loads into flash fine but when i try make it a global variable it only takes the "text for image one" because it thinks the <br>'s are tags. flash the turns the above code into:
Code: <?xml version="1.0" encoding="uft-8"?><imageText><text><text1>text for image one <br> line 1 <br> line 2 <br> line 3</br></br></br></text1></text></imageText>
i need this tag to be in there to show that its a new line.
I have an animation that reads some info from a txt file (such a bkg color, bkg image and text). So I would like to make my main animation in the root to repeate a segment of the animation (beteween 50 and 80 frame) or to loop an MC so many times like the number of lines in this txt file.
For exapmle if I have in my txt 6 lines to go from 50 to 80 frames, that again to 50 and like this 6 times (e.g. to repeat this segment 6 times)
I want to load an XML file and display at random a different line when a button is pressed. I swear I've seen dozens of different ways to do this online already and I've tried to copy them for my purpose
I need to count the number of lines that exists in a txt file, from wich I load some content. I think I need to escape the content of the txt to be able to read the "/n", to count them and to have them displayed as variable (for example t_linenumber=...?)
I need to count the number of lines that exists in a txt file, from which I load some content. I think I need to escape the content of the txt to be able to read the "/n", to count them and to have them displayed as variable (for example t_linenumber=...?)
I would like to see a line of a text file on the frame that I want (and view it in a dynamic text). This is my text file: Foo Candy Bar Dog
This is my code in the first frame: var myTextLoader:URLLoader = new URLLoader(); firstLine.wordWrap=true; firstLine.autoSize=TextFieldAutoSize.LEFT; myTextLoader.addEventListener(Event.COMPLETE, onLoaded); function onLoaded(e:Event):void { [Code] .....
With this I can see "Foo" in the first frame. How could I see "Candy"? a second frame. Is it repeated all this code again? Is there any way to just invoke the Lines array: Array = e.target.data.split (/ n /) And obtain the desired Item?
I am sending out a standalone player that uses an xml driven image gallery. I need to prevent changes to the xml file to stop images being added to the gallery. I can can password protect the xml file to prevent changes, but I also wondered if there was a way to validate the authenticity of the xml file from within Flash to prevent the entire file being replaced?
i have banner with 5 images fad in fade out effecti need to load images & test from external file " text file or xml file " with keeping fade effects on imagesall ways i know can't keep fading effect on images so
I'm building a flash movie for something at work and im loading in some images using an XML file but when i use a preloader it only preloads the XML file (as in just the text inside) and not the images.
This causes the movie to start playing without having the images loaded.Does anyone have any ideas about how i could get it to preload the contents/images being called in the XML file so it doesn't run as soon as the XML file is loaded.
Why doesn't this code go through the XML file in order? It should go through the XML file and display the images/comments as they are ordered in the XML file.
Code: function loadXML(loaded) { if (loaded) {[code].....
I am trying to create a mindmap where the user can drag points about the screen. I have gotten as far as drawing the line via actionscript, and drag+drop the points (defined as movie clips on stage). This is the existing script - I don't know how to get the lines to follow the points. Something to do with ENTER_FRAME or updateAfterEvent?
var line:MovieClip = new MovieClip(); line.graphics.lineStyle(1,1); line.graphics.moveTo(ptOne.x,ptOne.y);
i have a flash file , that publish to exe or swf , is all ok ,but in flash cs4, only appear the borders where the images should be seen , and to make changes , is complicated not seeing the images ok .
how to recover that in the flash the images come back to be seen ?
I am trying to embed a swf file, that came with images in folders, on a website. I don't have the original flash file. It works when I upload the file: [URL]
When I embed this code in our website, I get error message about the images.
I am trying to embed a swf file, that came with images in folders, on a website. I don't have the original flash file.It works when I upload the file: [URL]When I embed this code in our website, I get error message about the images.
Would anyone have an idea why some images (being pulled into a FLA file via a UI loader) would show up in my SWF file (on my harddrive) BUT, will not show up when I upload the SWF/Images to the ftp/web??
It works perfectly fine on my local harddrive. The UI loader has the correct AS coded, and it successfully brings in the images when I look at the SWF file on my computer. However, when I upload the SWF file to the web, it will not show the images being brought in by the UI loader?
I made double sure that the images were actually uploaded to the website, and they were. I even took the WHOLE site down, and reuploaded it, again, making sure the images I am referring to are up on the web. It all looks correct to me.
I'm creating a web site using adobe flash cs4. I need to insert an images slideshow but i have a problem and I cannot understand what is the solution. I import in my library many images which I put into a layer after converting them to a movieclip. When I press enter I can see the images but when I press test movie i cannot see them.
I have what I'm sure is a very basic flash question. I have a flash movie (swf) and the accompanying fla file. I can open the fla file, and see all the images used in the file (symbols in the library), but how can I export or save one of these images separately from flash?
I have a project in AS3 which has 20 different images, I have animated these instances images (mouseOver), at present all images are in the library (movieclip), but now every time that I want to change an image I have to change the whole FLASH file.
Can some one tell me how I can use a separate folder on my host site called (images) and use a XML file to pull each image from that folder rather than I use the actually image in the actual flash? This way I can easily change the images.
Also how can I add stroke to the image (a little white border around my images).
Is it possible to programmatically extract image files from a SWF file using C#? If so, how would I go about doing that? I know this question doesn't have a lot of detail but I'm just getting started on this and know very little about Flash.
I have a folder containing some images named 01_image_name.jpg, 02_image_name.jpg, 03_image_name.jpg, ... wich I read with a PHP script. Then I loop loading each image and waiting until all are loaded to display them
I downloaded the example for the following site:url...It allows you dow add images to the .xml file and then it show the images in a flash. Basically a slide show, but I have one problem the images have to be preset to the following side of the document its self. So I added the following code so the images can re size:[code]
How would I do a text movie like the one on this home page? http:[url]....I've tried before, but have had no success. I can create the swf file and fade images in and out. In the past I've put one line of text on one image, then another line of text on another image, but when I fade the images in they just cover up the prior one.