Im trying to make a website using swfaddress, and i cant figure out how to do the dynamics with arrays, rather then putting the motion tweening in the frames. What i got so far: everything is working as long as you use the buttons on the page, each button in the menu makes the previous page go away and brings up a new page according to the button pressed (its just white square, that comes from the bottom of the screen) dynamically.
Buttons and pages are located in the first frame, then i ve got keyframes: about, gallery, etc. The problem comes up when i upload it in the internet, and i try to use the back and forward buttons in the browser, my white square windows (pages) are only capable of moving out of the page, but a new white square doesnt come up.
how to get your logo to appear next to the address of your web site when your website address is typed in, for example if you look at the website address at the top of the screen you see (logo) [URL]
How do I get the IP address of a certain website using Flex 4 via an AIR application? I know that this is do-able using ping but how can I replicate the same only this time, using AS3 in Flex 4 and as an AIR application.
I'd like to know can I make my flash be affected when browsers address bar changes.Sample: [url]....What do I need: flash website with subpages.I want it to call a function to change visible page into one put in the address bar, like: I click a "info" button in flash flash shows info page and changes address bar in browser to http:[url]...info and vice versa: I put http:[url]...info into address bar flash changes it's subpage to info.I want it to be one flash file as index.php page without any reloadings, just like in[url].....
I'm trying to implement swf address with my website that uses external swfs as the 'pages'.
[URL]
But I haven't been able to find an example file with example code that I can ferret out how to apply this to my website. I've also checked the swfaddress and while there is a link to this:[URL].Also... is it unwise to retroactively work in swfaddress to an already compiled as or should i be starting fresh, knowing that I am going to give unique urls to various buttons, that when clicked, bring up a certain 'page' or external swf?
I have a "handmade" button (_btn as instance name), with only a dynamicText inside (or can I say one dynaticText for each of the four button modes). The dynamicText for Up mode has an instance name of "_text".
So if I am working on the AS of the movieClip that contains the button, how can I address the text of the dynamic text?[code]...
I have a flash site which reads deep links from the URL, then using c# asp.net we read the url and write the appropriate meta tags for the page being requested. [code]...
I have created an array, however, when I go to call up this array within a dynamic text box, for instance, putting 'varname[1]', into the variable field. However, this does not return a result. Is there something I'm doing wrong here, or do I have to feed the array into normal variables for the dynamic text box to be able to read it?
following on from B.Rich's great Multi-Dimensional Arrays and attachMovie tutorial, i'm trying to load the array from an external source.i've got a text file that outputs: url... i then try to break this down in flash into a multi-dimensional array that provides info for dynamic buttons:[code]however its not working at all. i'm not sure if its because the attachMovie loop is not getting initiated or what..
I would like one of the dynamic text boxes (picked at random) to display the Answer and the other 3 to be filled in with (Answer+2, Answer-2, Answer*5).My problem seems to be in picking the random box and then assigning Answer to itThis is my test actionscript so far..
questionArray = ["What is 5 multiplied by 5?"]; answerArray = ["25"]; Question = (questionArray [0]);
I need to create dynamic arrays with field names loaded from a database. So, the names for the fields will be always different.Then, suppose I have the names "product" and "color" to create the following array structure dynamically:var myarray:Array = new Array;myarray[0] = ({product:undefined,color:undefined});But in other ocasion, the names may be say "brand" and "model", so the array will be:myarray[0] = ({brand:undefined,model:undefined});
following on from B.Rich's great Multi-Dimensional Arrays and attachMovie tutorial, i'm trying to load the array from an external source.i've got a text file that outputs[URL]i then try to break this down in flash into a multi-dimensional array that provides info for dynamic buttons:
var myVars:LoadVars = new LoadVars(); var newArray:Array = new Array(); myVars.onLoad = function(success) {
I have created an array, however, when I go to call up this array within a dynamic text box, for instance, putting 'varname[1]', into the variable field. However, this does not return a result. Is there something I'm doing wrong here, or do I have to feed the array into normal variables for the dynamic text box to be able to read it?
I'm extremely new to coding in Flash and facing a tight deadline. What I'm trying to accomplish is to generate a hitTestObject for dynamically named instances being pulled out of arrays.[code]
Then you could use this array to reference clips dynamicly or on stage to do stuff.I was trying to do the same with AS3 but came across a problem I've not found an answer to yet. I created the following code:
Code: Select allvar letterArray:Array=new Array("A","B"); var buttonArray:Array = new Array(); //
I get: Type Coercion failed: cannot convert []@369e8581 to flash.display.MovieClip.but if I remove that line, it works. My problem is that I need to make it a "var" of type movieclip before I can assign a listener to it. Why can't I build an array of movieclip names using:
I posted this a few days ago and am still stuck. I have read a myriad of tutorials on arrays, and still cannot fathom out where I am going wrong. I have commented the code. The story is as follows: I want to be able to create a dynamic list. In the library I have exported for .as a movie clip given the name "nav"
I'm not quite sure how to do this - I'm building an admin interface to sort the order of a series of flash slides into a dynamic presentation. The admin interface pulls the slides from xml and displays each as a thumbnail. The thumbnails, when dragged, reorder themselves in the array appropriately. The problem is, I want the actual array of slides to reorganize itself accordingly. My code is this:
function onThumbPress( e:MouseEvent ):void { e.target.startDrag(); } function onThumbRelease( e:MouseEvent ):void { e.currentTarget.stopDrag(); sortSlides(); [Code] .....
So what I want to do is take the change in the array (say 0 moves in front of 1 in project_thumbs_array) - and make sure that my other array (project_clips_array) moves item 0 in front of 1 as well. I thought something like this might work but it doesn't: project_clips_array.sortOn ('project_thumbs_array.x',Array.NUMERIC);
I would like to try to build a big site - something like facebook () but in flash. What is the optimal resolution for this mission? I'm planning to do the integration like that:
What classes should I pay attention for? I want to apply the aforementioned integration for anything: Login the user, read messages etc. I think the "loyal" way to transfer data is with XML, but for a short and simple (username and password only) Login- maybe in fact the best way is GET method? or still XML? I heard the best way is to create one function for the Integration-how do u think to do it?
I am running into some trouble adding an array into another array to create a multi-dimensional array.The code appears as below:
var slideDataArray:Array = new Array(); var slideShowDataArray:Array = new Array(); slideDataArray[0] = xmlData.SlideShowParameters.SlideShowImagesDirectory;[code]........
I am looking for a means of placing the slideDataArray into a 'slot' or value of slideShowDataArray so that I can in the end pass the slideShowDataArray as a parameter to another function.As of now, the last slideDataArray appears 11 times (the loop runs 11 times) in slideShowDataArray and the way the code is written the slideDataArray is unique every iteration of the loop.
In my buttonView class I have a function to add all my button_mc's depending on what's in my XML file. (The XML file is basically several biographys of guys with several subpages of each) I want to add a listener to each so when you click on whichever button it goes to the correct biography & subpage. I'm just at a loss as to how to proceed from where I'm at.[code]...
I have my main movie, which contains the logo and navigation.I have a blank movieclip created with actionscript that loads the individual movie swf files.That works fine.What I want to do, and which I can't figure out is dynamically have the main navigation buttons' text indicate what page you the user is on. Right now the code is on each button instance, example:[code]so the variable aMenu holds the moveclip names of the buttons. pageHolder holds the the name of the current page that is loaded.Thats how I change the pages to be loaded. To explain, if you look at the button code, the text for each button is by default greay and when you rollover it becomes black and off and it becomes gray again. That is on the first frame. On the second frame the text is black.In the code I tried to make the black dynamically, but it didn't work, so I settled for going to the second frame and stopping.My second question(much shorter I promise).I guess its preference, but is it generally good to put the code on each instance of a button or put in in the main frame where your code lies.
I'm creating a website for a friend which it's being made using Dynamic Texts (he wants different switchable languages). Problems come when submitting the Form... I've used the same Form model (formmail) for other websites which did not use any Dynamic Text and they worked without problems. The exact problem is that the submitted Form is not received (don't think it's even sent) to the specified email address. However, if the same website does not contain any dynamic text, then the form works properly and the query is received at my mailbox. Has anybody experienced a similar situation?? I'm completely lost because I can't understand the reason for this behaviour, the only thing I know for sure is that the problem is variable related.
I've got a bit that loads a big chunk of xml data about products.I push product info into an array(e.g. productArray), then add that array to another array (e.g. allProductsArray)How do I sort those arrays? For instance, if I want to sort the allProductsArray based on the info in productArray[0]?Alternatively, would something other tha an array of arrays be a better route?This loader loads the same sort of info for many different clients, so the bit to sort on will change.
I'm trying to write a function where I can specify any amount of array, and the return value will be an array containing the contents of all of the specified arrays.I've done this, but it seems like a really slow and ugly way of doing it:
var ar1:Array = [1,2,3,4,5,6,7,8,9]; var ar2:Array = ['a','b','c','d','e','f','g','h']; function merge(...multi):Array[code].....
Is there an inbuilt and more efficient / nice way of achieving this? The result does not need to be in the same order as the input - completely unsorted is fine.
A little explanation: Im making a random arranging number Array. So instead of using a loop and assigning 0 to first array element, 1 to second, etc.I need to make it totally random but without repeating any numbers. To do that I made a second Array that will have the same number of children to serve as a reference.Each of them will be an Object with a property "num" , wich will be its actual number, and a property "called" wich defaults to false.Like this:
ActionScript Code: for(var i:int=0;i<vQuantity;i++){ ranArray.push( new Object() );
I've had a problem for awhile that was really odd. After some intense debugging, I realized the problem lied in setting an array equal to another array.[code] When setting one array equal to another, the values aren't copied over, but a reference to that memory is stored. So no matter which variable you change, they are both references to the same memory and thus both will reflect the changes.With other data types, this doesn't happen.I could fix it by looping through t1 and using push() to add each index from t1 into t2, but that seems a little messy.