Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




HELP PLZZ Creating Text Files In FlashCS3



HI, i'm using flash CS3 . IS there a way to create text files in this version??
i've tried MMsave(abc,"abc.txt") and fscommand("save","abc.txt") functions ... but they didnt work!!!!

PLEASE HELP!!!!!!!!! THANKS!!

HELP!!



FlashKit > Flash Help > Flash ActionScript
Posted on: 07-07-2007, 06:45 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Local Files And Creating Outside Text Files
I have two problems.

1: I can't get Flash to link to a local file instead of a website. How do you do it!!

2: I have been trying also to make Flash create a text file. I know how to make Flash load one, but I want it to create one. Is there any way to do this!?!

If anyone has the answers to my questions, i would greatly appreciate responses. Thank you.

Creating Text Files From SWF
Hi All,

Is it possible to create and write data to a text file from
an SWF (Actionscript)

Thanks in advance

Regards,
LIN

Creating New Text Files
I am using:

fscommand ("save", "file.txt");

to save data from various text fields ina small flash game. I want to create new text files depending on the user. I would like the file to be named whatever the user inputs as their name. The way I am using it now writes over the file after every game.
OR
Is there a way to just create new text files for every time the game is played. Additionally I would like to time and date stamp the text file.

I am a novice using Flash 5

As3 Creating Text Files
I know I need PHP for this, here is my PHP file

PHP Code:



<?php
$fileName = $_POST['fName'].".html";
$fileText = $_POST['fText'];
$file=fopen($fileName,"a+");
fwrite($file,$fileText);
echo "&resu=Created ".$fileName;
?>




How can I use this with as3 and create a "html" file

HELP (PHP+AS 3.0 ) Creating Text Files
I'm trying to make flash and PHP create a HTML file, I can't seem to get it any results help please?


ActionScript Code:
var req:URLRequest = new URLRequest("save.php");
req.method = URLRequestMethod.POST

var postVars:URLVariables = new URLVariables();
postVars.fName= "ted";
postVars.fText="<html><body>Hi there, I'm ted</body></html>";
req.data = postVars;

var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES
loader.addEventListener(Event.COMPLETE, done);
loader.load(req);

function done(event:Event):void{
  trace("burp.  All done.  recieved data: "+loader.data);
}

save.php

PHP Code:



<?php
$fileName = $_POST['fName'].".html";
$fileText = $_POST['fText'];
$file=fopen($fileName,"a+");
fwrite($file,$fileText);
echo "&resu=Created ".$fileName;
?>

PHP AS3 Creating Text Files -HELP-
I think this is very easy for you but I can't make txt files with flash as3 trough PHP,
No I'm not a Noob, I'm a game programmer I just have nothing to do with PHP
can someone please give me some source code.

this is my PHP file(a friend made it for me)

PHP Code:





<?php
$fileName = $_POST['fName'].".html";
$fileText = $_POST['fText'];
$file=fopen($fileName,"a+");
fwrite($file,$fileText);
echo "&resu=Created ".$fileName;
?>






yeah, is to create html files.

[FlashCS3]Help Needed - Loading Variable Text
Hi all,

Im doing a uni project - building my website in flash!
Im using actionscript 2.0, I'm not too experienced in this so excuse me if I use incorrect terminology.

Basically - my website has 5 links. Each time you click a link, the webpage is supposed to do an animation, and then load the information (txt file).

I've managed to code it, so that the txt file loads as soon the animation starts but I want it to load AFTER it finishes. Can anybody help?

I've used this

Code:
on (release) {
loadText = new LoadVars();
loadText.load("TEXT1.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
newsBox.html = true;
newsBox.htmlText = this.myNews;
}
};
}
I'm not sure if I've explained it thoroughly enough but if you are willing to help and I need to provide more information please let me know.
thanks in advance.

Creating Text Files Using Flash
is there are piece of code that i can use to tell flash to make a .txt file and put it in a folder on my server,

i know i will have to set access privelages and stuff but can it be done?

if yes what is the code... i.e.

create "blahblah.txt" and put in "http://www.blah.com/docs/"

please help

Creating Text Files On Local Drive
Hi everyone - - we are creating a full screen Flash movie which needs to enable individuals to write a number of different text fields to a local hard drive.

Each person needs to create a different text file.

Suggestions for best ways to script this would be appreciated.

Cheers from Liverpool, UK

Creating Text/xml Files On The Client System
I'm currently looking into using flash for an internal application for my company.
I work for a transmission company, and I'm trying to create a simple ui for drawing sample transmission layouts. These are quite basic stick drawings.

I have no prior flash experience, currently no decision has been made on what we are going to be using to create the ui, but due to timescales I thought flash would be our quickest option. I have managed to prove every part of the technology, apart from it's io functionality.
Since the flash file will be part of a c# application, is it possible to create/update text/xml files on the client machine, without having to post to a web server?

thanks in advance

Wes

Loading Text Files, Creating Lists ?
Hello,

Does anyone have any idea's how i would solve this problem in flash?

I want to load a short .txt file into flash and take each single word out individually and create a word list from the words in the file. I want Special characters to be removed so they are ommited from the word list.

Bit of a large thing to get help with but any help would be gladly recieved, any ideas ?

Thanks,

skid

Easily Creating Html Text Files For Use In Flash?
I'm looking for a word editor where I just type stuff, being able to use underline/bold/italic/font size etc etc (aka wordpad), and then to save it as an html text file... with all the HTML tags for the above options ready, for easy use in dynamic text fields.

Any ideas?

thanks

Can Anyone Help Me Fix This Plzz.....
ok here's the problem im trying to get my flash mx search form to search my MySql database using PHP....example go to http://www.nightspotz.com and go to search link....does not do anything when the submit button is hit....does anyone have any sample .fla that has a search from flash on it will be greatly appreciated....

----script on the search button sends var to PHP-------

on (release) {
myData = new LoadVars();
myData.venuename = venuename.text;
myData.state = state.getSelectedItem().label;
myData.city = city.getSelectedItem().label;
myData.areacode = areacode.text;
myData.venuetype = venuetype.getSelectedItem().label;
myData.agegroup = agegroup.getSelectedItem().label;
myData.musictype = musictype.getSelectedItem().label;

myData.sendAndLoad("search.php", myData, "POST");
gotoAndPlay(results);
venuename = "";
state = "";
city = "";
areacode = "";
venuetype = "";
agegroup = "";
musictype = "";
}


--------the PHP script --------

<?
/*change variables from flash mx to post*/
$venuename = $_POST['venuename'];
$phonenumber = $_POST['phonenumber'];
$areacode = $_POST['areacode'];
$address = $_POST['address'];
$city = $_POST['city'];
$state = $_POST['state'];

/* mysql connection*/
$username="nigolmvc_nigolmv";
$password="oscarlm4675";
$database="nigolmvc_nightspotz";

mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT * FROM venues WHERE `venuename` = 'venuename' AND 'areacode' = 'areacode' AND 'city' = 'city' AND 'state' = 'state' AND 'clubtype' = 'clubtype' AND 'musictype' = 'musictype' AND 'agegroup' = 'crowd' ORDER BY `venuename` ASC", $colname_searchRS;
$result=mysql_query($query);

$num=mysql_numrows($result);

mysql_close();

/*back to flash mx*/
$i=0;
while ($i < $num) {

$venuename=mysql_result($result,$i,"venuename");
$areacode=mysql_result($result,$i,"areacode");
$phonenumber=mysql_result($result,$i,"phonenumber" );
$address=mysql_result($result,$i,"address");
$state=mysql_result($result,$i,"state");
$city=mysql_result($result,$i,"city");

echo "&venuename=".$venuename."&address=".$address."&ar eacode=".$areacode."&phonenumber=".$phonenumber;

$i++;
}

?>


---------script in flash mx that returns search results-------


myData.load("search.php") //php line
myData.ref = this
//Fetch data
myData.onLoad = function(succes){
if(succes){
for(var i=0; i<this.cant; i++){
this.ref["venuename"+i].htmlText = "<b>"+this["venuename"+i]+"</b>"
this.ref["address"+i].text = this["address"+i]
this.ref["city"+i].text = this["state"+i]
this.ref["zipcode"+i].text = this["zipcode"+i]
this.ref["areacode"+i].text = this["areacode"+i]
this.ref["phonenumber"+i].text = this["phonenumber"+i]

}
} else trace("Error loading data")
}
stop()

Plzz Add Some Actionscripting In This
hi,
i have used dublicateMovieClip to dublicate moveclip whose instance is "sq"....
now the (x,y) co-ordinates of dublicates are set random. ....plenty of dublicates are produced
but they often over lap each other....can i generate random numbers which don't get repeated....
i mean dublicated movieclips don't over lap each other....
and plus u will see that at ecery cicle tu new dublicates appear on stage...can i do something that random dublicates ate made.... i mean at one turn two new copies r made at next cycle 1 is made then 3,1,3,2 but they should overlap each other.....
plz help me in this matter...i won't be able to relpy instantly...because i have a exam of Probablity Distribution(SATISTICS) in Monday...
but i wil me waiting to hear from u ......flashers out there....
thanx in advance...
bye
adnan

Pop Up Browser From Swf?plzz Help
can anyone help me witht eh scrip on a button that when click on it.. it pop up a brower that don't have adress bar, link, standar button..plzz help..thank you

Plzz..HELP..04pro..
Hello ppl..

SWEET GOD THIS IS KILLING ME!!
Whenever i make a flash site (publish) i get this in the HTML file..

----<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>index</title>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="760" height="420" id="index" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="index.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="index.swf" quality="high" bgcolor="#ffffff" width="760" height="420" name="index" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
------</html>

Without the ----..
WHYYY is my site when i upload it on the upper left!..and not in the center?..
I tried the <center tag but that doesnt work proper..
As well as the other tricks on ive seen on the board..What is wrong with the HTML file that flash creates??..

T

Help ME PLZZ.... HELPPPPPPPPPPPPP
ok i posted a few days back and got a reply which was very helpfull... but being a newbie am still confused... heres what am trying to do:


I have a BIG map which is Vector and is my main flash movie.....
i wanna add functionality so that users can zoom in and out on any area of the map.... i looked everywhere for similar examples and i found nothing... i hope u guys can help me out...

so just to get the picture clear ...

also once the user is zoomed in say at 50%.. i want him to be able to move to different areas of the map ... like going right and left etc... so i must use some mouse detection stuff..
am not sure


Heres the reply i got:

To Zoom-In:
1. When the user clicks a point on the map, store the X and Y coordinates of that destination point in two variables, startX and startY.
2. Calculate the distance in X and Y that you'd have to move your map from its current position in order for the destination point to lie in the center of your mask (i'm assuming your map would lie beneath a mask layer).
2. Using the distance information obtained above, use onEnterFrame and a move function (see below) to reposition the map so that the destination point is in the center of the map.
3. Use onEnterFrame and a scale function (same as move function, but scaling instead of moving... see below) to zoom in.

Once Zoomed In:
1. create East, West, North, South button which, when clicked, use onEnterFrame and a move function to shift the map left, right, up or down.


Code:

//MOVE
//define generic moveMe function to move any element at any speed to any final destination on the stage.
moveMe = function (targetMC, targetX, targetY, speed) {
dx = targetX-targetMC._x;
dy = targetY-targetMC._y;
targetMC._x += dx/speed;
targetMC._y += dy/speed;
// check to see if target has been reached.
if (Math.round(targetMC._x) == targetX && Math.round(targetMC._y) == targetY) {
targetMC._x = targetX;
targetMC._y = targetY;
targetMC.onEnterFrame = null;
}
};


//RESIZE
//define a generic resize function to resize any MC to any scale at any speed.
changeSize = function (targetMC, targetXscale, targetYscale, speed) {
var dx = (targetXscale-targetMC._xscale)/speed;
var dy = (targetYscale-targetMC._yscale)/speed;
targetMC._xscale += dx;
targetMC._yscale += dy;
//stop onEnterFrame once target scale is reached.
if (Math.round(targetMC._xscale) == targetXscale && Math.round(targetMC._yscale) == targetYscale) {
targetMC.onEnterFrame = null;
targetMC._xscale = targetXscale;
targetMC._yscale = targetYscale;
}
};

NB: You'll have to find a way to account for those circumstances where the user clicks on a point in the map that lies on the edge of the map. If you reposition the destination point to the center of the mask in those circumstances, the user will see the edge, and it won't look nice. Perhaps you can make the map area larger than necessary and make the outer portions of it unclickable.



heres where am confused:

what code do i use to find out where my mouse coordinates are ...??
what is onEnterframe??!!

wellt o make this easy for whoever decides to help ..... DOES ANYONE KNOW A SIMILAR EXAMPLE ON A WEBSITE OR A PROJECT THEY DID... i would really appreciate it... i can just extract the actionscript from it and study it that way....

please help fast... my boss is up my ass wid dis.

Need ASAP Plzz...help
can i get a turorial and example of how to get make a search form in flash that has comboboxes, text boxes, list boxes, and check boxes in it that searches mySql database using PHP.. and sends results back to flash mx and have info put into their on dynamic text boxes.....and have about 10 records at a time viewed..........

Rounding Number PLZZ Help
All Gurus and non gurus!

I am making some spread sheets in Flash involving calculations. My numbers involve decimals. But the last number I get after doing the calculations looks like 5233.34534534555 is there a way I can round it up and make it look like 5233.35 ?
Plz help...am getting stuck on this!

thanks

Nix

Timeline Prob.. Plzz Help
Hi there Every1!
First I am a flash learner so please if you help me try 2 explain it as understandable as possible... like you were explaining it to your grandma..
Here is my prob...
I make a webpage in flash.. I have a graphic (jpg), 4 buttons, and a banner (scrolling text from left to right with a mask layer). I set the scrolling text to be 20 frames motion... And here is my problem... because when I press a button it makes the flash to jump to frame number 45 and stop there... but this way the scrolling text wont scroll anymore because the action is stopped. What I would like to do is... the text to scroll no matter what button I push... and on which frame the action is...
I hope you understood my problem.... and will be able to help me!
Thanx in advance!!!

Hi All....im Confuss...can Sumone Help Mi Plzz?
Hi to those who ever read this...

(Im a new member here...am i in the right thread?)

Im new to flash and web design... especially to the actionscript being used.

My E-learning project that i nid to developed have almost finished.
I have few swf files. The main one which call "Home.swf" supposed to be the parent for all the other swf files. Yea it does work... but the browers keep to a position...wen i maximize it...it will.. the problem is, when i click on other link (at the menu) it will go back to the original size. How can i make it all in the same size and position? ( i did use 800 x 600 for all the fla files).

The only actionscrip that i used is --->

on(release) { loadMovieNum("Home.swf", 0) }

is that correct? i donno what it meant....but it did work.
Only the position and size have problem.

can someone hepl mi...thx a lot....
i really appreciate any kind of help...

Plzz Someone Help Me With This SetMask() Function
Hi all,

I have a problem using the setMask(); function.
Around 10 buttons are called from external files and i need to mask it so that only 4 are visible at one time. The problem starts here...

I use the setMask function like this here.

menu.setMask(maskarea);

this is masking the whole movie and makes only the menu visible.
all the bgs and other elements on the scene are also masked, where as i want only the selected movie to be masked.


Plzzz if someone can help me i would be really thankful.
waiting for someones reply....

Chikku.

Score And Submission Help Plzz
Hi guys,
id say im relative newbie to flash scripting and would really appreciate some help.
Im developing a flash game and would like to have a function that allows the player to enter their details (name and email address) at the end of the game and submit their score to me in some form e.g email as in: http://www.gamesinaflash.com/game.php?id=35

i haven't yet developed the game as yet and was hoping to improve my skills by disecting a game movie and trying to customise it.

cheers!

[F8] PhotoGallery - Preloader Help PLZZ
Hi All,
I was wondering if someone could lend their expertise. I found this great tutorial for xml Flash photogallery. I used it and works great. Is there a way however, to load all my images before it goes and plays through when you click a button? I have like 7 buttons instead of the previous and next and each one calls on one array in the xml. I would hate for the user to have to wait for each image to load. I thought there was a way to load all at one and if they are all loaded then do its thing? Is there?

function doLoadImages() {
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("xml/images.xml");
this.onEnterFrame = function() {
xmlTot = xmlData.getBytesTotal();
trace("xmlDate Total = "+xmlTot);
xmlBytes = xmlData.getBytesLoaded();
trace("xmlDate Percentage = "+xmlBytes);
filesize = picture.getBytesTotal();
[B](note picture is the holder for the image being loaded)[/B]
trace("Filesize Picture Bytes = "+filesize);
loaded = picture.getBytesLoaded();
trace("Filesize Picture Bytes = "+loaded);
preloBar._visible = true;
if ((loaded != filesize) || (xmlBytes != xmlTot) || (xmlMovie.loaded == false)) {
preloBar.prelo_bar._xscale = Math.round((loaded/filesize)*100);
trace(preloBar.prelo_bar._xscale);
} else {
preloBar._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
trace("Loaded both image and XML");
}
delete _root.onEnterFrame;
}
};
}http://www.kirupa.com/developer/mx20...otogallery.htm

Flash Buttons Help...plzz
hi this is nithin .I am working on a flash design...which needed some flash buttons....

I found one free button on web and used it...as far as i use a single button it works fine...but when i try to import same button with just different text in it then only one button works...and other just become like an image...Im using flash cs3 [action script 3]

Hope you will help me....I've seen u helping others in forums...so thought of contacting u...

Cheers,
Nithin.

Nid Explaination To Use LoadMovieNum Plzz...
Hello....
Im creating an E-learning project..It almost finished..but alas, im have no knowledge of using actioscripts... All these while, i been using a simple actionscript which i learned frm the net...
I have some stupid questions which may sounds irritating and need much explainations.....Im damn sorry but i desperately nid help....cos i been trying to find explainations and tutorials for mi to understands...but i counldnt find... Here goes.....

I have alot of links for the menu and each links are created in different fla and swf files. My home btn link to "Home.swf" file and so on....

All links are beautifuliy working...Im impressed as i dont used actionscripts alot...The only actionscript beside "gotoandPlay" is-->

on(release)
{ LoadMovieNum ("Home.swf",0) }

But i dont really understand how exactly it used. the "0" is for the level right? What is a level? How i use the level to load my swf files? I meant how would i assigned the level? Cos the user that use my programe will not go in sequence. They may go any link they one.

The problem with my programe is that when i open the Home swf files and maximize it...then open a link frm there it load a new swf but the size will go to original.... How can i make it all the same size and position. ( i did used 800 x 600 to all my fla).

Any kind of help will greatly appreciated.
Im really dumb...

Lighting Mask Help Me Plzz
i've just finished created the thing in the lighting mask tutorial by flatline and i was wondering how you play the animation in 'scene 1' instead of when you are in 'edit in place' because it only works in there for some reason?! Has anyone tried this tutorial? can someone plz helpme thx very much

Diagonal Movement. PLZZ Help
Sup people, im trying to make an object move in a diagonal direction, when i click on a button.prefferably moves down and to the left, my code is all screwed up and i cant see straight anymore, so thanks for any help!

this is the code i have on my button

ActionScript Code:
on (release) {
    _root.object.pos = 100;
    _root.object = pos-_y;
}
onClipEvent (load) {
    _y += y/speed;
    _x += x/speed;
}

this is the action on the object...as is, its moving to a location were it will be moved from

ActionScript Code:
onClipEvent (load) {
    speed = 5;
    pos = -100;
}
onClipEvent (enterFrame) {
    y = pos-_y;
    _y += y/speed;
}
onClipEvent (load) {
    speed = 5;
    pos = 200;
}
onClipEvent (enterFrame) {
    x = pos-_x;
    _x += x/speed;
}



i know it looks terrible

Curly Line Prob... Plzz Help
Hi there Every1!

First: I am newbee so please try not to lame me cos I am allready, and please if you can help me try to explain it very detailed, step-by-step like trying to explain it to your grandma! Thanx…
So here is my prob. I would like to make a simple movie (I told you I was a newbee) which shows a pencil which draws a curlicued (not straight) line! I have the pencil on a layer moving but…. I just CANT make the line. I really dont know how can show the drawing… I would like to make the line appear as the edge of the pencil is moving. I hope you understood my problem and you can help me!
Thanx in advance!!

[F8] Loading Html In Flash But In A Different Way...plzz Help..
Hey guy...i 've got a problem....

I am making a website initially it was supposed to a flash website but now my client wants that he himself should be able to edit html pages for content....

So now the situation is i have the header(menu included in it), and footer in flash and the clients wants to include the html in between for content and all that....

So i will insert the header/menu and footer in html in all the pages like a usual webpage but was just wondering if it is possible to have only the center part(where the html/page content) to change not loading the whole page....i know i can use the frames but is there any other way to have this done...

please ask if things are not clear...

thanks in advance...guys...please help

FLV Player, From The Tutorials, Problem, Help PLZZ
I have followed the 1st tutorial Lees' site ... but he made them using MX, am using flash8. when I add a new Video to the library it gives me an option between 2 vids ... 1- Embedded Video (synchronized with timeline) 2- Video (ActionScript-controlled).
the 1st asks 2 import the FLV I want, which not the way I want it 2 work :? ... I've tried the 2nd one but it didnt work at all ... did the same thing as Lee did but it wont even pass my FLV to the video screen, its just white screen :x

Please i would appreciate some Help so i can at least pass tutrial1 :lol:

Cheers :roll:

The Rewind And Fastforward Buttons Do Not Work, Can Anyone Plzz Help Me
Hi,

I have tried to create a movie controller and it has five buttons: Pause, play, stop, fastforward and rewind.
I am trying to test a movie, which is in the a .swf file. The problem is that the movie extends upto 175 frames.

I can get the play and stop button to work, but the rewind and the fastforward button just rewinds or fastforwards only one frame at a time.

the code for the rewind button is:

stepBack.onRelease = function() {
playing = false;
_parent.prevFrame();


};

the code for the fastforward button i s:

stepForward.onRelease = function() {
playing = false;
_parent.nextFrame();


};

How do I fastforward or rewind it by 5 frames, so that I can see the affect of rewinding and fastforwarding?

Please help me!!!!

AIR In FlashCS3
hi@all,
i am new in this Forum and i download the trail version from Adobe flash CS3 because i want to know how the new as3 works. Then i found an install file to install AIR on Flash CS3. I am really happy that it is possible to creat AIR files with flash^^. Now to my question: I disabled the systemeChrome in the window options because i wont the standart window. And now i would build my own window, but i don`t know how i can close, minimize and drag the window with Flash. Does anybody know some codes how i can do this things??

Thanks a lot for your helps and sorry for my bad english^^

[flashcs3/as2] Help With XML
ok so i am using flash CS3 with AS2. (i gave up on the AS3)
I am making a simple flash website. I would like to use XML so that when people need to edit it after me, they dont need flash, and they dont need to really know alot about what is going on.
I have 7 main pages, 3 of which will have sub-menus. when they click the sub-menu i want it to pull up formatted text and pictures (from my XML file).
or if i have a photo gallery how to do it with that. i know that there used to be easy tutorials on here, i just havent been on here in over a year and a half (CS2 was fairly new and CS3 was almost out). would someone help me out, or point me to the good tutorials that can help??
thanks a TON!!!

Trouble With Preloader For A Slideshow Presentation... Plzz Helppp
Hi,

I have built a flash website but cant seem to load a .swf presentation. The page and whole file loads, however when i try to navigate through the presentations the whole file seems blank, this may be due to the fact that i have loaded the presentation file through the preloader that has only 2 frames, which is why the first frame of the presentation is visible but nothing after that... please do help me out, this problem has been eating my head for a couple of days now. Thanks for all your suggestions.

Regards,
Stavros

FlashRemoting For FlashCs3
Hello to everybady

Where are the components of Flashremoting for Flash Cs3 (AS3 code)? I can't find them in Flash Cs3
or in the components page of Flashremoting in adobe.com.

Thanks.

Liciof

[FlashCS3/AS2] Newbie Needs AS2 HELP. Please
I think I'm close, but not quite there. Basically, I'm trying to make the timeline advance to a specific frame after I select an item from by ComboBox...

Here is what I have so far:

Code:
//SETS DATA FOR COMBOBOX
myCB.dataProvider = [
{},
{value:"0100", name:"DISPATCH"},
{value:"0101", name:"TRAINING"}
];
myCB.labelField = "name";


//IF STATEMENT FOR COMBOBOX
if(myCB.selectedItem.label == "DISPATCH"){
gotoAndPlay(2);
trace("It Works");
}

Xml Parsing AS2 FLASHCS3
HI, guys, thanks for taking your time to read this thread,
im newbie in as and getting stress now, so i hope anyone can help me
i have xml and this is the code
<?xml version="1.0" encoding="UTF-8"?>
<data>
<genre id="1">
<id>1</id>
<root>0</root>
<name>Action</name>
<description>Action</description>
</genre>

<genre id="6">

<id>6</id>
<root>0</root>
<name>Thriller</name>
<description>Thriller</description>
</genre>

<genre id="7">
<id>7</id>

<root>0</root>
<name>Comedy</name>
<description>Comedy</description>
</genre>

<genre id="8">
<id>8</id>
<root>0</root>
<name>Romantic Comedy</name>

<description>Romantic Comedy</description>
</genre>

<genre id="10">
<id>10</id>
<root>0</root>
<name>Classics</name>
<description>Classics</description>
</genre>

<genre id="11">
<id>11</id>
<root>0</root>
<name>Cult</name>
<description>Cult</description>
</genre>

<genre id="12">

<id>12</id>
<root>0</root>
<name>Documentary</name>
<description>Documentary</description>
</genre>

<genre id="13">
<id>13</id>

<root>0</root>
<name>Indie / Foreign</name>
<description>Indie / Foreign</description>
</genre>

<genre id="15">
<id>15</id>
<root>0</root>
<name>Children</name>

<description>Children</description>
</genre>

<genre id="16">
<id>16</id>
<root>0</root>
<name>Musicals</name>
<description>Musicals</description>
</genre>

<genre id="18">
<id>18</id>
<root>0</root>
<name>TV Shows</name>
<description>TV Shows</description>
</genre>

<genre id="19">

<id>19</id>
<root>0</root>
<name>War</name>
<description>War</description>
</genre>

<genre id="23">
<id>23</id>

<root>0</root>
<name>Drama</name>
<description>Drama</description>
</genre>

<genre id="31">
<id>31</id>
<root>0</root>
<name>Music & Concert</name>

<description>Music & Concert</description>
</genre>

<genre id="43">
<id>43</id>
<root>13</root>
<name>special collection</name>
<description></description>
</genre>

<genre id="44">
<id>44</id>
<root>13</root>
<name>criterion collection</name>
<description></description>
</genre>

</data>
</xml>

and now, i want to parsing the xml and get the id node from this xml
so here's the code:

/*global variabel declare*/
var label:TextField;
var duplicate_genre:MovieClip;
/*end declare*/
/*Opening connection with xml*/
myXML = new XML();
var id:Array;
var path_id:Array;
myXML.ignoreWhite = true;
myXML.load("http://localhost/subcat/index.php/movie/genre");
myXML.ref = this;
myXML.onLoad = function(succes) {
if (succes) {
var root = this.firstChild;
var nodes = root.childNodes;
for (var i = 0; i<nodes.length; i++) {
subnodes = nodes[i].childNodes;
duplicate_genre= _root.genre.createEmptyMovieClip(["container"+i], _root.genre.getNextHighestDepth());/*make container for dynamic txt genre*/
this["label"+i]=duplicate_genre.createTextField(["labelor"+i], 1, -422, (i*28.5)+(-200), 143.8, 22.6);/*declare position text for genre*/
/*conditional if text <20*/
if (i<20) {
this["label"+i].text = subnodes[2].firstChild.toString();/*write genre xml to dynamic text*/
path_id=_root.genre["id"+i]= this["container"+i]=subnodes[0].firstChild.toString();/*declare id genre xml*/
trace(duplicate_genre+path_id);
/*opening otherXML */
otherXML = new XML()
otherXML.ignoreWhite = true
duplicate_genre.onRelease = function() {
var string="http://localhost/subcat/index.php/movie/lists/1/"+_root.genre.path_id;/*declare url for movie list*/
trace(string);
otherXML.load(string);/*function for load url movie*/
otherXML.onLoad = function(succes) {
if (succes) {
var totalpage = this.childNodes[1].firstChild.toString();
totalpage_txt.text = "("+totalpage+" Movies)";/*function for display total page*/
var root = this.firstChild;
nodes = root.childNodes;
for (var i = 0; i<nodes.length; i++) {
subnodes = nodes[i].childNodes;
_root.genre["cover_title"+i].text = subnodes[1].firstChild.toString();/*function for display movie name*/
_root.genre["genre_name"].text = subnodes[3].firstChild.toString();/*function for display genre name*/
}
} else {
trace("Error loading otherXML");
}
};/*end other xml load function*/
};/*end conditional for on release*/
} else {
trace("erorr loading xml document");
}/*end if text < 20*/
}/*end for Myxml*/
} else {
trace("Error loading XML document");
}
};
/*end connection for myXML*/

the trouble begins here, when i want to take id node at xml and parsing it into http://localhost/subcat/index.php/movie/lists/1/"+_root.genre.path_id,
i'm always get id from the last xml which is "44", and can't be suitable with te container which i clicked,
can u see the problems??
sorry my poor english
anyone have advice???
thanks

AS2 - QTVR In FlashCS3
Any idea how can we incorporate a QTVR panorama or object movie into Flash CS3.

Flashcs3 Movie Booboo
Firstly hello! I have been a forum reader for a while - first time forum poster! I am currently making a site for a friend which I have the "layout" uploaded at http://kunkelscleaning.comze.com/ ok.... so in the perfect world that exists only in my little head.. I thought I could make the bubbles bouncing around into buttons haha! Seems that its not so easy... I have it set to AS2 but can set it to AS3 I imagine... but when I started identifying buttons etc. all I could make it do was have X content load up but everything else stops animating. I am very new at flash and this is really the first thing Ive done for flash. I imagine I make separate flash movies and include them in the folder so they can just loop? or is there a AScript that I need - :S ANY HELP would be greatly appreciated. Thank you in advance! Oh and I know im missing info please just ask away and ill try my best, so on that note Sorry in advance!

-Lost

Is Flash 8 Compatable With Flashcs3?
I'm new to flash and want to take a class in it. The instructor requires flash 8, but I'd like to purchase falsh cs3. Can that work or are they just so different?

Unicode's PUA Values In FlashCS3
Hello!

I have a client using Flash CS3 on WinXP. He is having difficulties
using an OpenType TrueType font with some glyphs encoded in Private
Use Area, which simply won't show up.
After browsing online help it seemed to be feasible though.

I tried in a Flash demo myself, but as I have very few knowledge of
the software, I've been unable to replicate the problem.

Beside from getting any step-by-step hint to get this working, can
anyone around here confirm that it is possible to call PUA glyphs in
Flash and output them?

Apart from this narrowed issue, maybe using unicode to call glyphs
from an embedded OTTT font in Flash is not the right way. Glyph
names, indexes or hexadecimal values may be easier, more flexible and
reliable?

Any feedback much appreciated! Thanks.

Flash Vars In FlashCS3
Hi,
I am trying to pass FlashVars to the Flash Movie but for me it doesn't work. I publish the Flash and HTML and then I modify the HTML like following:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="

About PrintJob(Actionscript3,flashCS3)
no idea how to solve this "PrintJob"
Please tell me the hint..

(1)my flash version:FLASH CS3(Action script3.0)
(2)OS:MacOS 10
(3)Problem:
I am getting the error that it can not be printouted illustrations
(each instance neme is mcprint1,mcprint2)

(4)About file:
file name: example1
print button(instance neme): Printbutton
illust1(instance name): mcprint1
illust2(instance name): mcprint2







Attach Code

(5)Here is the (error) code

Printbutton.addEventListener(MouseEvent.CLICK, btPrintClickHandler);
function btPrintClickHandler(evt:MouseEvent):void {
var example1:PrintJob = new PrintJob()
var arr = new Array( mcprint1, mcprint2);
if (example1.start()){
try {
example1.addPage(arr, null, null, 0);
}catch(err:Error){
}
example1.send();
}
}

[FlashCS3-AS2] Duplicate Mc, Random _y Help
Greetings - I've been prowling and found a start for what I'm trying to do. Need help refining it. I pilfered the snowconfetti.fla AS and have modified it, but not quite there.
I want to attach a MC at a random _y location, and move it left to right across the stage, at random speeds. Then when it goes offstage, a new one is generated.
Right now the interval loads a new clip at 8 sec. no matter where the current clip resides on stage, so I'm sure that is wrong.


Code:
function brand() {
clip = attachMovie("brand_mc", "brand"+i, i);
clip._x = -50;
clip._y = Math.floor(Math.random()*640);
clip.xspeed = Math.random()*4-1;
clip.onEnterFrame = move;
i++;
if(i > 20){
clearInterval(myInterval);
}
}
function move() {
this._x += this.xspeed;
if (this._x>1100) {
this.removeMovieClip();
brand();
}
}
myInterval = setInterval(brand, 8000);

Thanks much for the help!

Email Button - FlashCS3, AS2.0
I have a flash file and I have 2 buttons at the end that I want to link to emails addresses. I've been using the code:

on(press){
getURL("mailto:you@email.com")
}

I don't have these on an action layer, but on the frame containing the button. All of this works, but when I click the link, a blank html page pops up in addition to a new email form in my email program (thunderbird.)

Does anyone have a solution to this? Or an easier way to link two different buttons to two different email addresses?

TIA!

[flashcs3] Photogallery Needs Refining
I've gone through several tutorials and managed to create a photogallery far beyond what I thought I was capable of. (yay!) While it has all the features I could want (thumbnails in a nice scrolling grid, slideshow option, etc) I've reached a couple of vital stumbling blocks.

a) centering the first image.


Code:
_root.createEmptyMovieClip("fullImage_mc", _root.getNextHighestDepth());
fullImage_mc._x = 100 + ((Stage.width-fullImage_mc._width)/2);
fullImage_mc._y = (Stage.height-fullImage_mc._height)/2;
This works perfectly for all subsequent images, but the first one is displayed wrong. This is because Flash doesn't know the image's height or width before it's loaded. However, if I change these locations to something static, there's a flicker when loading the other images, where the image is first loaded at the static location, then moved to the center.

b) positioning the preloader. Obviously I'd like this to be centered, but the more I've played with it, the worse it gets.

Code:
fullPreloader.onLoadStart = function(target) {
var myFormat:TextFormat = new TextFormat();
myFormat.font = "Geneva";
myFormat.size = 36;
myFormat.align = "center";
myFormat.color = _root.mycolor;
target.createTextField("my_txt",target.getNextHighestDepth,0,0,400,100);
target.my_txt.selectable = false;
target.my_txt.setNewTextFormat(myFormat);
};
This is a secondary issue and at the moment I've just moved it to the top left of the image. If anyone has good advice that would be great, otherwise I may just hide the preloader.

c) slideshow doesn't wait for images to load. So with large images/slow connections the slideshow will move on to the next image before the current one has loaded. My initial solution was to load the next image in a hidden mc whenever an image is loaded and while this kind of works, there are still issues when there are lots of images in the gallery. I've removed this attempt from the attacted file.

What do you think? Is there any hope? Thanks for your help!

? Creating A Way To Run Files From A CD ?
I would like to create a flash file that allows you to use buttons to execute, or download, or retrieve files from a CD. Just like GetURL allows you to retrieve files or images from website, I want to do this for a CD.

Think of a new game on CD. It autoruns, and then when you make a selection it either installs, executes, or downloads a file from the CD. I would like to create this but how???

Creating Txt Files
I want to tell flash to create a .txt file with the name that is stored in a variable (_root.name, this is in a dynamic textbox) and then put some text in the file, how do I do this in flash?

If it can't be done in Flash (actionscript version 2) then could I perhaps tell a PHP file to do this, I have no idea how though.

Thanks in advance for any help,

Copyright © 2005-08 www.BigResource.com, All rights reserved