So the idea is to have external XML file through which i define parameters of flash movie/stage/movieclip/gallery and so on.
you can always point me right away to good tutorial but here is the deal, i read plenty, it seems none of them touch the aspect of how my logic works right now for solution that i think i need.
my logic might be wrong, so i am here to test it.
please help me out with any feed back, i would appreciate it greatly
so i parse the XML file in AS3
everything is great, as i do standard approach that can be found on kirupa’s tutorial: Using XML in Flash CS3/AS3
i go through the parameters to retrieve data and i trace them within the function to see if i get them, and i do, i store parametars values in variables and if needed can pass on to other functions by referencing to them from parsing function and they can execute that data in proper manner
but here is where i am stuck,
i dont want to pass those parameter through additional functions unless those functions will require to reference the value of specific parameter down the road. so i want to be able to retrieve data stored in function’s variable scope, and i would like to access it outside of that scope.
is there way to return value from function in form of Array after i have parsed all of the parameters and added them to an array within that function.
so that now i have array with parameters outside of the original function, and can set any variable to specific array entry. so that later i can define functions that are not tied to parsing function of XML data that processing info.
i also tried to define variable that would hold data before function would reference them
so it would write new data to that predefined variable, that in theory i shoulde be able now to trace value of that variable after function had ran and defined valued of predefined variable. but it seems not to work : /
that makes sence?