ActionScript 2.0 :: Change The Location That The Pics Are Called From?
Jul 18, 2004
How does one change the location that the pics are called from?
The xml path was easy for me because there is a path type that I'm familiar with -- gallery_xml.load("whateverHERE/gallery.xml");-- but I just can't see where to put the path to pics. I saw a path built into the xml file example I used -- <gallery path="whateverHERE/"> -- but that doesn't seem to effect anything. As it stands, the code below requires the pic's to be in the same folder as the .swf.
spacing = 10;
bar._visible = false;
containerMC._alpha = 0;
var pArray = new Array();
[Code]....
View 6 Replies
Similar Posts:
Nov 13, 2009
I have this code in a function to change the colour of a mc called Tab1. It works fine. But when the mc is tweened it doesn't move. If I don't change it's colour with this function it tweens fine. What have I done wrong?
[Code]...
View 3 Replies
Mar 26, 2009
I have a flash file that calls a XML file to give it commands, such as color etc...
I want to change the name of the XML file, but am not sure how to change it in flash so that the SWF knows where to find the XML.
View 2 Replies
Sep 23, 2009
How can I change the location of the src folder? Right now I can just move the src folder from the navigator to some other location, but it's not being referenced as the src folder. (it doesn't have the square-ry icon on the folder icon)?
View 1 Replies
Nov 14, 2007
How do you change the home location inside a symbol?The little crosshair that denotes the 0,0 x,y inside a symbol? Yea I know its a noob question, i've tried searching!
View 1 Replies
Apr 14, 2012
our teacher asked us to do a class project with Flash and I decide to do a demonstration for the different kinds of sorts and for that I need to show this procedure step by step: 1 - compare two elements of the table 2 - exchange their location in case of verification of the condition yet I managed to create a table and fill it with random number i alos did the exchange of the two first elements
here is the code :
[Code]....
View 5 Replies
Jul 7, 2010
The normal structure is:
project/
bin-debug
html-template
libs
src
I want to change it to:
project/
bin-debug
flash/
html-template
libs
src
I know how to change the libs and src folders, but not html-template. Is it possible?
View 1 Replies
Feb 22, 2012
I have a .net client app that needs to play some content (images, movies, swf files etc) on the client machine. What it does is download the content from a server to the HDD in a folder, and play it. BUT: the SWF file has a need to read RSS from the web, and what i need is the folder where the app content is kept to be added in Trusted Locations (what you regulary do when right click .swf file, go to Global Settings > Advanced tab, and Trusted locations.. button, and specify a folder.
Now, i have searched the web, and there is a place where this is saved: :Documents and Settings\Application DataMacromediaFlash Playermacromedia.comsupportflashplayersyssettings.sol, however, i don't know if this is changeable from another app : eg. when my .net app is installed or started, that it adds the folder to trusted locations, so that the SWF would be able to play RSS from web.
View 1 Replies
Jan 30, 2004
I am trying to make a flash movie and have it find a external movie to show. I also need to be able to change the location of the video without flash, so I think I have to use a seperate .as file.
View 6 Replies
Jun 18, 2009
Everything works perfect but i need to change the way the MP3 file is called on. I'm brand new with AS3 and XML but have a PHP background so I attempted to understand the script and have not had any luck. The index.htm file displays a very simple music player which calls on the button_mp3_player SWF. The FLA has a portion of code that calls on an XML file to load a particular song. What I need to do is remove the XML file completely and define the MP3 file name in the index.htm. I assume some AS3 code needs to be altered so that it does not call on the XML and also that the index.htm code needs to be altered to define the MP3.
[Code]...
View 4 Replies
Apr 27, 2009
I am trying to make an object tween from its starting location to the location of a mouse click. I have a script, but it has a very annoying ease to it.I would LIKE the object to mantain a certain speed during while traveling from its starting location to the mouse click location.
View 16 Replies
Apr 12, 2010
I want to load an external swf called 'signs.swf' into an empty mc called 'signholder'.
var loadit2 = new Loader();
loadit2.load(new URLRequest("signs.swf"));
signholder.addChild(loadit2);
Everything works. Cool. But, I now want to target something within the signs.swf. How do I do it though? What is the path? Do I have to give the child of signholder an instance name? Everything I try fails.
If I wanted the root timeline of the external swf to gotoAndPlay(2) for example,...would i say...
signholder.loadit2.gotoAndPlay(2) ???
var wow:MovieClip = loadit2.content as MovieClip;
wow.gotoAndPlay(2) ????
View 3 Replies
Aug 21, 2011
I created a simple button that displays an error messeage: "error opening 'url" when I test the movie, but does play and opens in browser after publishing. However, it won't open in the browser in a different location. I pasted the html code in a web page but it doesn't work there nor opens in the browser in a differnet location from where it was originally published and saved. Why is that?
View 13 Replies
Oct 30, 2007
I am having issues with startDrag(). I have a movie clip called circle. Inside circle, I have a movie clip called circleFill and another called circleOutline.onEnterFrame, this movieClip is duplicated 4 times.
When I use this:
private function onPressNow(event:MouseEvent):void
{
startDrag();
}
IT DRAGS ALL 4 MOVIECLIPS.
[Code]...
how can I make it drag my movieClip called circle? (meaning both circleFill and outlineFill)
View 8 Replies
Oct 24, 2011
i have a box called infoBox that contains a text field called caption. infoBox expands on mouse-over. When it does so, I do not want the text in caption to scale up - I want it to stay at 11 pt. So far my code to prevent this from happening is not working:How do I fix this?[URL]..
View 2 Replies
Nov 7, 2004
My goal is to change the time for setInterval each time the function is called. Planning to replace myInterval = 5000; with a randomized number. My problem is getting setInterval to recognize the myInterval variable from the function.
[Code]...
View 2 Replies
Apr 5, 2010
I need to change the default location of VOD media files from opt/adobe/fms/applications/vod/media.what I did:1. Created a dir test under default "media" dir2. Placed my f4v files inside "test" dir3. Modified applications.xml as follows:
<Application>
<StreamManager>
<VirtualDirectory>
[code].....
View 3 Replies
Jan 30, 2004
I am trying to make a flash movie and have it find a external movie to show. I also need to be able to change the location of the video without flash, so I think I have to use a seperate .as file.
View 6 Replies
Feb 16, 2005
How can I move my MC from one location (x, y) to another location (x1, y1) wirh action script..?.. and I would like to have my motion tween rounded to (x,y) so it will look sharp.
View 8 Replies
Sep 24, 2011
I am new to flash CS5 and I am having a problem creating a character with multiple parts.My problem is. I created the character parts in PS: CS5 and save it individually as PNG with transparent background, but when I Imported it to Flash CS5 and applied a bone on it and test the bone. The image is messed up and as I realize that the individual png transparent image has a background.That's why the imae pic is distorted, messed up.I know it's hard to imagine so I post a pic.As what I have said. It is only an example screen cap of the problem.When I apply a bone and test that is the result.I am unable to draw in Flash cause it's different from PS which where I draw the chars, parts, and everything.
View 12 Replies
Mar 29, 2009
I have set up an animation that displays icons on agrid. Right now everything is working ok.I have an array of 4movieclips that are randomly selected to display on the screen.Each has a timeline that brings it from alpha 0 - 100. So far, soood.Now I have to add the remaining 200 icons. Now of course Icould make 200 more movieclips and add them all to the array butthere must be a better way, right?I thought I could just have just one movieclip and switch thepic out from an external xml list. But if I import them they won'twork with the alpha transition because they aren't movieclips,right?
View 3 Replies
Jul 2, 2009
I am trying to develop a way to load and unload pictures and zoom in to them in a dynamically way. This is done with the idea to save space in memory for further use. I was helped by Dawsonk a while ago and we came to this code:
[Code]...
View 0 Replies
Nov 11, 2010
ActionScript Code:
import flash.filters.GlowFilter;
import flash.filters.DropShadowFilter;
_global.gallerynum=1;
[code]....
There are 3 pics each in FASHION SPORTS and BEAUTY catergory and 10 and 5 in ENTERTAINMENT and COVERS respectively. All is ok but when i click on FASHION or other categories having less pics the pics from the earlier categories ( e.g. ENTERTAINMENT ) wont leave the stage. Also the unLoadGallery() function is giving an error message that ' This code is making flash to run slower. Would you like to stop this script?'.
View 8 Replies
Apr 3, 2011
I want to show images in holder1_mc holder2_mc and holder3_mc holders in my fla I would like to use XML but just inserting jpgs would do.
I tried using a variation on lee brimelows xml but get "Scene 1, Layer 'Actions', Frame 1, Line 1 1152: A conflict exists with inherited definition flash.displayisplayObject.x in namespace public.If i just Use jpgs how do I get this effect :
Code: Select allvar my_loader1:Loader = new Loader();
my_loader1.load(new URLRequest("myPhoto0.jpg"));
addChild(my_loader1);
[code]....
View 3 Replies
Apr 15, 2010
I am loading XML file with images and text. I am resizing the pictures so I have to add an additional loader just to do that. By the time the images load, they are in different order than the XML file (cause it took time to load), which means it also throws my text off. Prior to loading, I place all the text of the images in an array. But when the images load, the array no longer matches the images loaded because they loaded randomly, rather than in order.
Code:
picData = new XML(e.target.data);
my_images = picData.image;
image_text = picData.image.@name;
[Code]....
This loads all of the pictures fine, but again I can't make the picture match the text because the text array has no idea what image is being loaded first.
View 1 Replies
Oct 8, 2009
I downloaded a flash spread gallery [URL]which uses a xml file to designate the pics to be used. It is very cool but it is kind of a pain as I have to manually type each pic name in the xml file. Is there a way that I can modify either the xml or the fla to just pull the pics from a folder? Maybe two folders one for the pics and one for the thumbs?
I would like to just dump a bunch of pics in a folder and their thumbs in another and have it automatically just post them.Attached is the fla and the xml (and a .js file) zipped.flashmo_185_spread_gallery.flaflashmo_185_photo_list.zip
View 3 Replies
Jan 27, 2009
I am trying to make gallery of images located on server(local folder currently). I put pics in loader or grid. But I wouldlike to make action script which with on button click will takepics names as array from this folder and will great gallery. Thisfolder will be updated very often.
View 1 Replies
Jun 2, 2009
Im working with two apps trying to combine them into one. i have a xml as3 app that displays pics with discription next and back button. Then i have a dynamic horizontal scroller nav that displays thumbs and scrolls based on mouse position this too works ecept loading the thumbs. What i want happen is to combine them in one app where the nav would float under the xml pics and once you click on a thumb from the nav it pushes it in the xml loader file..
Im getting stuck at loading the thumbs in the nav...the xml file already calls all the nessary thumbs i have them pushed in its own array this array is availble on root or main timeline...i need to point the the nav loader (which has its own timeline)to pull from that array.
View 1 Replies
Dec 17, 2010
just starting AS and tried making a slide show for sponsors of our sports site. Basically it reads an XML file that contains the sponsors logos and blurbs loads them into MCs and slides them rotating. The XML has 14 entries that are like ...
[Code].....
View 3 Replies
Mar 7, 2010
I'm dynamically calling pics in from another folder on my site for a slideshow. And it works up to pic #9. But any number over 9 and it wigs out. The naming convention I'm using is panel1, panel2, panel3, etc. Is there a trick? Do I need to use panel01, etc? If so, would that then be panel010 for #10?
View 3 Replies