Help Guru Needed
Hello guys, I have this weird problem: (copy and paste) ActionScript Code: var cl = this.createEmptyMovieClip("bulle", 0) ;cl.lineStyle(100, 0xfff00f, 100) ;cl.lineTo(.45, .15) ;//cl._xscale = cl._yscale = 10 ;this.onMouseDown = function () { cl._xscale = cl._yscale -= 10 ;} Click a few times and... the clip disappears
Anyone knows why?
pom
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 09-28-2003, 12:42 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
GURU'S NEEDED
Hello there,
I have a random script, which has 10 bitmaps(splash pages)
When i load my site up they do come up randomonly which is great...BUT the thing is it has to load all the bitmaps which is to much time to wait.
Is there a way to just load the one bitmap it choose, instead of all of them???
Is this possible???
My script is:
I have a MC, then in that MC clip i have 5 more bitmaps..
On each bitmap I have a (stop) and gotoAndStop (random(5));
Any feedback would be greatly appreciated.
Thanks in advance....
Mdesignone
GURU Needed
Hey,
Im trying to create 4 diffrent flash buttons that all play a seperate movie clip when clicked. I just don't know how to load and unload the movie clips.
Thanxs,
Shawn J.
AS Guru Help Needed..
ok..this will probably need to have the .fla sent to you,..as the project is rather big (not in file size, in code)
summary:
I have a CMS gui, that reads an XML file..and attches 'x' amounts of movieClips (productPanels) depending on how many productNodes are in the XML doc. Thry populate/attach in a scrollable, nested clip.
Using this code: (not really the problem but for troubleshooting/background I guess)
Code:
import mx.utils.Delegate;
//
//var mc:MovieClip = this;
var rootNode:XMLNode;
var productsNode:Array;
var totalProducts:Number;
var myProducts_xml = new XML();
//
myProducts_xml.ignoreWhite = true;
myProducts_xml.onLoad = Delegate.create(this, getTotalProducts);
//myProducts_xml.load("http://www.dmstudios.net/flashCart_final/prodData/products.xml"); //local version
myProducts_xml.load("http://www.dmstudios.net/flashCart_final/prodData/products.xml?ran="+random(999999)); //web version (cache killer)
//
function getTotalProducts(success):Void {
if (success == true) {
rootNode = myProducts_xml.firstChild;
productsNode = rootNode.childNodes;
totalProducts = rootNode.childNodes.length;
createProducts();
this.onEnterFrame = Delegate.create(this, function() {
populateAll();
delete this.onEnterFrame;
}//end Function
); //end Delegate
}else {
trace("Load Failed");
}
}
//
function createProducts():Void {
//Define how many columns
var columns:Number = 1;
//Define the item vSpacing;
var vSpacing:Number = 10;
//Define the item hSpacing;
var hSpacing:Number = 0;
for (i=0; i<totalProducts; i++) {
var attachProduct:MovieClip = attachMovie("productEntry", "product"+i, i);
attachProduct._x += 0;
attachProduct._y += 0;
attachProduct._y += i * 45;
//attachProduct._y = Math.floor(i / columns) * hSpacing; //only used with multiple columns
//attachProduct._x = Math.floor(i % columns) * vSpacing; //only used with multiple columns
}
}
//populate
function populateAll():Void {
for (i = 0; i < totalProducts; i++) {
var totalQuantity:Number =productsNode[i].childNodes[7].childNodes.length;
//random data
//product number#
var obj = this["product" + i];
obj.prodNum = i; //declaring what product (node) this is
obj.prodNum_txt.text = obj.prodNum+".";
//currentImage
var prodImage:String = productsNode[i].childNodes[0].firstChild.nodeValue;
var obj = this["product" + i];
obj.currentImage = prodImage;
//obj.currentImage = obj.currentImage.toUpperCase();
obj.currentImage = obj.currentImage.toLowerCase();
//name
var prodName:String = productsNode[i].childNodes[1].firstChild.nodeValue;
var obj = this["product" + i];
obj.name_txt.text = prodName;
obj.name_txt.text = obj.name_txt.text.toUpperCase();
//price
var prodPrice:Number = productsNode[i].childNodes[2].firstChild.nodeValue;
var obj = this["product" + i];
obj.selectedPrice = ["$"+prodPrice];
obj.price_txt.text = obj.selectedPrice;
//trace("PRICE :"+obj.selectedPrice);
//description
var prodDesc:String = productsNode[i].childNodes[5].firstChild.nodeValue;
var obj = this["product" + i];
obj.descriptionVar = prodDesc;
obj.descriptionVar = obj.descriptionVar.toUpperCase();
//obj.descriptionVar = obj.descriptionVar.toLowerCase();
//colors
var colorLength:Number =productsNode[i].childNodes[4].childNodes.length;
trace("Total Colors: "+colorLength);
for (z = 0; z < colorLength; z++) {
var totalColors:Array =productsNode[i].childNodes[4].childNodes[z].firstChild.nodeValue;
var obj = this["product" + i];
obj.colorChoices.push(totalColors);
}
//sizes
var sizeLength:Number =productsNode[i].childNodes[3].childNodes.length;
trace("Total Sizes: "+sizeLength);
for (y = 0; y < sizeLength; y++) {
var totalSizes:Array =productsNode[i].childNodes[3].childNodes[y].firstChild.nodeValue;
var obj = this["product" + i];
obj.sizeChoices.push(totalSizes);
}
trace("Color Array: "+obj.colorChoices);
trace("Size Array: "+obj.sizeChoices);
trace(newline);
}
}
each of these productPanels have some controls...but the focus here is the on the DELETE button. When you click this delete button, it shoudl remove this movieClip (productPanel) from the clip it is housed in...(remove that particular productNode from the XML Object (which it does correctly)..and then re-populate/re-load the original XML document to show the NEW productPanels (minus whatever was deleted)..I have been EVERYWHERE (using everything I know to try..and I can NOT get it to work.) The removing and re-writing the XML object works fine..(I knwo this because if I hit delete on a product..and refrsh the page the products re-load reflecting the missing product)....however..its the UPDATING/re-loading of the initial XML load that is messing up...it seems to be calling everything correctly..but the initial attachedClips in the nested , scrollable clip, sems to DUPLICATE the last object (productPanel)
this is the code I currently have on the DELETE button:
Code:
on (release) {
var xmlShortCut = _root.allPanels_mc.shirtPanel.productHolder_mc.objectClip;
var rootNode:XMLNode = myProducts_xml.firstChild;
var productsNode = rootNode.childNodes;
//trace("Node#: "+this.prodNum);
trace("Node# to Delete: "+this.prodNum+newline+xmlShortCut.productsNode[this.prodNum]);
xmlShortCut.productsNode[this.prodNum].removeNode();
/////////////////////////////////////////
//saving the XML object code:
/////////////////////////////////////////
var xmlObject:LoadVars = new LoadVars();
xmlObject.xmlData = xmlShortCut.myProducts_xml; //set this to the XML object you created elsewhere in flash
xmlObject.onLoad = function(success) {
if (!success) {
trace("failed to load");
}else {
/*this.onMouseDown=function(){
xmlShortCut.myProducts_xml.load("http://www.dmstudios.net/flashCart_final/prodData/products.xml");
trace("Mouse Down Test");
}
*/
//reload XML file and re-populate product displays/templates
if (xmlObject.returnMessage == "OK") {
trace("write OK");
trace("Return Message :"+xmlObject.returnMessage);
//refresh products
//attempt 1 to re-populate
//_root.allPanels_mc.shirtPanel.productHolder_mc.objectClip.getTotalProducts();
//attempt 2 to re-populate
//Delegate.create(_root.allPanels_mc.shirtPanel.productHolder_mc.objectClip, getTotalProducts);
//trace("Delegate Should Be Called Here");
//attempt 3 to re-populate
xmlShortCut.myProducts_xml.load("http://www.dmstudios.net/flashCart_final/prodData/products.xml");
trace("Re-Populate");
}else {
trace("write NOT OK");
trace("Return Message :"+xmlObject.returnMessage);
}
}
}
//xmlObject.sendAndLoad("writeXML.php", xmlObject, "POST");
//xmlObject.sendAndLoad("http://www.dmstudios.net/flashCart_final/writeXML.php", xmlObject, "POST");
xmlObject.sendAndLoad("http://www.dmstudios.net/flashCart_final/writeXML.php?ran="+random(999999), xmlObject, "POST"); //web version (cache killer)
}
the panel disappears, the products re-populate (so it looks)...but if I start with 10 products...and the last product is say shirt#4..and I delete ANY productP{anel..I will have TWP shirt#4's at the bottom...and the SAME amount of product..instead of 9 accourding to the productPanel display..if I trace ANYTHING..total products...the childNodes..EVERYTHIGN reflects the correct numbers.. it the actual VISUAL display of the product panel..
I have tried to loop through and remove EVERY productPanel..then try to re-populate it.....I either clear out EVERYTHING..(and no re-population...or I get the duplicate bottom product...and nothing re-indexes.
to see an example...go here:
PLLLLLEEEEAAAAASSSSSEEEEE HEEEEELLLLPPP!!
But please dont get crazy... you can ONLY delete som many products from the XML file..before none are left...I have added more 'fluff' products ..so delte one...and look at the bottom..you will see a duplicate.
thanks.
http://www.dmstudios.net/flashCart_f...FK_delete.html
Guru Needed
Hi, what I would like to realize, is a flash game, a good example would be a slot machine, in which money of the player are retrieved by a database, and are updated as long as the game goes on. I have this example of slotmachine which i really like: game.
I am not good in php, I have tried hard but yet i didn't manage to get any result. I have done a little research and found out that this little script should do the job
PHP Code:
<?php
/*
// FLASH-HIGHSCORE by Daniel Lonn [url]http://www.webknecht.net[/url]
// -------------------------------------------------------------------------------------
// let me know the changes if you modifie this script for
// a better db-perfomance: [email]webknecht@webknecht.net[/email]
MYSQL: 2 tables needs to be created:
CREATE TABLE `user_online` (
`IP` varchar(15) NOT NULL default '',
`EXPIRE` int(10) unsigned default NULL,
`NAME` varchar(20) NOT NULL default '',
PRIMARY KEY (`NAME`),
KEY `IP` (`IP`)
)
CREATE TABLE `user_score` (
`IP` varchar(15) NOT NULL default '',
`NAME` varchar(20) NOT NULL default '',
`COUNTER` int(5) default NULL,
`DATE` varchar(12) NOT NULL default '',
PRIMARY KEY (`NAME`),
KEY `IP` (`IP`)
)
FLASH: you have to set dynamic textfields for every output-variable
i.e. to display 10 highscore-rows:
score0 ... score9
name0 ... name9
date0 ... date9
and flash variables for name and scores for a new player
you could send and load the highscore-values with:
loadVariablesNum(highscore.php?"+PlayersNameVariable+"&"+_PlayersScoreVariable+"&test="+random(number),Level or mc to load in, "POST");
i.e:
loadVariablesNum(highscore.php?"+name+"&"+_scores+"&test="+random(99999),0, "POST");
------------------------ VARS TO EDIT BEGIN ----------------------------------------------*/
$HOST = "xyz.de"; // hostname
$ID = "xyz"; // mySql-username
$PW = "xyz"; // mySql-password
$DB = "xyz"; // mySql-db-name
$time_range = 1800; // time-range in seconds to display online-users
$display = 10; // number of highscore-rows to display in flash
$score_min = 0; // '0' displays all scores || '1' displays only positive scores
// ------------------------ VARS TO EDIT END ------------------------------------------------
$tbl_user_online = "user_online";
$tbl_user_score = "user_score";
$date = date("d.m.Y");
$remote_addr = getenv("REMOTE_ADDR");
if($argv){
$post_vars=implode($argv,'');
$post_vars_array=explode("&",$post_vars);
$name = $post_vars_array[0];
$score = $post_vars_array[1];
}
$conn_id = mysql_connect($HOST,$ID,$PW);
mysql_select_db($DB,$conn_id);
// delete all old user-data from $tbl_user_online
mysql_query("DELETE FROM ".$tbl_user_online." WHERE EXPIRE < ".time()."");
if($score_min = 1){
// delete all user-data from $tbl_user_score with negative scores
mysql_query("DELETE FROM ".$tbl_user_score." WHERE COUNTER <= 0;");
}
// user exist?
$result3= mysql_query("SELECT count(*) FROM ".$tbl_user_score." where IP ='".$remote_addr."' and NAME = '".$name."'");
if(mysql_result($result3,0) == 0){
// user doesnt exist ==> new entry
mysql_query("INSERT INTO ".$tbl_user_online." (IP,NAME,EXPIRE) VALUES ('$remote_addr','$name','".(time()+$time_range)."');");
mysql_query("INSERT INTO ".$tbl_user_score." (IP,NAME,DATE,COUNTER) VALUES ('$remote_addr','$name','$date','$score');");
} else {
// user exist ==> update entry
mysql_query("UPDATE ".$tbl_user_online." SET EXPIRE = '".(time()+$time_range)."' WHERE IP ='".$remote_addr."'and NAME = '".$name."';");
mysql_query("UPDATE ".$tbl_user_score." SET DATE = '".$date."',COUNTER = '".$score."' WHERE IP ='".$remote_addr."'and NAME = '".$name."';" );
}
// select all user-data from $tbl_user_score to display in the flashmovie
$sql="select NAME,COUNTER,DATE from $tbl_user_score order by COUNTER desc";
$result=mysql_db_query($DB,$sql,$conn_id);
$count = mysql_numrows($result);
$i = 0;
while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) {
if($i < $display && $i < $count+1){
str_replace( "
", "",$row[NAME]);
// flash output
print "&name$i=".$row[NAME]."&score$i=".$row[COUNTER]."&date$i=".$row[DATE];
$i++;
}
}
// count of all Users online
$online = mysql_query("SELECT count(*) FROM ".$tbl_user_online);
$gesamt = mysql_result($online,0);
// flash output
print "&online=".$gesamt;
?>
but this code works registering the highest score of players. What I would like to achieve is a system where a player who has palyed this game before, can log in and retrieve is score from prevoius game.
I am not able to get this code working, and I will really appreciate any help given.
Thanks in advance
GURU,..scrolling BG Needed
I have a movie..that is not complete....I made an MC that all the nav buttons are in....I dragged the button MC to my background stage.....they worked fine..(No code or gotos added yet....) Now when I tried to add action script to make the background scroll when I click on a certain button....everything is MESSED up...1 the background doesnt even scroll....and when I added the code to the individual buttons.....not the button NAV MC doesny work either....do I need to have a special line of code to move the BG image thae is located on the main stage are?..and NOT in the Button MC??...I will sens anybody my .fla is they can help...so they can get a better idea of what I am saying...and then they can point out to me what I did wrong wrong on my code...cause I really wanna learn how this is done..RIGHT!! Thanks -whispers-
whispers007@hotmail.com
GURU Needed To Send .fla To?
I am having the most trouble with something...it is a very perculiar situation. I am having a scrolling background in the site I am working on....They are 4 imported images grouped together in a graphic symbol......All the links scroll the BG fine...but when the last 4th image slides into view,,it is a ll messed up!!! I mean it is like a smear...cant even se picture..I have no clue what is going on..can some look at .fla and the .swf for me??/ Thanks -whispers-
Hit Test GURU Needed
I should know this but never had to impliment this yet so please send me in the right direction.
I would like to drag an MC on the stage untill it hits another MC. When a collision is detected it will not allow the dragable MC to pass the bounds of the other MC.
4 example. The dragable MC is a small circle. The other MC is a large Circle. You can click and drag the MC anywhere on the stage except within the other circle(MC).
Do you smell what I'm cooking. I'm trying to explain the best I can here so bare with me...
Please help me out the deadline is looming!
Kitch
Help Needed From Flash Guru
I am creating an interactive information site. The .fla file is a series of dragable pictures that once dropped over a target, information is displayed in dynamic text boxes and by pressing another button more information can be displayed. Each of the sixteen dragable pictures has different information.
The problem I have is once the first picture has been dropped over the target, how do I make it return to it's home position when the user clicks on one of the other pictures. Bearing in mind that they may click on the more information button which requires the picture to stay over the target.
I hope I have explained my problem clearly enough.
Variable Guru Needed
Hey Flasherz...Happy New Yeahz 2 yall.
OK. 1000 points goes to the person who can answer this action script question.
I have a site I built in scenes. It takes too long to preload. So I advised to brake up all the scenes, and Pages within those scenes into individual swf files.
//To easly understand the problem my site is up at www.forsite.co.nz
My problem is...:
Each section of my site eg "about us", "work", "services" ect has a unique animation.swf
for eg..."about us" has three buttons "what, where or who"
If the "what" button is hit I want "animation.swf" and "what.swf" to play.
"animation.swf" should play only ONCE and stop on the last frame so if one of the other two buttons is hit "animaion.swf" will stay on the last frame... Until another button in another section is activated.
pretty sure I should be using an "if" action...
but have had no joy so far.
Big ups for any help.
Actionscript Guru Needed Here Help
I made promotional CD with Flash MX, and it works fine, but I want it ot be published in windows projector. I did that also, and it also works, but...when movie is resized beyond normal mesaurments (750*550 is normal, if you resize window to 850*550 for example)i can see things that normally shouldn't be generated, stuf that is drawn outside of canvas.
I tried to find some code to prevent flash animation to be resizeable, I know ti exist but I just cannot find it. How to make it not resizeable nad not to show menu on top of animation, and also can I make flash movie that will be run in full window.
Pls help me, I looked in Actionscript Bible but cannot find anything...
Confused Guru Help Needed
Here is what I wish to do.
I have a html page loaded with a table with 3 cells.
The top cell is a small banner. The middle cell is content, and the bottom cell is a button system.
I need to load 2 individual pages called by the buttons to load within the middle cell.
I think I can get away with using Iframes, not sure.
But basicly I have two pages of flash content that needs
to load within the center cell. Is there any way of doing this
without dealing with frames?
Guru Needed FPS Problem
I have a problem with the FPS changing on its own. I set the frame rate to 24fps and then when i play the movie it changes frame rates many times and ends on 16fps. No one can give me a reason why this would happen. Any help would be great. Thanks
Flash Guru Help Needed
hi!
can someone explain me or show me or give me a good direction for my question!!!
ive controlled a lot of flash sites but nothing (less lucky guy)!
i need a component or script which transform the midi sound input into true/false flash input!
any ideas or any script will be helpful and appreciated!
thanx in advance!!!
Flash Guru Needed
I am willing to pay someone to help me get my site off the ground. I recently bought a cheap flash template and am in the process of editing it and changing almost all the images, etc. It will be a site displaying my music and what I do. I am an audio engineer and work long days. I dont have time to really dig in and learn flash. You can take a look at what I have so far...
http://www.audioanatomy.com
I know it's prob very simple and boring for a lot of you flashheads. I just need help adding music/forums, etc.
If anyone is interested (and im sure no one is)
Shoot me an email @ hirax@audioanatomy.com
Thanks
Have Nice Day.
Help Of An Actionscript Guru Needed :)
I am in the process of making an eGreeting card with a baby's face on it. To add a bit of interactivity the baby's eyes follow the cursor around the page. However, to make it uber slick it would be great if, when the cursor landed on the baby's nose, its eyes went squint...
Ive figured out the script for the two eyes (they move together in the direction of the cursor) but the squinting bit is vexing me!
Any ideas would be greatly appreciated
Guru Explanation Needed, Pls
Can someone explain the reason why an extra mc was produced?
I have attached a testing FLA containing 4 tests on different ways to swapDepths (both MX 2004 Pro and MX version). Instruction for tests is written on Frame 1 of the FLA.
When I try to use swapDepths(), an extra mc is duplicated. Also, when I try to trace their _level value... all return _level0 and none of the mc has _level value of the swapped depth.
ActionScript Guru Needed
Issue is inside of a Class file i have created.
I have created several private members and all can be seen except for the variables that are being referenced by event handlers for onload events.
What gives? If i use a _global var i can see it but i am baffled as to why i can not see my class members from within the event handler functions.
Please response asap.
Actionscript 2 Guru Needed
Hey Guys;
Seems like you guys are the actionscript gurus round here...
Ive got this flash movie that imports an xml file and then draws out a navigable grid
based on this data.It was working but now Im getting errors within the classes when I try to compile/publish it.
Its probably something simple as Im new to the whole MX 2004 /AS 2.0 scenario....
If you could have a look at the code and see what little mistake im making itd be great!
Cheers
Johnny.
How Would I Make Something Like This: Guru Needed
Hi guys. I am new to all things flash and action script so please bear with me.
I understand the basics of flash like tweens buttons, movieclips etc
the designer is really good at making little microsites http://www.northform.co.uk/work/slam...l/eflyer/hhw3/
I was wondering how I would go about making something like the example above.
The area that has the content in is that a movieclip that has info added dynamically? How and where would I add the dropdwon effect when a link is press to the main content window?
The nav buttons I asume are just buttons.
The main background images are added on the stage to one file or more?
I just need a idea on how the site was constructed.
Many Thanks
Matt
Actionscript 3.0 Guru Needed
SnapPages.com is at the forefront of technology by making the web so easy for even the casual user that they can look like a HTML and Flash guru. Become a foundational partner of this small team and help lay the groundwork for incredible success in the near future. Your accomplishments will not go unnoticed and will directly impact the entire company.
We are seeking an all-star Senior Flash Developer to join our team – not just another web designer. If you are all about Flash, and you are accustomed to using the most current technology available, then we would like to speak with you.
Required Skills:Proficient in Action Script 3 (2 is not an option)
Strong organizational skills
History of working on large projects successfully
Project leadership experience
Experience with PHP and My SQL (LAMP)
Working with object-oriented projects
Resourceful / Independent worker / Driven
An eye for design
No less than 5 strong years of Flash
This is your opportunity to be recognized for your amazing work. This is just too good to pass up!
Please contact me at ddouglas@novotus.com for more information or go to www.novotus.com and apply to this position directly.
RecruiterDoug
Scrolling Guru Needed
Ok. All you gurus lisen up!
How do I take a series of pics (with text blocks next to them) and put them into a vertically scrolling box? I've searched the forums and the web and can't seem to make this work.
This final clip will ultimately be brought into Director MX as well and clicking the different pics will load their respective movies. Aaarrggghh.
Any help would be greatly appreciated.
thx.
Flash Guru's Needed For This One
Ok i am by far no flash newbie. I have tried a lot of crazy things with flash and have learned almost every quark about the system and ways around them even when no one else could help me. But now i have found a new one. Go to www.trikke.com/t12 Here is a page that has a flash file set to 100% by 100% of the browser and within in that i load my movies and center them to the browser. The wmode is set at transparent to speed up the flash file (quark # 34353454510 in flash). Now take the browser window and make it smaller. When it gets small enough the main movie dissapears compeltly!! Any way to get around this? I have never seen anything like this before.
Please help and thanks ahead of time.
J
AppleScript Guru Needed
Hello,
Been trying for months now on finding a resource to help me with a standalone projector that I am creating.
I have a flash movie that is basically a catalog of 300+ products. The products each have a pdf file associated with it. I have created an applescript that opens the file, has the print dialog show up and then closes the pdf when finished. The problem is that I would have to create 300+ individual applescripts to be called from flash to have each pdf opened when needed.
What I wanted to know if there is a way of passing a variable to the one applescript to tell it which pdf to open. Somewhat like posting a form and dynamically creating the result. I know that on the PC side I can pass parameters to an exe file, but is there a way that I can pass parameters from flash to the outside applescript app to open it.
Here is my existing applescript app code:
tell application "Finder"
activate
select file "storage_room_round.pdf"<------ This needs to be dynamic
print selection
end tell
tell application "salespres_main Projector"
activate
end tell
Your help would be GREATLY appreciated....
GURU Help Needed...Effects Wanted.......
I am looking to create an effect of a slideshow type. I want several picture in a line to be able to slide left and right depending on the users action (of left or right arrow..LOL) when the pointer is on a specific picture..i want that picture to be shown (above the slideshow bar) bigger and have some description text next to it!!
Can anyone give some insight as to how this can be accomplished??...Also,...how hard would it be? Would it take a lot of action scripting? If so,...compicated scripting?..or just some basic?? Thanks -whispers-
If you are having a hard time visualizing what I am saying e-mail me for a diagram of what I want to do. thanks!!
I found a .fla in the movies/slideeffects part of the movie link from up top.....I just need help trying to break down the action script cause I know NO action scripting. I wanna have my own pictures....and position differntly! Thanks...
Links to the two effects I am interested in duplicating:
1. http://www.flashkit.com/movies/Inter...96/index.shtml
2. http://www.flashkit.com/movies/Inter...35/index.shtml
Hope someone can help thanks!!
-whispers-
Flash Guestbook..AS GURU Needed...
I set up a guestbook.. http://www.bizarro2002.com/Guest/guestbook.htm
It uses a Flash interface along with PHP and MySQL to store the info.
AS you can see it works fine here... but when I load the swf into my main movie, the SWF loads but never acceses the information or graphics. All I see is the red backround and a text message that says.."accessing information...Please wait...". It freezes there and never goes further..
What can be causing this.. It's obvious it works but why won't it work when loaded into another movie???
Please help!!! This project needs to be done very soon and I only have another week!!!
Kitch
Guru Needed - Follow Cursor
I've posted before with no response. Don't know if this is too difficult to achieve.
The effect is to have a small object on a vertical arc follow the cursor wherever it may go onscreen yet stay attached to the arc. So if the cursor moves up the object follows it up along the arc. If the cursor moves down the object follows it down along the arc. If the cursor moves left the object follows it along the arc until it hits the end of the arc. etc. In addition to the following, i would like the objects motion to accelerate and decelerate as well as being able to change the objects speed of movement.
I have the object following the cursor on a mathmatical circle based on flashkit tutorials i've found, but i'm no programmer so i'm lost as far as what to do next.
please help
Guru Help Needed -Super Challenging
NEED HELP
Found great mono script, but the math is kicking my ass, best one ever.
Scrolls and zooms in and out (PERFECTLY and I mean PERFECTLY)
I need to do two things. Slow the scroll speed and stop at edge of every picture once it zooms in to full size. Email me and I'll float you the fla.
Definitely super challenge.
Actionscript Guru Needed _flash 5
hi,
I have a scrollbar to scrolltext that works great except it makes my scrollbar shrink like crazy if I add tons of text. can someone look at the code and let me know if there are ways I can change it so the scrollbar is not affected by the text? here is the code. I'd be forever grateful. any suggestions would be great.
the code is basically from
http://www.actionscripts.org/tutoria...II/index.shtml though I have changed the variable names.
onClipEvent (load){
this.loadVariables("text.txt");
scrolling = 0;
frameCounter = 1;
speedFactor = 3;
numLines = 7;
origHeight = scrollbar._height;
origX = scrollbar._x;
needInit = false;
function initScrollbar(){
var totalLines = numLines + textField.maxscroll - 1;
scrollbar._yscale = 100*(numLines)/totalLines;
deltaHeight = origHeight - scrollbar._height;
lineHeight = deltaHeight/(textField.maxScroll - 1);
}
function updateScrollBarPos(){
scrollbar._y = lineHeight*(textField.scroll - 1);
}
}
onClipEvent (enterFrame){
if( needInit ){
if(textField.maxscroll > 1){
initScrollbar();
needInit = false;
}
}
if( frameCounter % speedFactor == 0){
if( scrolling == "up" && textField.scroll > 1){
textField.scroll--;
updateScrollBarPos();
}
else if( scrolling == "down" && textField.scroll < textField.maxscroll){
textField.scroll++;
updateScrollBarPos();
}
frameCounter = 0;
}
frameCounter++;
}
onClipEvent (mouseDown){
if(up.hitTest(_root._xmouse,_root._ymouse)){
scrolling = "up";
frameCounter = speedFactor;
up.gotoAndStop(2);
}
if(down.hitTest(_root._xmouse,_root._ymouse)){
scrolling = "down";
frameCounter = speedFactor;
down.gotoAndStop(2);
}
if(scrollbar.hitTest(_root._xmouse,_root._ymouse)) {
scrollbar.startDrag(0,origX,deltaHeight,origX);
scrolling = "scrollbar";
}
updateAfterEvent();
}
onClipEvent (mouseUp){
scrolling = 0;
up.gotoAndStop(1);
down.gotoAndStop(1);
stopDrag();
updateAfterEvent();
}
onClipEvent (mouseMove){
if(scrolling == "scrollbar"){
textField.scroll = Math.round((scrollbar._y)/lineHeight + 1);
}
updateAfterEvent();
}
onClipEvent (data){
needInit = true;
}
Dynamic Components - Guru Needed
If you are a guru then you may have my answer!
I'm still getting used to creating components so I am a bit of a newb; this however does not shadow my actionscript knowledge b any means!
I tried flashcomponents.net tutorial and was simple enough.
But when I tried to dynmically attach the FtriangleClass example and pass the params it would not attach:
_root.attachMovie("window", "window1", 10, {_x:100, _y:100});
or
_root.attachMovie("window", "window1", 10, {myVar:"yummy", myBoolean: true});
This for some rason will not work with my created component but will work just fine with say the FScrollbar created by Macromedia.
SO I assume I am doing something wrong. I even compared the two for missing elements and no luck
Any help on this matter would be greatly appreciated cause I am gonna pull my hair out soon
Best Regards. Matty
Guru Advice On Targeting MCs Needed...
I'm trying to return a reference to any one of 3 thumbnail mc's contained in a scrollpane. (ah yes, the evil scrollpane...) But scrollpane.getScrollContent() only returns a reference to the container, "clipLoader", nothing about what it contains or where I clicked. And scrollpane.clipLoader.getScrollContent() returns "undefined".
I'm not even sure if the cursor is actually seeing different clips as I mouse-over each, or if I'm just targeting the same container underneath a mask, causing the cursor hand to disappear/reappear as if responding individual clip instances?
I'm lost between what I think I can target and what I can actually target. What's the strategy to target individual MCs once they're in a scrollpane? Do I need to include invisible buttons overlaying the thumbs, add a listener to each, modify the component code, or what?
I'm trying to save myself from charging down dead ends...any advice would be HUGE.
Flash Guru Needed (paying Job)
I am looking for a flash guru, mainly a scripting expert, who can coach me/be available to answer questions when i get stuck. This person should be available during the day on MSN messenger. I would only need a few minutes per day. He would keep track of time spent with me and bill me on an hourly rate.
Please email me ASAP if you are interested
jon@jafproductions.com
Guru Needed, Problem With Button, Please Help.
I'll explain the best I can, I'll also upload the files. Here goes.
I have two buttons on the stage, both are movie clips with buttons on the first frame of the movie. It is button one we need to look at. Ok, the code on the button in the movie is as follows:
on (release) {
if (_root.Button2._currentframe == 7) {
_root.Button2.gotoAndPlay(8);
}
// other actionscript functions for when button is pressed,
// such as getURL, are inserted here.
gotoAndPlay(2);
}
on (release) {
loadMovie("test.swf", "empty");
}
This code does indeed work for moving the buttons into place but my last few lines of code ask for an swf file to be loaded into an empty movie clip on the stage. It doesn't work, alas.
I have tried the following code also which has a root element on my last bit of code as you can see:
on (release) {
if (_root.Button2._currentframe == 7) {
_root.Button2.gotoAndPlay(8);
}
// other actionscript functions for when button is pressed,
// such as getURL, are inserted here.
gotoAndPlay(2);
}
on (release) {
_root.loadMovie("test.swf", "empty");
}
This loads the swf "test" but everything else disapears
Oh please can you help? I realise that movies can be loaded into levels also but I need it to load into specific areas onstage and when I use the levels method It loads into the top left hand corner.
Thank you.
Scrollpane Issues *Guru Needed*
Hi there,
I'm in the process of updating a website that has previously been created and need some guidance. There is a problem with the following site www.cavell.net.au
In the 'our work' section there are several links (e.g maritimo). Upon rollover you will notice that there is a faint ticking sound. This works fine, but upon selecting any of the links and moving on to the clients work, you will notice that while the buttons do not appear anymore, their rollover states DO including the ticking sounds.
I have had a look at the source files and i'm lost. I can't figure out how to disable the buttons in the client showcase section.
I have uploaded the source files via yousendit which can be downloaded at:
Link: http://download.yousendit.com/8A4F52E008969786
They are 6MB so be warned! .. main.fla and evinrude.fla.
I hope I have explained this clearly.. If anyone can shed light on this I would be hugely grateful!
Stuck.
Depths / Levels Guru Needed
I have read all the obvious stuff about the depths / levels it seems. But, am still missing something!
The issue (I run into often): Even though I assign the actual depth number, the loadedmovie still either isn't "present" or is hidden behind a loadedmovie that's at a LOWER depth.
Main functions are defined at the main foundational swf. From the main foundational swf, I call all other swf movies, flvs, or whatever. In my main swf, for instance, the flvs loaded in are given a depth of 4000 (I'm compelled to do high numbers now) while title.swf (it runs over the flv) is loaded in at a depth of 8000. I would think I could assign title.swf to 4001 and it would be on top, but it's playing behind my flv at 4000 even though it is put at the 8000 depth.
are there rules that include overriding or what could explain this? or am i misunderstanding levels versus depth?
thank you!
Flash Quiz Guru Needed:
Greeings, all,
Here's what I need:
Flash 8 has quiz templates which are coded for multiple choice, true/false, text statement, and matching types of questions, along with hotspots and probably anoher type I am forgetting. The test taker makes their selection(s) or answers, and clicks a "check answer" button. They then get a feedback statements depending on whether they have answered correctly or not. Many questions involve multiple selections to be correct, but all must click on the "check answer" button to advance to the next question.
The point is that all of this functionality is coded in the component(s) which make the template so versatile. A copy of my .fla shouldn't actually be needed (I am guessing here), because the component code is what I believe needs tweaking, at least the part where the final percentage of correct answers is calculated at the end of the test, and that percentage is compared to a user-defined passing percentage score.
I think this requires a Flash Quiz Guru, who knows just where to find the code in the component(s) and connect the pass or fail result to a new button or a "go to" redirect. I don't know enough to say the same effect could not be accomplished by frame scripting, but I expect the component(s) code would seem a more direct approach.
I cannot fill in the blanks for any idea that is just an idea. If anyone can code this, make it work and test it, and direct me to where the snippets must be placed, I would be deeply grateful. This is about education, not a game or commercial razz-ma-tazz.
Are there any Flash Quiz Guru's who can help me out with this?
Thank you.
regards,
stevenjs
____________________________________
"I am but an egg."
--Stranger in a Strange Land
Components Styling: Guru Needed
I think I need some help in explaining styling components, or otherwise the Flash documentation is just plain wrong
What I'm trying to do is style the checkbox component.
More specifically I want to change the color of the checkbox.
According to the docs I could do it like this:
ActionScript Code:
my_cb.style.setStyle("symbolColor", 0xff0000);
But....it's a no go.
Any ideas?
This Is A Hard One, Action Script Guru Needed
Here is the problem, it would take me forever to explain it so I'll show it to you:
first go here:
http://www.skylark64.com/full_intel1.swf
click on the grey lined boxes and the images should move up and down.
then go here:
http://www.skylark64.com/skylark64_v2.swf
click on the 2nd box from the portfolio button on the top nav. Still with me?
The second movie (skylark64_v2.swf) is loading the first movie (full_intel1.swf) via LoadMovie.
This is where I have a problem. The full_intel1.swf no longer functions.
Help me out. I'm out of ideas.
Thanks,
skylark64
Real FlashKit Guru Needed. C'mon G'Paris
Does anyone know AS to put a .HitTest into this?
(The lower script is a MM Flash MX Sample Script)
To where the "Beetle" Stops if it hits a wall, or if your a real guru, to where the beetle goes around a wall (Wall meaning other MC)
TY - 'DOX
onClipEvent (load) {
// declare and set initial variables and properties
clickSpot_x = _x;
clickSpot_y = _y;
speed = 7;
clickMode = true;
turnMode = false;
}
onClipEvent (mouseDown) {
//
// set position of target spot when mouse is clicked
if (clickMode && _root._xmouse>125 && _root._xmouse<465) {
clickSpot_x = _root._xmouse;
clickSpot_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
// toggle button icon visibility
_root.curve._visible=turnMode;
_root.pointer._visible=!clickMode;
//
// deterimine whether target spot is the clicked spot or the mouse pointer
if (clickMode) {
gotoSpotX = clickSpot_x;
gotoSpotY = clickSpot_y;
} else{
gotoSpotX = _root._xmouse;
gotoSpotY = _root._ymouse;
}
//
// calculate angle of current position to target position
delta_x = _x-gotoSpotX;
delta_y = _y-gotoSpotY;
targetRotation = -Math.atan2(delta_x, delta_y)/(Math.PI/180);
//
// calculate the two methods of rotation
if (turnMode) {
if (_rotation<targetRotation) {
_rotation += 10;
}
if (_rotation>targetRotation) {
_rotation -= 10;
}
} else{
_rotation = targetRotation;
}
//
// move beetle toward the target and stop when it gets there
if (Math.sqrt((delta_x*delta_x)+(delta_y*delta_y))>sp eed) {
_y -= speed*Math.cos(_rotation*(Math.PI/180));
_x += speed*Math.sin(_rotation*(Math.PI/180));
}
//
// loop to opposite side of the masked area when the beetle travels off-screen
if (_y<0) {
_y = 232;
}
if (_y>232) {
_y = 0;
}
if (_x<125) {
_x = 465;
}
if (_x>465) {
_x = 125;
}
//
// maintain position and rotation of beetle shadow
with (_root.shadow) {
_x = this._x+3;
_y = this._y+3;
_rotation = this._rotation+90;
}
}
Array Guru Needed ,( Swap Depths)
swap depths array
Hi Everyone
im kinda hoping that someone can point me in the right direction with this un'.. so thanks for even reading the post
right,
i need to get a system that uses a variable of a clip, z , ( z depth) to check against other clips z variable and to swap depths if it is a higher value,
( each of these clips gets duplicated many times and is not fixed ..)( so in the dupe stage maybe the original array could be built up ?)
, eg to keep their layer orders relavant to their 'z' depth variables..
i 'think' i need to sort out an array so that i can keep track of their layer names and z depths, to then call upon in the swap deths command if and when its needed..
does anyone know of a good way to do this ?.. or even point me in the direction of some good tutorials ?.. ( ive tried thwe windows one and a few others but they dont quite explain it right...
many thanks in advance..
Shane
Very Basic Action Script Help Needed From A Guru
Hello!!
Let me explain what im trying to do, i hope one of you guys will help me! Its very basic, but having absolutely no actionscript experience its tough for me!
Basically in one keyframe i want an input text field, with a button
with a script like this
If userinput = "word1" THEN
load frame(1)
If userinput = "word2" THEN
load frame(2)
if userinput = "word3" THEN
load frame(3)
else
load frame (4)
Frame four would contain some text saying that the users submission was incorrect, please click back to try again!
Im sorry if this post seems silly!
n
Flash Guru Needed.....Odd Symbol Duplication.
Hi,
Take a look at this site: website
mouse over the polaroids on the right, then click thru the page tabs from left to right then right to left...when u do the latter u should see one of the polaroids flickering. This can be stopped by using a stop() in the right place, but if u mouse over again you'll see that there now seems to be two instances of the polaroid where there was one....
I'm stumped. Using Flash MX 2004...the fla is here: fla file
If anyone has any idea what could cause this behaviour please get in touch.
Regards,
Jason.
Flipping Images - Help From Flash Guru Needed
I am in the process of creating a Flash widget for a client. I am an accomplished Flash designer, but this particular project has got me stumped!
I have posted a “proof of concept” at www.fruitysolutions.com/stuff/flipping.html so you can see what I am trying to do. Obviously the images used will be different in the final version!
The client absolutely loves the concept, but the current approach that I have taken just isn't practical. I have used Swift3D to produce the animated squares manually, and then pieced them together in Flash. This is fine for 6 squares, but the client wants the image to be divided up into about 100 squares, which translates into a lot of manual work! In addition, the SWF file is going to get very big very quickly due to all the frames needed for each square. Lastly, the client wants the option to change the images used at a later date, which simply isn't an option at the moment without starting from scratch.
I cannot think of an easy way around the above problems other than producing the animation at run time, which is what I am trying to do now. However, I can't think where to start! Ideally, there would be two JPGs which Flash would carve up into squares and animate itself but this is really pushing my abilities.
Any ideas??
XML Guru To Help Me Describe 3rd Level Nodes Needed
I need to be able to describe
deeper level nodes for 3 levels menu
How do I describe ]<sub_subLevel1> and <subLevel1> and its nodes
HTML Code:
<Menu>
<Level1>
<l></l>
<U></U>
<c></c>
<subLevel1>
<sub_l></sub_l>
<sub_U></sub_U>
<sub_c></sub_c>
</subLevel1>
<sub_subLevel1>
<sub_sub_l></sub_sub_l>
<sub_sub_U></sub_sub_U>
<sub_sub_c></sub_sub_c>
</sub_subLevel1>
</Level1>
THANKS A TON
Flipping Images - Help From Flash Guru Needed
I am in the process of creating a Flash widget for a client. I am an accomplished Flash designer, but this particular project has got me stumped!
I have posted a “proof of concept” at www.fruitysolutions.com/stuff/flipping.html so you can see what I am trying to do. Obviously the images used will be different in the final version!
The client absolutely loves the concept, but the current approach that I have taken just isn't practical. I have used Swift3D to produce the animated squares manually, and then pieced them together in Flash. This is fine for 6 squares, but the client wants the image to be divided up into about 100 squares, which translates into a lot of manual work! In addition, the SWF file is going to get very big very quickly due to all the frames needed for each square. Lastly, the client wants the option to change the images used at a later date, which simply isn't an option at the moment without starting from scratch.
I cannot think of an easy way around the above problems other than producing the animation at run time, which is what I am trying to do now. However, I can't think where to start! Ideally, there would be two JPGs which Flash would carve up into squares and animate itself but this is really pushing my abilities.
Any ideas??
Flipping Images - Help From Flash Guru Needed
I am in the process of creating a Flash widget for a client. I am an accomplished Flash designer, but this particular project has got me stumped!
I have posted a “proof of concept” at www.fruitysolutions.com/stuff/flipping.html so you can see what I am trying to do. Obviously the images used will be different in the final version!
The client absolutely loves the concept, but the current approach that I have taken just isn't practical. I have used Swift3D to produce the animated squares manually, and then pieced them together in Flash. This is fine for 6 squares, but the client wants the image to be divided up into about 100 squares, which translates into a lot of manual work! In addition, the SWF file is going to get very big very quickly due to all the frames needed for each square. Lastly, the client wants the option to change the images used at a later date, which simply isn't an option at the moment without starting from scratch.
I cannot think of an easy way around the above problems other than producing the animation at run time, which is what I am trying to do now. However, I can't think where to start! Ideally, there would be two JPGs which Flash would carve up into squares and animate itself but this is really pushing my abilities.
Any ideas??
Flipping Images - Help From Flash Guru Needed
I am in the process of creating a Flash widget for a client. I am an accomplished Flash designer, but this particular project has got me stumped!
I have posted a “proof of concept” at www.fruitysolutions.com/stuff/flipping.html so you can see what I am trying to do. Obviously the images used will be different in the final version!
The client absolutely loves the concept, but the current approach that I have taken just isn't practical. I have used Swift3D to produce the animated squares manually, and then pieced them together in Flash. This is fine for 6 squares, but the client wants the image to be divided up into about 100 squares, which translates into a lot of manual work! In addition, the SWF file is going to get very big very quickly due to all the frames needed for each square. Lastly, the client wants the option to change the images used at a later date, which simply isn't an option at the moment without starting from scratch.
I cannot think of an easy way around the above problems other than producing the animation at run time, which is what I am trying to do now. However, I can't think where to start! Ideally, there would be two JPGs which Flash would carve up into squares and animate itself but this is really pushing my abilities.
Any ideas??
Reading Bits From Oracle (advice Needed From Guru)
One of my clients asked me today if it was possible to read a stream of bits from an oracle database (header and file information for jpegs, mp3's and such) into flash and reconstruct them to display the picture or play the sound or video. I told him that probably the best way to do it is to write a server-side script in php (cfml he'll probably use, he said) and have it write the file and then read it from flash, because I didn't think that it was possible to have flash reconstruct the file. (Maybe the picture file using binary bitshifting and the color object, but that's just absurd sounding to me.)
Anyways, is there anything I'm missing? I'd doubt they'd want to use flashcomm server because of the expense, but if it's possible in any way, shape or form please direct me to where I can read up about it.
Thanks to anyone who answers,
--EP
Reading Bits From Oracle (advice Needed From Guru)
One of my clients asked me today if it was possible to read a stream of bits from an oracle database (header and file information for jpegs, mp3's and such) into flash and reconstruct them to display the picture or play the sound or video. I told him that probably the best way to do it is to write a server-side script in php (cfml he'll probably use, he said) and have it write the file and then read it from flash, because I didn't think that it was possible to have flash reconstruct the file. (Maybe the picture file using binary bitshifting and the color object, but that's just absurd sounding to me.)
Anyways, is there anything I'm missing? I'd doubt they'd want to use flashcomm server because of the expense, but if it's possible in any way, shape or form please direct me to where I can read up about it.
Thanks to anyone who answers,
--EP
Guru Advice Needed: Is 75 Lines Of Code Too Much For A Clip? Prototype Better?
If any of you could give this a look I'd be grateful.
http://www.geocities.com/vegasdzl/
It uses the set.Transform method of the color object and works fine. Click anywhere and the clips randomly colorize and return to onLoad state no problem. The problem is that it requires about 75 lines of code per clip and I thought that functions would be better so I thought about prototypes. My question. Should I write new clip methods using a prototype for this or do you think keeping the code as is would be satisfactory? Any insights are appreciated. I'm not looking for any code handouts just a quick answer from those of you with guru experience and the Color object methods. Thanks to anyone who can give it a quick glance.
|