See Related Forum Messages: Follow the Links Below to View Complete Thread
Remote Php To Parse Csv, Return Html?
Here's the problem:
Our main server doesn't run php, but a secondary server does. (long story, just follow along for now, don't ask why). I'm building a flash file that needs to go through a CSV file, (comma separated values, output from Excel) and php seems to be the ticket there. Is there a way to tell flash to call a php page that'll go through the csv file and return the values to the flash file?
Please?
Remote SharedObject Parse Realtime
I'm trying to have the sharedobject textfield value in my swf (username) update the shared object on the fms itself constantly. This is the code I have so far, it only works until i type something but it doesnt update. I'm checking the SharedObjects pane in FMS admin to debug, I only see the value I set at the beginning.
The purpose of doing this is because Im trying to reflect a value i have in realtime over and over, like seconds on a clock but its reading the value locally. Any help greatly appreciated. Here's the code.
quote:
// start
var username:TextField;
var my_nc:NetConnection = new NetConnection();
my_nc.connect("rtmp://myhost.com/test");
var myRemote_so = SharedObject.getRemote("mo", my_nc.uri, false);
myRemote_so.connect(my_nc);
myRemote_so.onSync = function(list) {
for (var k in list) {
trace("name = "+ list[k].name + ", event = " + list[k].code);
}
myRemote_so.data.username = username.text;
}
// end
Cant Get Flash To Display On Remote Server
I cannot get a simple flash example to work on the remote server, the example at http://www.recesstheband.com/RecessIntro.html
only shows a white space where the flash intro should be. The hosting company says the flash module is enabled. The html and swf work on my local computer. Any ideas on how to debug what is happening?
Display Item One By One.
Hey,
Yesterdag I created this: http://www.freshface.be/work/bookmarks/
I created some site's and other flash apps. witch use and xml file that contains the content.
But now I want to add an effect.
I'm not sure how to do so I need your help.
I used this code to display the items:
ActionScript Code:
menuXml = new XML();
menuXml.ignoreWhite = true;
menuXml.onLoad = function(success) {
if (success) {
menuItem = this.firstChild.childNodes;
for (var i = 0; i<menuItem.length; i++) {
item = content_mc.attachMovie("itemClip", "itemClip"+i, i) item._x = 0;
item._y = 14*i;
item.useHandCursor = true;
// Info in sublist
item.myName.text = menuItem[i].attributes.myName;
item.myCat.text = menuItem[i].attributes.myCat;
// Info in info panel
item.myUrl = menuItem[i].attributes.myUrl;
item.onRelease = function() {
getURL(this.myUrl,"_blank");
};
item.onRollOut = function() {
this.back._alpha = 100;
};
item.onRollOver = function() {
this.back._alpha = 80;
};
}
}
};
menuXml.load("bookmarks.xml");
How do I display the items one by one?
Thx in advance.
How To Display Selected Item
Hi.How can i display every item selected, that once you select an item, it directly goes to the complete list automatically(its ok if it scrolls, im gonna put some scrolling on it anyway). http://www.freewebs.com/kieserr/add.swf ftp://www.freewebs.com/kieserr/add.fla Im planning on putting only 5 items on the partial selected item lists. Also, how can you make 2 decimal places to display? What i have is inconsistent. I want to make it appear i.e. (if its 125, it has to display 125.00) I tried different Math.round scripts but it did not work.
Display An Array Item Only Once?
Hi All,
I've created an XML file (Sample below).
Code:
<faq>
<category>Notifications</category>
<faqno>1.1</faqno>
<question><![CDATA[Question 1.1]]></question>
<response><![CDATA[Response 1.1]]></response>
<revdate><01/01/06></revdate>
</faq>
I've loaded it into my flash movie and created an array.
I use the following code to display the array results in a dynamic text box (list). This all works, after a lot of work and much to my amazement.
Code:
list = "";
for (i=0; i<faqs.length; i++) {
list += "<br><br><b>" + faqs[i].category + "<br><br>" + faqs[i].faqno + " " + faqs[i].question + "</b><br>" + faqs[i].response + "<br><p align='right'><font size='11px'> Last Revision: " + faqs[i].revdate + "</font></p>";
}
stop();
Finally my question: Can I modify the display code in order to display the category only once until a new category is reached?
Thanks a bunch,
Debbie
[F8] Display Array Item
hi
i am trying to display part of an array, and all i seem to get is [object,Object]
select_lv.onLoad = function(Boolean) {
for (var i:Number=0; i < this.n; i++) {
scoreInfo.push({id:this["id"+i],category:this["category"+i] });
category.text = (scoreInfo[0]);
}
}
i want to show the details of the multidimensional array scoreInfo in category.text
thanks
How To Display Selected Item
Hi.How can i display every item selected, that once you select an item, it directly goes to the complete list automatically(its ok if it scrolls, im gonna put some scrolling on it anyway). http://www.freewebs.com/kieserr/add.swf ftp://www.freewebs.com/kieserr/add.fla Im planning on putting only 5 items on the partial selected item lists. Also, how can you make 2 decimal places to display? What i have is inconsistent. I want to make it appear i.e. (if its 125, it has to display 125.00) I tried different Math.round scripts but it did not work.
How To Display Selected Item
How can i display every item selected, that once you select an item, it directly goes to the complete list automatically(its ok if it scrolls, im gonna put some scrolling on it anyway). http://www.freewebs.com/kieserr/add.swf ftp://www.freewebs.com/kieserr/add.flaIm planning on putting only 5 items on the partial selected item lists. Also, how can you make 2 decimal places to display? What i have is inconsistent. I want to make it appear i.e. (if its 125, it has to display 125.00) I tried different Math.round scripts but it did not work.
Display Next Array Item...
i've created an array of 10 items.
the text in the array items are called out by 10 specific buttons, no problem.
the trouble is that i want to create a next and previous button that just displays the next array item, no matter what the currently displayed item is.
does anyone have any suggestions?
Making Combobox Display Certain Item On Load?
How does one, if it's even possible, make a combobox in Flash MX display a certain item somewhere in the middle?
Based on my limited experience with things like radio buttons, I tried this:
On frame one:
code:
function changefunc(comp) {
_level0.theData = (drop_list_1.getSelectedItem().data);
_root.latext.text = (drop_list_1.getSelectedItem().label);
}
drop_list_1.setChangeHandler('changefunc');
stop();
and on frame two:
code:
_root.drop_list_2.setValue(_level0.theData);
stop();
to try and test the theory...and it doesn't work.
Can someone point me to a clue, tutorial, page number of say Colin Mooks' book, etc, where I can learn to accomplish this task?
Thanks!!
=)
Liam
Making Combobox Display Certain Item On Load?
How does one, if it's even possible, make a combobox in Flash MX display a certain item somewhere in the middle?
Based on my limited experience with things like radio buttons, I tried this:
On frame one:
code:
function changefunc(comp) {
_level0.theData = (drop_list_1.getSelectedItem().data);
_root.latext.text = (drop_list_1.getSelectedItem().label);
}
drop_list_1.setChangeHandler('changefunc');
stop();
and on frame two:
code:
_root.drop_list_2.setValue(_level0.theData);
stop();
to try and test the theory...and it doesn't work.
Can someone point me to a clue, tutorial, page number of say Colin Mooks' book, etc, where I can learn to accomplish this task?
Thanks!!
=)
Liam
Making Combobox Display Certain Item On Load?
How does one, if it's even possible, make a combobox in Flash MX display a certain item somewhere in the middle?
Based on my limited experience with things like radio buttons, I tried this:
On frame one:
code:
function changefunc(comp) {
_level0.theData = (drop_list_1.getSelectedItem().data);
_root.latext.text = (drop_list_1.getSelectedItem().label);
}
drop_list_1.setChangeHandler('changefunc');
stop();
and on frame two:
code:
_root.drop_list_2.setValue(_level0.theData);
stop();
to try and test the theory...and it doesn't work.
Can someone point me to a clue, tutorial, page number of say Colin Mooks' book, etc, where I can learn to accomplish this task?
Thanks!!
=)
Liam
On Select List Item Display Picture
ok guys.I have one question:
Here is my AS in frame 1
Code:
//--------Movie Clip Loader----------\
var mcLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
mcLoader.addListener(myListener);
myListener.onLoadProgress = function(target_mc,bytesLoaded,bytesTotal) {
extLoader_mc._visible = true;
var pctLoaded = Math.round(bytesLoaded/bytesTotal*100);
extLoader_mc.extLoaderBar_mc._xscale = pctLoaded;
if (bytesLoaded >= bytesTotal) {
extLoader_mc._visible = false;
}
}
mcLoader.loadClip("",picViewer_mc.picLoader);
//-----------Lists-------------\
var my_list:mx.controls.List;
_global.styles.ScrollSelectList.setStyle("backgroundColor", 0xB5B590);
_global.styles.ScrollSelectList.setStyle("textAlign", "left");
//--------------my_list--------------------\
my_list.addItem({label:"CAISE CONFIATE GALBENECUTIE 5kg",data:"Fructe confiate si fructe natural deshidratate/caiseconfiategalbene.jpg"});
my_list.addItem({label:"CIRESE CONFIATE bidon 10kg",data:"Fructe confiate si fructe natural deshidratate/cireseconfiate.jpg"});
my_list.addItem({label:"CURMALECUTIE 5kg",data:"Fructe confiate si fructe natural deshidratate/caiseconfiategalbene.jpg"});
my_list.addItem({label:"LAMAI CONFIATE bidon 10kg",data:"Fructe confiate si fructe natural deshidratate/caiseconfiategalbene.jpg"});
my_list.addItem({label:"PEPENE CONFIAT bidon 10kg",data:"Fructe confiate si fructe natural deshidratate/caiseconfiategalbene.jpg"});
my_list.addItem({label:"PORTOCALE CONFIATE bidon 10kg",data:"Fructe confiate si fructe natural deshidratate/caiseconfiategalbene.jpg"});
my_list.addItem({label:"SMOCHINECUTIE 5kg",data:"Fructe confiate si fructe natural deshidratate/caiseconfiategalbene.jpg"});
my_list.addItem({label:"VISINE CONFIATE bidon 10kg",data:"Fructe confiate si fructe natural deshidratate/caiseconfiategalbene.jpg"});
my_list.addItem({label:"MIX FRUCTECUTIE 5kg",data:"Fructe confiate si fructe natural deshidratate/caiseconfiategalbene.jpg"});
my_list.addItem({label:"PRUNE USCATECUTIE 5kg",data:"Fructe confiate si fructe natural deshidratate/caiseconfiategalbene.jpg"});
var listenerObject:Object = new Object();
listenerObject.change = function(eventObject:Object) {
mcLoader.loadClip("Fructe confiate si fructe natural deshidratate/caiseconfiategalbene.jpg",picViewer_mc.picLoader);
};
my_list.addEventListener("change", listenerObject);
When i select one item i want to display the pic in the Loader component but i dont know to do that.Any help is appreciated.Thx in advance.
Can I Use Object Property For List Item Display Name?
I use an ArrayCollection of objects as my list's dataProvider and I want the list to display each objects 'name' property as the visual part of the list item.
My class is called Alert so the list displays [Object Alert] in each line. How can I customize what is displayed? (e.g. alert_item.name)
Multi-display Presentation
Hey guys!
I have just been charged with creating a multiple display presentation.
In the past I've done stuff on two monitors but the flash seems to really slow down when doing things like fading pictures in and out. The computer I used then had a gig of ram a 2.5 ghz P4 and an ati 9600.
These presentations are basically just picture slideshows that will have other stuff going on around it.
Now I need to make a four screen setup using the 24 inch Dell flat panels. Can anyone tell me if thats possible. I know I would need to get an SLI configuration, but what about processor speeds? Does anyone think the new dual core processors could handle this?
Or maybe I'm going about this all wrong and I just need to optimize my presentation.
I would love having to avoid using more than one pc to drive everything, especially since my budget is pretty much unlimited.
Thanks for any help!
Display Root Array Item In Nested Text Field?
OK, on the main timeline of an .fla I've got an array...
Code:
var listing:Array = new Array("alpha","beta","gamma","delta","epsilon");
... and a MovieClip with a nested text field, which is on the Stage.
I'd like to place some code on the first (and only) frame of the MovieClip which will display an item from the main-timeline array in the nested text field. The follow does work...
Code:
showList.addEventListener(Event.ENTER_FRAME, refer);
function refer(event:Event){
event.target.text = event.target.parent.parent.listing[3];
}
showList.text = this.parent.parent.listing[4];
... but I'm wondering if there's a way to do it without using an EventListener, or at least not an ENTER_FRAME event. My problem is referencing the main-timeline array from the clip.
Any tips? Many thanks.
Grabbing BitmapData Library Item And Adding To Display List
I can't seem to get this to work with BitmapData library items, though it is working for the MovieClip items...
I have a utility function which grabs items from the library
public static function create(className:String):Class
{
return new (ApplicationDomain.currentDomain.getDefinition(cla ssName) as Class);
}
Here is the code i'm using to add the BitmapData to the stage...
var ChromeBackground:Class = Utilities.create("mc_chromeBackground");
var chromeBG_BD:BitmapData = BitmapData(new ChromeBackground());
var bmp:Bitmap = new Bitmap(chromeBG_BD);
this.addChild (bmp);
The BitmapData object isn't showing up on screen. What am i doing wrong??
THANKS in advance!!!
Lori-
Remote Flash Files Much Larger Than Remote
Hi,
I am developing a Flash 8 Pro site
on a Mac OSX Tiger
For some reason, my published Flash movie files
are much larger than I thought
When I look at the files on my hard drive,
it's telling me that my homepage HTML is around 4kb
and my SWF is around 300kb
When I upload these to my ISP and examine these
same files (using Dreamweaver's Site Managing Feature)
these files clock in at
972 kb for the HTML
176402 kb for SWF
There are a lot of Flash Buttons on the homepage
that in turn use the loadMovie function
Why do the local and remote file sizes differ so much?
thanks
Remote Actionscript Issues - Local Vs Remote
i made web banners with the intent that the shell being the initial swf, could pull an external swf file from a remote site.
view here:
http://www.anthonythomas.com/duplicolorespn/
the main .swf file has to be under 30k, which it is. now the other .swf files load when you rollover the buttons. this method fulfills the 30k requirement on the advertisers side - also allows the creative to have higher res images/swf files hosted on our site/side.
in testing it locally, it all works great...
but when i moved the .swf file to
http://www.justinhale.com/test/
to test it -
the files hang up when you mouse over the buttons - is there a chance you could check out my source?
here:
http://www.justinhale.com/duplicolorbanner.fla
i'd really appreciate any help this forum could offer.
i checked out the security settings. security.allowDomain,
not sure if i'm using it correctly?
thank you,
jh.
How Do I Parse This Into Flash
http://www.weather.gov/tg/datahelp.html
Okay , Im new to data integration e.t.c , but is there a way to extract certain text from a ftp download for use in variables
Thanks
The Best Way To Parse XML In Flash?
Hi Everyone,
I am trying to figure out the best way to load in my XML data into flash so that I can use it within an sequencer-type application you can view here:
http://www.blueprintfilms.com/rebyrth
the idea is that i want the track titles to be loaded in dynamically for easy update.. now what i am attempting to do is create multiple arrays, one say for each track that would store the names of the available samples for that track.
e.g. var track1:Array = new Array('sample1', 'sample2', etc...);
here is how i structured the XML:
Code:
<tracklabels>
<track id='1'>
<sample01>01 OPEN/CLOSE HIHAT</sample01>
<sample02>02 PARTIAL/CLOSE HIHAT</sample02>
</track>
<track id='2'>
<sample01>01 CRASH CLENCH</sample01>
<sample02>02 LIGHT CRASH</sample02>
<sample03>03 LIGHT CRASH CLENCH</sample03>
<sample04>04 RIDE CYMBAL BELL</sample04>
<sample05>05 RIDE CYMBAL TING</sample05>
<sample06>06 SPLASH CYMBAL</sample06>
</track>
<track id='3'>
<sample01>01 SHORT SNARE</sample01>
<sample02>02 STRONG SNARE</sample02>
</track>
</tracklabels>
the problem i am running into is trying to streamline the AS for this. It seems silly to have to write out firstChild.nextSibling.nextSibling.nextSibling.... etc... for say a track that has maybe 10 different samples in it just to extract the XML.
so I have been attempting to accomplish this in a for loop but my script keeps throwing an error:
Code:
var myXML:XML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = tracklabels;
myXML.load('tracklabels.xml');
function tracklabels(loaded){
if (loaded){
var nodes:Array = myXML.firstChild.childNodes;
// create separate arrays for each track //
var track1:Array = new Array;
var track2:Array = new Array;
var track3:Array = new Array;
for (i=0; i<nodes.length; i++){
['track'+i] = [nodes[i].firstChild.firstChild,nodes[i].firstChild.nextSibling.firstChild];
}
trace(track1)
} else{
trace('error');
}
}
i throw the error when I try to call the different track array names within the for loop:
['track'+i] = [nodes[i].firstChild.firstChild,
the must be some simple way to get this data in multiple arrays so I can control it. If anyone has any suggestions or thoughts I'd really appreciate it.
thanks in advance!
+stephen
Can Flash MX Parse URL's
Does anyone know if flash has the ability to 'grab' a web page and then parse the file for output in a flash file ? I know flash can used to call upon say php files and text files
Thanks
Add Item After Selected Item In Tree Component?
I've got a tree component which works great, but I'm trying to add an item at a particular location (immediately after the item they select) into the tree.
The problem is that I'm trying to add an item within a branch. I'm using myTree.getDisplayIndex(myNode) to get the position within the tree, but it gives the location relative to the entire list, but I need to get the position relative to the parent (which is what myNode.parentNode.addTreeNodeAt is trying to write to)...
Anyone know how I can get the position of the item the user selects relative to it's branch???
Thanks!!
How Do I Stop Carousel On Item When Item Is Clicked On?
Yeah ...some of us are still trying to tweak the carousel... I need to know how to stop the carousel when an item in the carousel is clicked on. Of course I'd also like to have that item come to the front and center as well. This carousel is done without XML.
Any help would be greatly appreciated.
here's my current code:
var numOfLogos:Number = 6;
var radiusX:Number = 300;
var radiusY:Number = 50;
var centerX:Number = Stage.width / 2;
var centerY:Number = Stage.height / 2;
var speed:Number = 0.05;
for(var i=0;i
{
var t = this.attachMovie("item"+(i+1),"item"+i,i+1);
t.angle = i * ((Math.PI*2)/numOfLogos);
t.onEnterFrame = mover;
}
function mover()
{
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = this._y /(centerY+radiusY);
this._xscale = this._yscale = s*100;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale) + 100);
}
this.onMouseMove = function()
{
speed = (this._xmouse-centerX)/1500;
}
//INFO PANELS//
phInfoPanel_mc._visible = false;
//NOW FOR THE CLICK ACTIONS//
item0.onRelease = function () {
phInfoPanel_mc._visible = true;
phInfoPanel_mc.swapDepths(Math.round(this._xscale) + 1000);
}
How To Parse SUP Tags In XML To Flash?
Hi, I'm using XML to store the questions of a mathematic MCQ quiz I'm making. Some of the questions require me to input mathematic representation e.g. square of a number.
I was told to use the <sup> tag. But FLASH doesn't not understand the tag and instead replicated the tags as texts. Any solution?
Cheers
Parse HTML In Flash
Hi,
How to parse html in flash.
Can any one tell abt this, Suppose i have 200 lines html is there, In that i want a particular tag. How can i parse that tag.
Plz help on this.
Thanks
Rajesh ...
How Do I Parse XML Into My Flash Movie?
I am using MX 2004 Pro.
I can get XML to load into my flash movie - that's no problem. What I really want to do seems to escape me somehow.
I want to have one xml file, and I want it to dynamically fill the content of different text areas. Here's an example:
<name>John Doe</name>
<objective>To get a job as an accountant</objective>
So I want everything in the <name> tag to show up in one text box, and I want everything in the <objective> tag to show up in another text box.
How do I do that?
Multi Loaded Vars To Multi MC's...Banging My Head Against The Wall
OK I'm banging my head against the wall because this is probably too simple, and I've been working on too many things lately *L*
OK so I've loaded a bunch of vars... let's say var1, var2, var3...var6 from a txt file.
Now I want to send each var to a MC whit similar names - but1, but2, but3...but6
code:
varsFile.onLoad = function(success:Boolean) {
trace("loaded");
for (i=0;i<=6; i++) {
buttonClip.but[i].htmlText = varsFile.var[i];
}
};
I've tried a bunch of different syntaxes, but can't seem to get it to work... HELP!!!!!! LOL
Thanks!!!!
Getting Variables Out Of XML Parse Function (Flash MX)
Hi all,
Been banging my head on the wall trying to figure this out (which probably accounts for the fact that I can't figure it out ;-)).
I have an external XML file which I load in using a function:
f_yearsAvailable();
function f_yearsAvailable() {
xmlYearsAvail = new XML; //creates new XML object
xmlYearsAvail.load("xml/years_available.xml"); //loads the required file into the XML Object
xmlYearsAvail.ignoreWhite = true; // 'strips' whitespace from file
xmlYearsAvail.onLoad = parseYA; //calls XML parse function once XML file has loaded
}
function parseYA() { //XML parsing function
mainNode = xmlYearsAvail.firstChild;
mainName = mainNode.nodeName;
//Just a check to see if XML file is formatted properly
if (mainName.toUpperCase() <> "YEARS_AVAILABLE") {
trace("MainNode name is incorrect in Years_available doc(should be YEARS_AVAILABLE)");
}//if
childrenOfMain = new Object();
childrenOfMain = mainNode.childNodes;
yearsAvailable = new Array();//create a new array called yearsAvailable
for (i=0;i<=childrenOfMain.length;i++) {
if (childrenOfMain[i].nodeName <> null) {
thisTag = childrenOfMain[i];
yearsAvailable.push (thisTag.firstChild.nodeValue); //puts each individual YEAR tag into the array
}
}
}
This is the XML file I'm loading in:
<?xml version="1.0"?><YEARS_AVAILABLE>
<YEAR>47</YEAR>
<YEAR>ca.860</YEAR>
<YEAR>1203</YEAR>
<YEAR>1420-1481</YEAR>
<YEAR>1574</YEAR>
<YEAR>1606</YEAR>
<YEAR>1639</YEAR>
<YEAR>1807</YEAR>
<YEAR>1929</YEAR>
<YEAR>1945</YEAR>
<YEAR>1960-1982</YEAR>
<YEAR>1999</YEAR>
</YEARS_AVAILABLE>
If I trace within the parseYA function for the yearsAvailable array, no problem, I get the result, but I can't access the yearsAvailable array outside the function. I think it's something to do with variables being local within functions, but are arrays also local? I've tried putting the yearsAvailable into another array which was initiated in the timeline, but it still doesn't work. Anyone know how to solve this?
Thanks in Advance!
URL Parse From XML In Flash Used In GETURL Action?
hi Everyone , please have a look at the attached Fla file which shows the url coming from the XML file i have shown the URLS in the dynamic text box, There is a button on the stage which needs to function as the dynamic button that changes its URL within the GETURL syntax from the URL which comes from the XML
for example the first url coming from XML is :
Code:
http://www.yahoo.com
so the script behind the Flash button named URLBTN should be changed to :
Code:
on (press) {
getURL("http://www.yahoo.com");
}
similarly if the XML parse the second record the GETURL script modifies it self with the updated url.
Please please please if anyone can help me in that, it will help me a lot in finishing my project.
Many Thanks
F.
Parse Php String Into Flash Array
How exactly do I parse a string given by php in this format...
userid="10","11","12"&imageid="blah","blah","blah"
How could I make a multidimensional array based on that sort of layout?
I have the php all done up and it gives me a somewhat string like that but I am having some trouble getting that pulled up in flash as an array...
Any help would be great I have looked on google and through the board here but most of the things I see are amfphp and I prefer not to use that
Parse Dynamic Data In Flash
What I want is the user to input text, like "Hello my name is Rick" then have flash process the field, and generate images based on each individual character that was given.
Basically, each letter would be turned into an image; a = imageOne_mc, b = imageTwo_mc etc.
I know how to capture data from text fields and manipulate it, but I don't know how to break the data up into individual characters, and assign values to them in an effective and efficient manor.
Any ideas or suggestions?
Parse Youtube URL Into Flash Project
HI.. i want to parse a youtube URL like "http://www.youtube.com/watch?v=pPWDugaPLLE"... so that i can get the flv on this page to be loaded into my own custom player in my swf... i don't have any idea how to do it i will appreciate little help on it.. thanks in advance.. Regards
Creating Multi-buttons To Open Multi-jpegs
I am a newbie to action-script and flash. I have Flash 6.
I am using a template built in flash and there is a sub page that has numerous
buttons with roll-over effects that were pre-built. BUT they don't point to anything yet.
I want the viewer to be able to click on a button and have each one open a different Jpg in a window next to the rows of labeled buttons.
I imagine this is pretty simple...Perhaps you know of a specific tutorial within this flash help site that addresses this?
Or if there are a few things that you can communicate to help me...that would be awesome!
Thank you!
Parse Html Bullets From Data Into Flash?
i realise that Flash has a fairly limited HTML/rich text, im using Generator also and retrieving data from a DB, and content inside it will contain bullets infact alot of them, I want to use the same DB for the html, rather than using a seperate DB for the flash site, is there a way to let Flash translate the bullet tags into flash as perhaps a placeholder for Generator/Flash??
thanks
RM
Make Item Grab Another Item
I am working on a game right and i want oneitem that when it touches the other stays with it like glue here is my code:
instance name:
i have a guy _root.player.hand
A ball _root.ball
so I put on the ball this code....
onClipEvent(enterframe){
if(this.hitTest(_root.player.hand)){
this._x = _root.player.hand._x;
this._y = _root.player.hand._y;
}
When the hand touches the bal he ball goes where the hand was originaly and that is it it never moves again.
can some one help ???
}
Flash Parse Inline Xml Code In HTML Page
I have a movie that loads data via an XML file and that works fine. My question is can I get that same information inline - ie can I have the Flash <object> tag or some xml equivelant on the same page as the xml?
If this is confusing, I am working within an application that allows me to add "panels" of HTML code to a page. I can copy the XML gue from an Office graph and paste it into my HTML and the ActiveX graph reads it. Can I add some xml gue to my HTML page and parse it in my SWF?
Thanks,
Rob.
Specifying The FLV In A Multi-channel Multi-title Player
Hello,
I have Flash 8 Pro that I use to publish an Earth Sciences Agency version 5.1 multi-channel multi-title FLV player on my website. The FLV player is populated using an XML playlist. I'm going through the account setup process at Truveo, which is a search engine dedicated to video, that uses an RSS feed to enter your videos into their search engine. I've set up the RSS feed and it validates.
However, a listing of one of my videos in the search results only points to my site as a whole, rather than to the specific FLV file on a specific channel in the FLV player. I suspect that there is some need in the RSS file to specify the FLV video and also fire an event, plus some type of event listener in my SWF to respond with the correct FLV.
In other words, when the search engine(s) return one of my videos in a search list, and provides a hyperlink to my site, how do I make it open the FLV player at that specific video, rather than just open my site as a whole?
Can anyone point me to a tutorial for how to set that up? Is it even possible?
Thanks,
Tom Wood
Edited: 07/13/2008 at 09:35:46 AM by tomwood2
Flash Fails To Parse PHP Vars When Retrieved By MySQL Query.
FACTS
1. I'm using PHP to query a mySQL database.
2. I'm using the LoadVars class to retrieve those variables from PHP into Flash.
3. I'm using Flash 8, PHP 5, and MySQL 5.
PROBLEM:
Flash will not parse the PHP page if I include a MySQL
query on that page. The variables are passed, but Flash
doesn't read them.
For example, this code below works fine on its own:
Code:
$tagline = " some word";
echo ("&tagline=$tagline");
But when I add the mySQL query, Flash fails to
pickup the variables even though they show up as URL
encoded in the source of the output html page.
Code:
db_connect();
$sql = 'SELECT
tagline
FROM
some_table
ORDER BY RAND() LIMIT 1';
if( ($result = mysql_query($sql)) === FALSE )
{
echo mysql_error();
} else
while ($row = mysql_fetch_assoc($result))
extract($row);
echo ("&tagline=$tagline");
This is the actionscript I'm using:
Code:
tagData = new LoadVars();
tagData.onLoad = function(write){
text = this.tagline;
}
tagData.load("variables.php");
Can anyone think of a workaround for this?
Detect Flash / Display If Have / Display Image If Not.
Im using PHP so this is for "programmers" who use flash (or anyone who knows php enough to make a detection script).
I need to have a flash movie displayed on a page if it can determine whether or not the browser has the flash plugin. If it doesn't (ie can't tell what version, no plugin, etc) then I want it to display a GIF/jPg instead.
Using PHP and Flash 5
Help appreciated.
Multi-multi-dimensional Array?
Can you have an array structured like this?
The idea being that'd we'd have a whole bunch of stores with the same data
School[0] = Store's full name
School[1] = Number of store employees
School[1][0] = Employee 1
School[1][0][0] = Janitor (Title)
School[1][0][1] = Employee 1's hire date
School[1][1] = Employee 2
School[1][1][0] = Sales person (Title)
School[1][1][1] = Employee 2's hire date
And on and on and on
Flash Remote
Hi, i want to try Flash Remoting Classes in as2. (mx.remote.* and mx.rpc)
I try to install it on mac on flash cs3 - installer tells me «An error occured that prevented the intallation from completing.»
What should i do to make it work?
Thanks.
Help Through Remote Assistance For Flash MX
hey guys, i dont check this board much, but my msn handle is eckostylez@hotmail.com if somone has xp and is willing to help me learn some flash stuff through remote assistance that would be great, im not a total newbie at it, i just need to learn more advanced things, and remote assistance is the quickest way to go. thank you for your help
--Chris
Remote Flash File
Does anybody know how i can have my menu in a seperate file from the movie, but have the main movie load it?
|