How To Mix AS Element Creation And Direct Creation From Flash GUI
Hello,i'm pretty new to flash but i have a decent level of c++, when i create a flash doc , i put evrything in a separated Main.as file and i create all elements "programaticly" like: attachMovie("TextArea", "m_text", 0);m_text._x = 10;m_text._y = 100;m_text.setSize(400,200);m_text._visible = false;but this is very slow as i have manualy set all the coordinates of all elements , their size etc .What i would love is to be able to :drop a text area in some frame , resize it and make it nice set all its 'visual propreitys'then when i attach the movie from my Main.as it inherit all visual propreitys.I'm realy happy of my approch to put evrything in Main.as i want to avoid at any cost going and hiding ActionScript all over fla frames, so i just need to solve this and my live will be c++ again :)thankssorry if the message is not clear , i'm realy confused with flash "logic" .
Adobe > ActionScript 1 and 2
Posted on: 05/05/2007 02:40:34 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
A Flash Creation?
Thank you much for any help, comment.
What program was used to create the top part of this page?
http://onlinecounseling.lbcc.edu/cou...selinghome.cfm
What is used to make the images change and fade in and out?
What program is used to show the upper right-hand mask, with the motion effect in background?
Thank you for your help.
Flash CD-Rom Creation
I need to make a simple CD-Rom. I know that this can be done using flash MX. Any suggestions on finding doccumentation on how to do this???
Thanks for your suggestions.
Is .exe Creation Possible In Flash?
Hi there,
What I'm looking to do is a sales presentation with customisable features. The user (salesman) needs to choose certain txt files and jpegs from his local machine, and use these to populate a prebuilt presentation. Ideally this would run as an exe file, and then output another exe file that has all the customisable parameters specified for successful running of the presentation from any machine.
Is this possible from within Flash, either independently or using a third party utility? I am an intermediate actionscript programmer/designer, so any hints or demos would be much appreciated.
I hope this makes sense, and if you have any questions then please post em.
Thanks very much for your time.
Mr P
Is This A Flash Creation.
Greetings all. Have been trying to find out what program was used to create this movie. The total lenth is about 5-7 minutes all just like this clip I pulled out.
http://s3.photobucket.com/albums/y88/AcomaSoulskinner/?action=view¤t=Comp1-1.flv
If so, i have flash and will try to work on putting something like this together but I am really new to Flash so any insight or direction would be MUCH appreciated. Thank you all and I hope that one of you will be more in-tune with the flash program and able ot point me in the right direction.
Using Flash For Dynamic .pdf Creation
Does anyone know whether it's possible to "save" a flash movie as a .pdf?
In other words, capture a snapshot of a flash movie, and save it as a .pdf?
I know its possible to have a flash movie pass a bunch of variables to a .php page which uses them to dynamically generate a .pdf, but i'd like to capture an exact "screenshot" of a graphical flash movie.
I'd even be glad if I could save a flash movie as a bitmap or .jpeg.
Any insight or advice would be greatly appreciated!
Cheers!
Advanced Flash Creation
I would like to create some effects like the sites below but I don't know where to begin. Are these effects created in FlashMX or other programs?
http://www.diebold.com/solutions/atms/opteva/
(The initial drawing of the borders)
http://absolut.com/content/metamorph...orphosis.aspx?
(Click skip intro. The everchanging organic mask)
Flash Game Creation?
I'm creating a system that will use flash games. I'm wondering if I can find a flash game creation program that specifically designs games in swf .. I also need the ability to export a few variables with it on game completion (for the system to use).
thanks in advance for any help..
Help With Character Creation Flash App
I've been asked to create a Flash program which creates a customized "funny face" depending on the criteria selected by the user. Once the features have been decided on by the user, then the "face" will be saved out as a .GIF for use on the users profile on our site. I've only seen it twice on the net, and forgot the links to those sites. I have no idea where to start. I know how to use Flash, but this is on an entirely new level for me. Has anyone created something like this before? I would appreciate any advice, thanks!
Problems With Flash Ad Creation
I am trying to figure out how to create a Floating/Transparent Flash ad.I also want to be able to insert code that will allow me to show the ad X number of times. How can I achieve this?
Also how can I make the edges transparent? Or Can I possibly make the add a specific shape....as opposed to the standard four edges (trying to make an "x")
I need some major help obviously, and any that is offered would be greatly appreciated.
Dynamic Flash Creation
Newbie Question...
I have video that I would like clients to tag with their own text at the end (personalize) and then download and play as a SWF without having to load an XML or CGI from the web. Basically, they fill out a form, preview and then download a self-contained SWF for their use on their computers. Possible?
Thanks,
-Matt
Flash CS3 Components Creation
Hi, everyone.
I'm trying to create a component for Flash CS3 - ActionScript 3.0 and I want it to behave exactly as the ones that came with Flash, meaning that when I double click on my component on the stage, I want to be able the edit the skins it uses. So far, I managed to create the component (the .swc file).
Can anyone tell me how to add the component assets to the Library when I add my component into the Library? And how to be able to edit the component's assets by double clicking on the instance on the stage ?
Thank you.
PS: I couldn't find any documentation on how to create AS3 components for Flash.
Slideshow Creation In Flash
How's everyone? I am new to Kirupa and Flash. I'm using 5.0 (hopefully upgrading to Flash MX). I needed to know if anyone has instructions on how to design slideshows. I was thinking that it would be the best way to present my print work. To be a little more specific, something in which I can have a background of my choice, some clickable buttons designed in Illustrator or Freehand to move from slide to slide. Can anyone help?
Thanks,
SB
Flash Creation Question
Hi to all,
This is my first post. Can Flash 8 generate the action with the panning and the slow fades on the www.bso.org site (Boston Symphony) ?
Thanks much.
Where Can I Get Flash Creation Program?
I'm interested in getting some Flash creation software. Are there any good free programs to download over the internet?
Or even demo versions of good programs to buy?
Thanks
KJH
Object Creation In Flash
I'm creating objects from an XML file (code below)
my problem is: How do I evaluate "level" and "parent" so that they are seen as objects ? I have tried eval(parent) but with no success
This is the call with xml (variables are dynamic)
level = new mMenu(name,url,parent); # as is
This would be the code without xml
tA = new mMenu("Alpha","","");
dLevel = new mMenu("myname","www.home.com",tA);
tooltip = rootChild.firstChild.childNodes.childNodes.toString();
tooltip = urlDecode(tooltip);
level = rootChild.firstChild.childNodes.attributes.level;
name = String(rootChild.firstChild.childNodes.attributes.name);
url = String(rootChild.firstChild.childNodes.attributes.url);
parent = rootChild.firstChild.childNodes.attributes.parent;
level = new mMenu(name,url,parent);
Dynamic Flash Creation
Hello Friends ,
I am a newbie in the Flash World.
Would like to know more about the online flash banner making.
I like few sites those provide online banner making and then send the banner for free to you via mail.
It is really a nice concept and i would like to know if any one has the idea about how that can be done.
Very much interested in learning flash in that direction.
Thanks
Creation Of Dynamic Table In Flash
Hi,
My requirement is to load the datamic data from server and show it on the flash.
I have to show it in a tabular fashion.
Can anybody help me how to show data in a table format in flash
regards,
Raja.
Modifying Flash Html Creation...
I have for sometime now been writing a web application that writes HTML. Flash can do this quite well with most things.
To do this I have had to write a short function which removes the <TEXTFORMAT> tags and converts the text sizes to CSS as the sizes used in flash are pixel sizes, ( which can only be specified in CSS )
I thought I had about solved most of the big problems. However I have started alpha testing this flash app only to discover flashes annoying habbit of turning every carriage return into a new paragraph, but displaying it like a line break.
I have tried two things to solve this.
1) searching the final output and replacing paragraphs with <*br> tags. This hasn't been too successful as it tend to remove style as well.
2) intercepting the enterkey and inserting my own code. This hasn't worked because flash doesn't seem to let you modify the html content of a text field.
Does anyone have any ideas, or if you have done it but you dont want to tell me how, let me know anyway as it will at least keep my hopes alive.
PLEASE PLEASE Help, Forum Creation In Flash 2004
i want to make a forum in flash, i have seen it done, but i dont know how to do it...can someone please give me the code to do it...or give me a tutorial on how to make one....
Thanks for any help
Tyrone
Form Creation And E-Mailing With Flash+PHP
Hi,
This is my first post to this forum.
Your website is excellent..please keep it up your good work.
Dear Friend, I am not very well at Flash. I have one problem. I know that you will help me out. This is my college project.
Now lets concentrate on problem.
I have 3 controls on Flash Canvas.
1. DropDown ListBox or ComboBox -> Contains City Names.
2. Text Box -> To input user name
3. Text Box/Text Area -> To input message
4. Submit Button.
5. TextArea - Showing Information about City selected from dropdown list.
Now the problem begins.
Dropdown Box contains city names like..
-London
-Paris
-Washigton
-Delhi
When user selects a city name..
Like -London from the Dropdown List
and enters his name in the textbox and message in textarea
Then the City information should be seen in the last Textarea or Text Box.
Means if London is Selected then Bottom TextArea should contain England.
If Delhi is Selected then Bottom TextArea should contain India.
And the next query is..
We have some value attatched to cities from begining. (Variables Declared)
-London = Hotmail.com
-Paris = Usa.net
-Washigton = Yahoo.com
-Delhi = Rediffmail.com
When user selects a City Name from Dropdown and Enters his Name in the Textbox then a E-MAIL with Message should be sent as..
TextBox1@DropDownListData.com
where
TextBox1= username
DropDownListData = CityName = Mail provider.
Means If user selects the city London and enters the user name as Ashwini then the e-mail with the message should be sent to..
ashwini@hotmail.com
(as London = Hotmail.com)
I think you understood it.
I know it is not possible to send e-mail to unknown mail Id person.
But what to do I want this code.
Please help me.. I will be very thankfull to you.
Thank You
Local File Creation From Flash
Hello All.
I need some help in creating an HTML file from flash that i would then be able to show in a web-browser. This is a local operation only... is this possible? All i am looking for is how to create that file dynamically so that it may be shown.
Any suggestion in the right direction will be appreciated.
Alina
Flash Creation Program Suggestions
I'm looking for an App to build Flash stuff. Things like Product Tours, Banner ads etc. My initial requirements are pretty basic, but I don't want a product that is too limited in its feature set. I'm especially interested in apps that don't have a steep learning curve as it is something I'll only use infrequently.
I've looked briefly at: SwishMax, Koolmoves, ******* SWF Quicker and CoffeeCup Firestarter.
SwishMax is probably overkill for me. I haven't downloaded KoolMoves yet but there presentation looks good. Didn't think much of SWF Quicker or Firestarter.
None of the ones I've tried had fancy looking text. Sure they had lots of text effects but I'd like text smarter than just plain unadorned fonts if possible.
I await your suggestions.
[CS3] Assistance With The Creation Of A Program In Flash
Summary: My project deals with the emphasis in understanding one’s body image and its relationship to perceptual and actual. Essentially I am creating a user-interface within flash that allows users to create either a perceptual or actual image of how the user wishes to see themselves.
Objective: Create, using flash, actionscript and php or xml a program through which a user visiting my website can interact with themselves and others.
Components that I feel are needed in this project:
•The ability for users to login to the flash file and have their ideas saved.
•The ability for users to upload their own images into flash and have it appear, almost instantaneously for them to use.
•The ability for users to see what other users have created and comment on their creations.
•The ability for users to drag, drop and resize their creations.
Ways I have considered doing this:
•Creating the upload function simply in php and xml into a mySQL database and then having flash access the files once the user logs in.
•Creating the upload function in flash and php and having everything self contained in flash.
I have been on several websites, such as flashkit.com, ultrashock.com, actionscript.com amongst others. I have tried several different methods of creating these various functions, however I have only been successful in the most basic thing I have listed above, which is the drag-drop-resize function.
Any help would be greatly appreciated! I would like to just say that my experience with all coding languages (actionscript (1.0-3.0), java, etc.) and other languages such as php and mySQL databases are extremely limited. Essentially, I am a beginner/newbie at this type of stuff and am in way over my head.
I would also like to iterate that I am not looking for someone to necessarily create this for me. I am hoping that there is someone willing to walk a n00b through this. The past two months have been a nightmare for me with php/mySQL and my server, as well as Actionscripting.
Thank you ahead of time for your help!
[F8] Flash Noob Looking For Help With Sidebar Creation
Hi, I'm brand new to Flash, and not very strong with HTML
I'm building as Framed website for a gaming guild, and I'm
hoping to build a Flash animated sidebar.
I need to be able to have an image for a background, with images
for the buttons, which when pressed all dissappear and the new buttons
for the appropriate category will appear using some fancy animation.
and when one of those buttons are pressed it will need to Open a link into
a targeted frame.
if anyone would be so kind as to point out a few tutorials to teach me how
to do this, it would be much appreciated.
I'll learn anything I need to, I'm a quick study.
Thank you in Advance
Workflow Of Flash Website Creation
I am getting back into web design after taking a few years off, and now that Adobe CS3 has all the tools I use in one place, I am trying to come up with a workflow of the best way to take my design from my sketch on a piece of paper to the web. This is kind of my flow chart right now, but am interested in how others do it. I like to learn from the best.
Design in Photoshop and save as a .psd file, then import to stage in Flash. I leave the text "buttons" out of the import, then re-create in Flash. When I am done, I publish the .swf and the .html, then upload those files to my web server. Does that sound about right? Or, would it be better to slice up the image in PS, then import to Dreamweaver, and insert the Flash?
I did a lot of work with After Effects when I was editing videos for people, and I was also wondering if I should create animation using AE, then import that into Flash and save as a movie? I am much better creating animation in AE then Flash, and I find it not as frustrating, and I can do a lot more with AE.
I am tasked with creating a web site for a close family friend for a 50th anniversary. My wife "volunteered" me for this, which means lots of work, minimal money. Love those! It doesn't have to be done until January, so I have lots of time to prepare. I am "storyboarding" this now, but just thought I would ask you guys the best way to get this published.
Thanks.
Dynamic Flash Video Creation
We are creating a website where we would like the user to upload 6 JPEGs and an audio file (such as WAV) that the webserver then creates an FLV video file from. This FLV video would slideshow the images and play the audio that was uploaded along with it.
I know this is easily accomplished using Flash and Actionscript, but we are looking to create an actual FLV video because we need the ability (on a *server* level) to convert the resulted video into other formats such as MPEG or AVI. Perhaps it is possible on a server level to convert an SWF file with actionscript instructions into an FLV file?
Does anyone know of any webserver-level software or way to accomplish the above? Is this a function that is somehow usable through Flash Media Server? Any help is greatly appreciated!
Full Flash Website Creation
How long will it take an intermediate web designer to make full flash website? - ballpark - like the advancedStudios website
Dynamic Buttons Creation In Flash
hey all
i am currently working on part of the project where a query is being sent from flash to mysql (through php) and then, depending on the number of items in the table, it should create that many buttons in flash... in other words if it would just be php, it would be done something like this:
PHP Code:
for ($i=0; $i<$mysql_num_rows; $i++)
print "<a href='mysite_$i.html'> $i </a><br>";
and now i'm trying to do the same thing in flash... get number of rows from mysql and create that many buttons (clickable graphics - symbols). here's what i have so far for the frame that is loaded in my flash:
Code:
ifFrameLoaded (2) {
var browse_vars = new LoadVars();
browse_vars.action = "browse";
browse_vars.nname = _root.nick_name;
browse_vars.sendAndLoad("operation.php", browse_vars, 'POST');
browse_vars.onLoad = function() {
text4.text = this.msg;
};
}
stop();
this should call the php and get back the number of entries in the table. so far it just outputs it in the text4.text..... (or at least it should... didn't test it yet, but similar code worked for the other part of my project)
so if anybody has any ideas on how to create dynamic number of symbols, please help me... thank you...
Assistance With Creation Of Flash 'program'
Summary: My project deals with the emphasis in understanding one’s body image and its relationship to perceptual and actual. Essentially I am creating a user-interface within flash that allows users to create either a perceptual or actual image of how the user wishes to see themselves.
Objective: Create, using flash, actionscript and php or xml a program through which a user visiting my website can interact with themselves and others.
Components that I feel are needed in this project:
•The ability for users to login to the flash file and have their ideas saved.
•The ability for users to upload their own images into flash and have it appear, almost instantaneously for them to use.
•The ability for users to see what other users have created and comment on their creations.
•The ability for users to drag, drop and resize their creations.
Ways I have considered doing this:
•Creating the upload function simply in php and xml into a mySQL database and then having flash access the files once the user logs in.
•Creating the upload function in flash and php and having everything self contained in flash.
I have been on several websites, such as flashkit.com, ultrashock.com, actionscript.com amongst others. I have tried several different methods of creating these various functions, however I have only been successful in the most basic thing I have listed above, which is the drag-drop-resize function.
Any help would be greatly appreciated! I would like to just say that my experience with all coding languages (actionscript (1.0-3.0), java, etc.) and other languages such as php and mySQL databases are extremely limited. Essentially, I am a beginner/newbie at this type of stuff and am in way over my head.
I would like to iterate that I am not looking for someone to create this for me. I am essentially looking for someone with some extra time to sit down and be willing to help walk me through creating this stuff. I have been trying to learn this stuff for the past two months but it is nigh on impossible for me.
Thank you ahead of time for your help!
Is Flash Auto Thumbnail Creation Possible
Hi im just a noob in flash in fact i dont know flash >_< but something requires me to be here:
We all know thet it is possible to create automatically thumbnail when uploading images or videos( using mplayer ). but is it possible that when i try to upload a flash swf via uploader. A program will read the frames of the swf file and create a jpg of the frame saving it to the path specified.
This is done in video files via mplayer but not sure if i can do the same with swf files.
Purpose: Creating a gallery will support as many multimedia files as possible. With a thumbnailer so that all that the admin has to do is upload the file.
Thanks in Advance ^_^
Component Creation In Flash Mx 2004
Dear all,
I started up with developing a simple component ,
It contains two input text fileds and a button
i'm able to retrive updated text filed values on all the events like 'chnage','enter', but i'm unable to retrive the text values on button press
the code i have written in the class file is:
class text extends mx.core.UIComponent
{
var un1:MovieClip;
var un2:MovieClip;
var pwd1:MovieClip;
var pwd2:MovieClip;
var container:MovieClip
private var username:MovieClip;
private var pwd:MovieClip;
private var uname:MovieClip;
private var passworrd:MovieClip;
private var btn:MovieClip;
private var submititem:MovieClip;
function text()
{
trace("new texxt");
}
function draw(Void):Void
{
container = this.createEmptyMovieClip( "container_mc", 0 );
un1 = container.attachMovie("Label","username",1);
un1._x = 100;
un1._y = 100;
un1.text = "USERNAME";
un2 = container.attachMovie("TextInput","uname",2);
un2._x = 200;
un2._y = 100;
un2.text = "sss";
pwd2 = container.attachMovie("Label","pwd",4);
pwd2._x = 100;
pwd2._y = 120;
pwd2.text = "PASSWORD";
pwd1 = container.attachMovie("TextInput","passworrd",3);
pwd1._x = 200;
pwd1._y = 120;
submititem = container.attachMovie("Button","btn",5);
submititem.label = "Submit";
submititem._x = 200;
submititem._y = 200;
submititem.data = un2.text;
//submititem.data = pwd1.text;
submititem.addEventListener("click", handleEvent);
}
function handleEvent( event_obj ):Void
{
var str:String = event_obj.target.data;
trace(str);
}
}
in the component movieclip i placed a button,label,inputtextfiled components from the
standardcomponents.fla in the second key frame.
so, when i click on the submit button i want to retrive bothe the latest username,password textbox values.
can u PLEASE suggest me, as to how to change my code to make my component work right
I need help badly...., as i'm struck with this problem since long time
Thanks & Regards
Bindu
I Guess Frames (not The Right Word) Creation In Flash MX
Hello all,
Quick question that I hope is fairly easy.
I'm working on a Flash site for an assignment at school and I was wondering how people get 'frame-like' things to happen.
For example -- at http://www.2advanced.com they have the menu then the middle content part that loads, while the menu stays. I'm not actually looking for the loader part, just how to get the top (menu) to stay (and a footer possibly) while the middle of my flash movie changes.
Is this done just with scene duplication, or can you actually call scenes into the middle part. If this is possible is there an easy way to do this and how do you do it?
Thanks for all suggestions/answers
A Tough Flash Challange, Mp3 Creation And Exporting?
So I'm about to start working on a Flash powered music sequencer. The challenge? It must be able to export .mp3's of the created track. Anyone have and insight into how this might be done? I've seen it done in a few places but it's impossible to know how they made it possible. I've tried numerous forums, but no ideas thus far, maybe this one will be the charm?
Dynamic Flash (swf) Creation Of Prontable Artwork
Hello Friends,
Can somebody point me a clue on how to generate dynamic printable files with flash. here is the scenario.
I am doing an "Online Artwork Designing" application and I have done the front-end part of that and working fine. Storing the artwork and retrieving back to flash interface is working fine. what I want to know is is there any possibility to generate dynamic vector files (except swf) to enable the sending artwork directly to the press.
Thank you in advance.
-Nish
[MX04] Flash Banner Creation - Multi-SWF Interaction
Hi,
Would someone be kind enough to explain how it is possible to take one flash banner and interact with another on the same page.
For example I have a piece of animation that I want to start in one banner and move to a second?
Any examples - sites - would be great!
Cheers.
Server Side Creation Jpg Of Flash Movie At Runtime
I was on a site, where you designed your order using a flash movie.
When I finished my design, it appears that the server converted a portion of the flash movie to
a jpg image and the image was used on an html checkout page to complete my order.
Does anyone know what I need on the server side to convert a portion of a flash movie to a jpg image and save it on the server so it will be available for another flash movie or html page?
Because the information displayed during the movie will change based on the selection of the user, it must create this jpg image during runtime.
Efficient Ways For Overall Process Of Flash Website Creation
I'm now starting to get a pretty good grip on using flash and at the beginning phases of grasping AS, and through watching tutorials I've gleened some basic good setup practices, but this is certainly something I could use to see more of to get me started with good habits.
So, in the scope of developing a site from scratch, or even a smaller project, I would appreciate any tutorials that could be linked to me, or even if someone has some good fla's for me to look at and could also walk me through, detailing here, why its setup as it is and so forth, that would be amazing.
Also some general rules of thumb? Any links, generalities or fla's much appreciated.
Bug In Flash? (Creation Of A Style Sheet Object Is Undefined)...
Is it a bug in Flash or what? I had been struggling with problems until I found what cause the problem but are unable to make it work... I did the tracing and the variable test is returned as "undefined".
Code:
var test = new TextField.StyleSheet();
trace(test);
So, with further testing....
Code:
trace(new TextField);
showed it returned an new object values but
Code:
trace(new TextField.StyleSheet());
returned an undefined message. What so odd about it is that StyleSheet() is a defined actionscript function built-in with Flash. I'm using Flash MX. See the link at http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00001016.html#179266 . So, it look like a bug but how do I get the bug fixed or something??
Thanks,
FletchSOD
MC Creation
Hi,
I'm on a journey to make a website entirely made inside of one empty frame of actionscript. Very early I have hit a snag, I'm using AS2 by the way. I load info from an xml, inside the xml looks like this.
<xml>
<home></home>
<history></history>
<portfolio></portfolio>
<contact></contact>
</xml>
then my script on the first page looks like this:
var loader = new XML();
loader.ignoreWhite = true;
loader.onLoad = function(success) {
if (success) {
xml = loader.firstChild;
trace("success");
menue();
}
};
loader.load("data.xml");
//Control Variables
menueItemX = 0;
menuePadding = 10;
//Create Menu Container
var menucontain = _root.createEmptyMovieClip("menucontainer",this.ge tNextHighestDepth());
//Create menue
menue = function () {
for (i=0; i<xml.childNodes.length; i++){
//Create item container
var menue = menucontain.createEmptyMovieClip("item"+[i], this.getNextHighestDepth());
//Create textField in container and set properties
menue.createTextField("my_txt", 1, 0, 0, 0, 0);
menue.my_txt.autoSize = "center";
menue.my_txt.multiline = false;
menue.my_txt.wordWrap = true;
menue.my_txt.selectable = false;
//menue.my_txt.embedFonts = true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0xFFFFFF;
my_fmt.size = 30;
my_fmt.bold = true;
//my_fmt.font = "Arial";
//Write text from xml into menue item
menue.my_txt.text = xml.childNodes[i].nodeName;
//Apply text formatting
menue.my_txt.setTextFormat(my_fmt);
menue._x = menueItemX;
menueItemX += menue.my_txt.textWidth+menuePadding;
trace(menue.my_txt.textWidth);
menue.my_txt._width = menue.my_txt.textWidth + 5;
menue.my_txt._height = menue.my_txt.textHeight;
//release actions of button
menue.onRelease = function(){
trace(this.my_txt.text);
}
//rollover actions of button
menue.onRollOver = function(){
this._alpha = 50;
}
menue.onRollOut = function(){
this._alpha = 100;
}
//trace
trace(xml.childNodes[i].nodeName);
}
};
It's pretty long and does a lot and worked fine until I wanted to make every created mc go inside a menucontain mc. What happens is only the last item of the xml gets written. if I try this code it works great:
var loader = new XML();
loader.ignoreWhite = true;
loader.onLoad = function(success) {
if (success) {
xml = loader.firstChild;
trace("success");
menue();
}
};
loader.load("data.xml");
//Control Variables
menueItemX = 0;
menuePadding = 10;
//Create menue
menue = function () {
for (i=0; i<xml.childNodes.length; i++){
//Create item container
var menue = this.createEmptyMovieClip("item"+[i], this.getNextHighestDepth());
//Create textField in container and set properties
menue.createTextField("my_txt", 1, 0, 0, 0, 0);
menue.my_txt.autoSize = "center";
menue.my_txt.multiline = false;
menue.my_txt.wordWrap = true;
menue.my_txt.selectable = false;
//menue.my_txt.embedFonts = true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0xFFFFFF;
my_fmt.size = 30;
my_fmt.bold = true;
//my_fmt.font = "Arial";
//Write text from xml into menue item
menue.my_txt.text = xml.childNodes[i].nodeName;
//Apply text formatting
menue.my_txt.setTextFormat(my_fmt);
menue._x = menueItemX;
menueItemX += menue.my_txt.textWidth+menuePadding;
trace(menue.my_txt.textWidth);
menue.my_txt._width = menue.my_txt.textWidth + 5;
menue.my_txt._height = menue.my_txt.textHeight;
//release actions of button
menue.onRelease = function(){
trace(this.my_txt.text);
}
//rollover actions of button
menue.onRollOver = function(){
this._alpha = 50;
}
menue.onRollOut = function(){
this._alpha = 100;
}
//trace
trace(xml.childNodes[i].nodeName);
}
};
but then all the menu items created exist on the root, but I want them in another mc, to be able to change the position of the entire menu at any time... Can anyone offer me some guidance as to what I'm doing wrong?
Thanks so much for your help
Hello (I Have A ? On My Map Creation)
URL to the File
www.andrews.edu/~scottt/t_s_Flashmap.fla
I have a file here that I have produced, and while the people i am creating it for want it to be simple I want to see how i can make it more interesting(any advice?) I am going to be putting tooltips in too. The idea is a basic map of different housing locations.
My second issue is:
First I need for the two states to be buttons that go to the frames i specify but those dont work. I like the way it fades in and out (w/ the color) when you roll over it but i know there is an easier way to do this with actionscript instead of making all of these objects to confuse myself. (I am trying to teach myself after a terrible class that I took )
Second, In the beginning of the swf you will notice that the Indiana State blinks when it should be a simple fade in like the Michigan state. I know this is happening because of the actionscript that i have put on it, but i need it to go to the frame specified (which still doesnt work) Any help would be Greatly appretiated.
One more thing. I would like to learn how to start creating dynamic flash sites such as
examples
johnmayer.com
www.worldaccessmarketing.com/homepage.htm
Know of any learning material i can start with?
Thanks for your attn.
Button Creation
Hello everyone,
i have a question about buttons i was hoping someone could help me, so hear goes :
In my web site, the link page, i only have the name of the web sites and there link, for example : i have http://www.billgoldberg.com and that's the link and the way it shows on my web site to Goldberg's official web site, and that's BORING!
so i thought of doing a button for each link that will show up in an Alpha effect in the exact same time line that all the other flash animation in that page appear, you can see them at my web site (www.goldberg--online.com) and just hit the Links Link.
now comes the button part, for each link i have i have taken an Title bar from the web sites and that is the button i want to do, i want it to appear from 0% Alpha Effect, to a 50%, and then when the mouse is over it, i want it to show a 100%, only when the mouse is over it.
everything works well, but the part where on mouse hovers over the button and it's suppose to show 100% of the button, it stays 50%.
but everything else works good.
.MXP File Creation
Hi there ,
i was learning the "Flash Components" from flashcomponents.net , i downloaded the .MXp file which registers in Extension Manager.
Is anyone there who can tell me how to create the .MXP file what is the logic behind using that and how to use it.......etc etc..
Thanks in advance.
Sai
|