I have an app that sets a user id on the main timeline (main). It then loads a swf (loader) which loads another swf (video). The video clip needs to access the user id set in the main clip. Previously the video clip was embedded in a movie clip the main clip and I used this:
var xeniumImageLocation:URLRequest = new URLRequest("data/photos/"+ MovieClip(this.parent).uid +".jpg");
Which worked great. Unfortunately it no longer does after breaking the clips apart.
I have read through various articles and can't seem to find an easy way to target the main clip. I'm guessing there is a way that is as easy as AS2 but I don't know the proper syntax.
I am changing the flashvars variables v1=value&v2=value ect then after the flash movie runs I am changing the variables externally by javascript, so far so good.when flash first loads it reads the vars correctly.when I try to read them ( after the change ) it keeps reading the old values.[code]everything works except I cannot seem to read the changed FlashVars.
I am doing an Actionscript 3.0 project which involves introspection. I am wondering if there is a way to get all the classes within a given package structure.
I Have a flashmovie thats almost done and will soon hit the internet, but I want to add some animations into the website it�s two gears that I�m about to put at the bottom of the page and when a button releases in the main flashmovie the two bottom gears will turn a few frames and just stand still.These three movies are all separate (main movie, first gear and second gear).
It's a homepage designed in HTML and flash that has this "main flashmovie" in the middle of the screen, the size is about 1500(width)X800(height). And the gears is about 800wX200h placed at the left and right side bottom of the page. Dont worry the site is easy to apply to any screen resolution.I have been looking everywhere for any soul out there who suffering from the same problem but no success. Is it possible to script a button in the main movie to launch two separate movies in their own contents?
I added a website preloader in a separate scene to the main frame of my website and scripted it to go to and Play the main scene or frame of the website when finished loading. I then put a command in the first frame of the main scene for the movie to stop (); at that point. The problem is that now the buttons on the main page don't respond to any behaviour commands to go to and stop at other frames in the main scene. I'm not sure if this is a conflict between the stop(); command in the main scene and the button behaviour command to go to and stop at another frame or an error with the way I'm identifying the scene and frame.
I have a background swf that has been coded so that it scales with the browser. I want to load the main swf file (main.swf) on top of this bg so that it is always centred on the page.
The project will have a web based interface but the actual presentation will be in flash. So the premise is you create a presentation, flash then reads the XML data, creates a menu and presents the other XML data in a linear fashion and my first question is whether the XML is in the correct format. I am not the one programming the XML side of things we have a .NET programmer doing that and he has not worked with Flash too much and this is also something new for me as well.
Code: Select all<presentation> <info> <name>My First Presentation</name>
I recently made a website and the links for the main page do not seem to link properly to their rightful pages when I put the site online (but it does work well when Im just testing the site on my computer in my Flash program) I know that the website I made is very large - so I was wondering if that could be a reason for why the pages don't load properly - also one of the pages links to another site and although that seems to work on my swf when I play it in my Flash player - it doesn't work when I put it online-
Finally my sound quality is not that great for the site. The songs are in mp3 format - would it be better to make them .wav files?
Or are all these problems related and its just that my computer does not have enough power to convert this massive flash website into a proper swf file? If this is my problem. What do I do?
I have a move that reads class files located in folder called 'src' and has been working once I changed the path to absolute. for some reason now my movie has decided not to work.
this is how I create the path:Go to porperties and click 'Edit' then clicking the AS3 'settings'. I then go to the 'Source path' tab and click 'browse folder' icon to the folder of the classes.having done all this my movie still does not work.
I have an XML doc that was exported from FileMaker Pro that I need to read into flash to get the variables from. The XML doc is laid out like this (shortened for brevity):
It keeps telling me a term is undefined and has no properties. This I've isolated to the backgroundArray.push statement. Just not sure how to fish the data out of that XML doc properly. What call would I use to iterate thru the different ROW tags to get to the DATA info?
I would like to have two applications communicate with each other. One app is a Flash running the browser and the other one is another app of ours that is distributed as *.exe file. We need the C/C++ application to read some info out of the SOL file, that is written by the Flash app.
Any other mean that can be used to read the SOL file from a C/C++ application? How often is the format of the SOL file being changed ?
I know there is a way to read variables from PHP, i have seen the many tutorials. What I want to do is slightly different. I need to load the flash file with a variable.I want the user to have a url containing a variable, the PHP will then get the posted variable and load it into the flash file on the page. Is there a way to load the variable into the flash file?URLtest.php?var="list.xml"Inside PHPget posted variableload flash file and load the var into the actionscriptFlash embeded on page or on a redirect pageActionscript uses variable which was originally embedded in the URL
What I have so far...sure there is a better way to do this and as I learn AS3 I will figure it out. The following is what I put together where I now have three instances of the segmented thumbnail button that shows an image when cliked on. What I figure out why it only reads the one xml file.
My XML files: images, images_a, images_b <images><image full="images/full/image1.jpg" thumb="images/thumb/image1.jpg" /> <image full="images/full/image2.jpg" thumb="images/thumb/image2.jpg" /> <image
So I want to do something very simple I load a jpeg into a bitmapdata instance somewhere in the jpeg is an embedded xmp packet with useful info like image title, caption, copyright info etc... how to read the xmp data from inside a bitmapdata instance??? I have found the xmp library for actionsscript but it is absolutely no help I create actionscript by just creating as3 files in flash and attach my main class to my (empty) .fla file I do NOT use the IDE, FLEX, Flash builder or anything fancy. These are pure custom as3 classes everything is created from code
I am trying to work with this xml in AS3. [URL]. But I am getting a url error. I was wondering how to read this in, or what might be causing me to get this error: ActionScript Code: Error opening URL '[URL]' Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. [URL]&List={76269379-92F6-4418-8605-0A5414F91AA9}&View={9F672220-5766-409C-9C90-D746C4B85223} at SharepointXML_fla::MainTimeline/frame1() The xml shows up when you go here, but it won't read in.
Does AS3 have a Class that can read in lines from a .txt file and assign values to variables. For example, say I have a Player class with three int variables health, armor and damage. I also have a corresponding player.txt file that holds the variables.
health = 3 armor = 4 damage = 5
What code can i use to assign these variables their correct values in Flash.IMPORTANT It must be a txt file. XML is not applicable.
I'm trying to get my program to detect when certain pixels (not shapes) have been hit but don't know what sort of code to use for "reading" pixels. I read about the getPixel method, but it seems that's only for bitmap images?If it helps, I'm trying to put it into use with hitTest, with specific pixels rather than shapes in general.
I'm trying to read a url from an xml file and attach an onRelease event to a movieclip that opens the url when clicked.
Code:
var thelink = getValue(findNode(i, "link")).toString(); var thelink2 = "../news/Press Releases/testpdf.pdf"; if (thelink <> "") { tempMC.bat.onRelease=function(){ getURL(thelink); } }
If I use the "thelink" variable as input to the getURL function, I get a "Page not found" error.If I use the "thelink2", it works as expected.When I look in the debugger, "thelink" and "thelink2" are identical!Here is the code for the findNode function. I've had no problems before with this code, so I don't think the problem is there.
Code: function findNode(node, nodeName) { if (node.nodeName==nodeName)
I was wondering if there was a way to have a flash file read its own flash name and use it as a variable within that swf. ie, 05.swf. I would want 05 to be a variable with the page.
I'm having trouble reading an XMLDocument object that has an xml declaration. When I try to trace the first child of the document I get nothing. I've run into this before but it wasn't a problem because previously I was in control of the format of the xml, so it was no problem to just not have an xml declaration, but for this project I don't have that control.
I'm building a class with AS3 which is supposed to be able to read via php an xml file of the which I specify the url and assign the return to a variable, the as3 cose is the following:
package { public class phpInterfaceClass {
[Code]....
I know that I should make the readXML function return only after the loading event has completed, but I don't know how!
So take the first record and display it like I've shown and then have a couple break lines (not sure how to accomplish this either) and display the next record that was separated by the comma.I have the following AS code which works for one variable but I have more then one like above:
ActionScript Code:
files = new Array(); lv = new LoadVars(); lv.onLoad = function() {