alexviii
Jan 21 2007, 09:39 AM
hi everyone, I'm creating a flash movie with the objective of arrange fotos. Almost as a slider show. This .exe file will be inserted in a CD with all the photos. Now every photo in a specified album, have o figure in the bottom and only the one selected in he center, bigger. In order to do that I tried to create, with an XML file (where photos are listed) and a for statment, a mc that contain: a Loader an a transparent button. The button is needed to make the photo selectable. and in the loader the photo it self. I have so the following Actionscript: CODE function assignsmall(){ function loadXML(loaded) { if (loaded) { var xnRootNode:XMLNode = this; nTotalButtons = xnRootNode.firstChild.childNodes.length; for (var i = 0; i<nTotalButtons; i++) { var path= xnRootNode.firstChild.childNodes[i].attributes.jpegURL; var numero= xnRootNode.firstChild.childNodes[i].attributes.num; var imgname= xnRootNode.firstChild.childNodes[i].attributes.imgname; var position= 120*i +240; loader= "load"+i; button= "btn"+i; trace (i+". "+path+" - "+numero+" - "+imgname+" - "+position+" - "+loader); loader.contentPath= path; } } } var xmlData:XML = new XML(); xmlData.ignoreWhite = true; xmlData.load("slides.xml"); xmlData.onLoad = loadXML;
} I have here a problem: When I says CODE loader.contentPath= path; the Actionscript will look for an mc called "button". But what I need is that it refere to the string: CODE loader= "load"+i; because there will be more mc called btn1, btn2, btn3, etc.. How do I do? I tried also with setPropriety() but also with this the sintax is nameofmc .setPropriety(). If someone knows how to do that please contact is urgent.. PS: if I wrote the topic in the wrong forum, I m sorry: I didn't find any forum about flash.. 10x, bye.
Reply
Recent Queries:--
flash actionscript help - 107.15 hr back. (1)
-
flickrviewer help - 146.94 hr back. (1)
Similar Topics
Keywords : flash actionscript urgent- Flash Problem
- sometimes the buttons will load the wrong link. (9)
Its weird but sometimes when you hit the forums or roster button on my flash banner it will load:
www.childrenofconan.trap17.com/index.html instead of what its suppost to. It works fine, but if you
mess around and click the buttons for a little bit you will notice this happening. This is a problem
because people visiting the site will sometimes click the button once and be like oh I guess the
link is broken and never come back, if anyone has a solution to what could be the problem it would
be awesome. This is one of my first custom flash banners and im just confused what...
Print With Flash And Datagrids Without Resizing!
- (3)
hey hi guys..this is a code i used to print data from a datagrid and it is so useful in ur RIAs hope
it helps... cheers! CODE mybtn.onPress=function(){ doPrint(mydg, true) }
function doPrint(datagrid:mx.controls.DataGrid, fitPage:Boolean):Void { if
(fitPage == undefined) fitPage = true; var pj:PrintJob = new PrintJob(); //
position of currently visible rows stored var prev_vPosition:Number = datagrid.vPosition; var
prev_width:Number = datagrid.width; var prev_height:Number = datagrid.h...
Flash As3 Question
- Alternitives to root (0)
Flash - Streaming Flv With Interactible Objects
- Actionscript 3.0 - syncronising swf with flv (3)
Hi Guys, I am trying to make a flash based web site. The idea is to have a flv video streaming
which has people moving around and the people need to be clickable objects. I tried tracing the
video by importing the flv to the flash time line and creating a button that follows a person in
each frame. I then remove the flv video from the timeline and stream it using actionscript. This
leads to synchronization issues. Does anyone know if this combination of swf and flv has ever been
implemented? If so could you please refer me to the source or post a link to an example, i...
Actionscript : Using Loadvars() Online.
- I need help with using LoadVars(); online. (5)
http://revolutions.ifastnet.com/misc/myText1.txt: CODE myVariable=How are you
today?&money=10000 Actionscript: CODE var myData:LoadVars=new LoadVars();
myData.onLoad = function () { thelist.addItem(this.money); }
myData.load("http://revolutions.ifastnet.com/misc/myText1.txt"); Now in my
list component on my flash stage, when i run the .swf, where the money variable 10000 should be, it
just says undefined,undefined. When i run the .swf from my local home directory, it says undefined
and doesn...
Need Sugation About Flash
- (4)
I was informed that in web programing Flash is more afster then Java applets or animated images. So
that I am thinking about Flash. Now I know that there are many tutorial are available in www. Now
can any body help me from where I should start. However I have some question on my mind Is it
difficult to learn? What tools do I need to install? Can you recomended any tutorial? And
finally my question is why flash is so famous, is it because of it is faster or have there any other
reason?...
Playing Flash Movies Without The One-click Activation: Simple Insertion Of Javascript
- (3)
In the past year or two iternet explorer and other browsers have updated their coding platforms.
The bad thing is that if you have any flash objects at all within your web page you have to hit the
space bar or click on the flash object to activate it. Once you activate it, you then can interact
with the object or the object will then play on the website. I dont like how you have to activate
the flash player first to interact with it. here is the code to prevent that. Believe me people
notice how much better the site is after you do this. put <script type="text/java...
Flash Coding
- (1)
I don't know if this is the right section, but does anyone know how to do flash coding and/or
know a good site to learn it from? I'm trying to make a game like Naruto-Arena . One of my
friends told me it was made using flash coding and thats why I'm trying to learn it....
Move The Movie Clip In Flash
- Use the arrow key to move the Movie Clip. (2)
Movie Clip 1.Create a Movie Clip and draw a Rectangle or your design in the Movie Clip. 2.Come Back
to Scene 1. 3.Select the Movie Clip and set them instance name = “movie”. 4.Select the first Frame.
5.Press F9 and Copy Code Below and paste it. CODE setInterval(function () { if
(Key.isDown(Key.RIGHT)) { setDirection(0); _root.movie._x +=
3; } if (Key.isDown(Key.LEFT)) { setDirection(1);
_root.movie._x -= 3; } if (Key.isDown(Key.DOWN)) { ...
Flash
- (3)
Can anyone recommend a book or online guide to flash. i am currently designing a new website, and
with it, i would like to add flash and all that jazz (kinda like this website ). i want to get an
good understanding of flash and other things like flash so i can create and design flash based
websites....
Contact Form Actionscript
- help needed (3)
please I need help for an ActionScript to use for the contact form in a flash website I'm using
Flash MX 2004......
Flash Vs. Java Applets
- (2)
As I started to learn Java, I came across a tutorial for making Java applets. As I read on, I found
some similarities between Java applets and Flash movies. Right when I saw the source code for a
checkerboard picture made in Java, I said to myself, Flash beats Java applets big time! It also
took a while to load such a small applet when in Flash it instantly loaded. In my opinion, I think
flash beats Java applets when it comes to convenience, appearance, load time, animation, and more
(except AJAX). Here are two articles, first supporting java applets and the other ...
Flash Tutorial : Realistic Ball Movement
- Flash Tutorial (0)
QUOTE Hi In this tutorial I am going to show you how to make a ball move around the screen
realistically and if the ball hits a side of the stage it will bounce. Background colour white.
550x400 50 fps The first thing you need to do is draw a circle on the stage (50x50) then select it
and press F8. (You may want to put a line or something through the ball so that you can see it
rotate). Set it as a MovieClip. Now double click on the circle to edit it, position the ball to be
in the very center. Now go to the main screen and click on the first frame and open the ...
Flash, Sqlserver And Asp
- (0)
Hi everyones,
I going to bang my head because I have been trying to show SqlServer 2000 data in (Flash Mx
Professional 2004) DataGrid I am working with ASP.NET but I am still unable to...
Here Is A Really Good Flash Tutorial Site
- (7)
This site is the best for creating different flash elements and just learning to use macromedia
flash in general. Click on the link below and you will be taken to step by step tutorials for many
different flash objects. Flash tutorials ...
Flash Player Simpleviewer Using Flickr And Picassa2
- (0)
Ok i was told that I can dynamically upload my pictures using flickrviewer. I want to upload them
to simpleviewer or a flash movie like simpleviewer. Right now what I do is use Picassa2 and make a
flash movie with my pictures everytime i add new pictures. That is kind of a pain. I wanted to see
if there was any way to dynamically insert them into the flash movie or if anyone knew how to use
flickrview. I can't get it to work. here are the links to simpleviewer link and flcikrviewer
site and flickr site . ...
Actionscript
- -need help plz (2)
Can anyone help me out with a flash file externaly refreshing an html page, and gathering
information from a database there, without the user seeing this. This means the loading bar on the
page the flash is on CANNOT be loading. I need to make an avatar chat, so when you move around it
shows up on other people's computers. P.S. If any admins see this post, can you please create
an action script subform? ...
Macromedia Flash
- Who has ever used Macromedia Flash? (9)
On Christmas, a relative of mine purchased Studio 8 from Macromedia, which is now Adobe. However
when first running Flash 8, I was very confused...for all people who have ever used Flash, how do
you make the images move? I tried following the tutorial, and tried "adding a motion tween", however
I can't get it to work... /sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' />
Thanks in advance! Stephen...
Actionscript For Newbies
- (2)
To make a new variable (declare a new variable): Type the statement: var x; where x is the name of
the variable; To put some data in already made (declared): x = " data "; The statement must end
with a " ; ". ...
Appeal For Flash-related Help [kinda Urgent]
- I could use some help! (0)
I need a tiny bit of help with some flash files. I have taken up a project in php that I did not
expect would involve any flash editing, but I am dealing with already existing .swf files that make
calls to various php files. Now, here's the situation: I don't have the .fla files, only
.swf. So I need someone who has access to a flash decompiler who can possibly help me out. After
decompiling the files, I require that all the links/calls to php files, which are made using
relative paths/addresses, be changed to absolute paths, like change something.php to www.som...
How To Get High Quality Gif Images In Flash
- (0)
Step 1- Make the Animation Get your animation ready. Make sure not to use any Movie Clips with self
contained animation for it will be lost in the conversion to an animated gif. Step 2- Publish
Settings Now that you have your animation you need to go to Publish Settings under File. Now
uncheck all of the boxes except for gif. This will not effect you if you usually preview your movies
by the Test Movie feature. If you do use Publish to preview your movies, simply recheck the .swf box
after this tutorial. Now click the only remaining Gif tab at the top of the box. N...
How Do I Start Making My Website In Flash
- Can't find tutorials in google :( (11)
Hey everyone, I began making my website with Firworks, and Dreamweaver. But I really want to know
how to make a website with Flash. I understand with this program you make 'movies'. I have
done some tutorials too, and I get that. But what I want to know is, if the content in the different
pages (like home, contact, links etc.) have to be one movie? Or do you use other programs. Like
this site below, it's a beautiful site of the Luny Tunes (reggeaton music artistgroup): Luny
Tunes But is the whole site a 'Movie', or is there some HTML in it as w...
Flash
- (1)
Does anyone know of a site that can teach you how to use it? Like i would like to read up on it and
learn how to do it myself. I am just looking for a site that has turtorials and maybe software that
i can test it out on and see how i do before i purchase anything. If anyone can help with this
please let me know here, ty very much. -Storm...
Looking for Flash:, Actionscript, Need, Help
|
|
Searching Video's for Flash:, Actionscript, Need, Help
|
advertisement
|
|