I have made an animation that has an external AS file. I want to be able to just edit the AS file and the animation to update. Right now the way I have it set up is in the action script of the fla i have the following:
include "regionMap.as" I am pretty new to Flash so i'm not sure if this is the best way to do this. The way it is now if i edit the AS file and save it..nothing happens unless i go into the fla and publish it again. Is there another way of doing this so that all the user has to do is edit the AS file? I'm sure there is, but I just am not sure how.
Ive got some external HTML text being fed into flash, all I want to do is to edit the <li> tag in the HTML (not CSS) so the bullets sit flush to the left with the rest of the text, thats it! is there something i can put in the HTML that will resolve this such as:
i'm trying to change the color of an instance that's inside an external .swf that i load into my main .swf
the code is basically this:
- in the main .swf: this.createEmptyMovieClip ("portfolioConteudo", 101); portfolioConteudo.loadMovie ("portfolio.swf");
[Code].....
when i click on myButton, the _root.portfolioConteudo.webContainer goes to _x position 50, but the color stays the same. but if i change the target of the corWebFolio to _root.portfolioConteudo, the whole swf becomes red, i mean, the code is right, except for the target path.
I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?
I need to hold a couple of variables in an outside file that can be incremented by user activity -- not just during one interaction with the swf, but with every one.I have no problems with using loadVars and I get the loadandsend process; it is just that I have no background in cgi or asp for holding the variable and being able to update it.I know I cannot write to a txt file -- that is what I have been using thus far with loadVars for importing values, but this will not help me here. I know it should be a fairly simple script -- I also know I ought to pick up php, but for the moment -- until a greater amount of time comes my way -- I turn to you.
I wanted to put there a background that will change (fade out and than fade in another one) according to menu position. It would load external *.swf's. For example I'm in "A" and the background is "bg01.swf", after clicking "B" the "bg01.swf" background would unload/stop (fade out) and than the "bg02.swf" would fade in and start to animate. I can't put the right script in the menu system. The source files are attached to this post (Flash CS3 source file and the backgrounds):
If you load an external swf and after it is totally loaded give it as to change size properties. the file jumps from his size exactly to the pretended.
I have an external swf that loads into my main movie using loadMovie. The original .swf that is being loaded is larger than what I'd like to appear in the main movie. Is it possible to tell the movie clip that the external is being loaded into, to reduce the size of the loaded .swf?
I read through the random colour tutorial with interest, and wondered to myself if an objects colour could be altered in other ways... such as by a weather feed or stocks feed. I thought it would be interesting if the design of a site could be changed regularly by outside influences.
I'm working on the example attached trying to get my css to alter the colour of my xml links. Despite doing what the forums say you should it's not working. What am I doing wrong?
I read through the random colour tutorial with interest, and wondered to myself if an objects colour could be altered in other ways... such as by a weather feed or stocks feed.I thought it would be interesting if the design of a site could be changed regularly by outside influences.
We are working on a pretty robust "shirt design" application that allows users to create custom t-shirt designs, create vector output automatically and send the files to a printer.
Inside of the application, you can select high resolution artwork in PNG format and add that to your shirt design. We would like to add the functionality to :
1) Change the Hue and Saturation of the PNG in question (probably using the ColorMatrixFilter class, or something along those lines). 2) Be able to change the hue of different parts of the PNG... (I know , this is probably tricky).
For example, if you have a PNG of a Red Convertible with black tires, how would we even go about changing the color of the convertible and the tires seperately?
How can I replace text loaded from an external file with text from another external file? Using setInterval and calling the .load from a function or something? In the example below I'm calling an external text file, could this also work with an .xml file with cycling through the children?
I have changed the "src=filname.swf" in the <embed> tag as well as the "name=filename" part of the <embed> tag however to no avail. The video still no longer plays after I rename the file. It was built in ActionScript3 I think.
I'm trying to change the font within the flash file of this site. Its one single swf, with a series of .txt files loaded through actionscript 2.0. How do I change the font of the text within the scrolling box at the right?
I have a simple button function that changes the selectedIndex on a view stack without using the menu bar component. I call the function from the click property on the button and pass an int as the index I want to jump to. When I had the code on the application MXML file everything worked fine. After moving my actionscript to a separate file, I get access of undefined property errors:
protected function changeView(index:int):void { myViewStack.selectedIndex = index;
I have a simple button function that changes the selectedIndex on a view stack without using the menu bar component. I call the function from the click property on the button and pass an int as the index I want to jump to. When I had the code on the application MXML file everything worked fine. After moving my actionscript to a separate file, I get access of undefined property errors:
protected function changeView(index:int):void { myViewStack.selectedIndex = index; }
How do I get the .as file to recognize the myViewStack component? Do I need to reference Main.MXML somewhere in the .as file? Thanks.
I am using in AS3 "External Interface ". When I call the JS function that is on the same page as swf everything works fine.
I added a link in the html page to an external JS file, when I move the JS function to the external JS file the website crushes.
I would prefer to have all my JS functions on an external file so I can use them in the future in other project and it also makes it easier for me to update the site.
how to call a JS function that is on an external file from AS3?
Structure: There is 1 main file that loads external SWF files depending on what is clicked on.One of the external SWF files loads its text from external text files. This works fine when viewing the SWF applet on its own. But when viewing as a whole site, the text doesnt appear. Very annoying.I made that particular SWF on my mums computer running Flash MX 2004The flash file itself uses the Scrollbar component from MX.Could someone tell me why the text doesnt load in this scenario? It runs fine on its own, just not as an external SWF.
I made a banner that will appear at the top of a website, though I just found out I need to decrease the width of it. I would like to export it at a smaller size, so I go to Publish Settings and I notice I can change the width and height. How can I do this while maintaing its proportions? It is currently 791 x 275. Using CS3.
I am uploading videos to my new site (aspirin creative) and the player will not recognize any .f4v videos. I changed the extension on one to .flv and it now appears to recognize and play the video. Also, I didnt build the site myself and the developer not Define terms of video playback (which has been less than great so far) the player seems to be a rather strange resolution (600x340) which is not native 16:9 and wont recognize 4:3 encodes without stretching and warping. I have tried to encode close to this in media encoder but as soon as I select .flv over .f4v in the options my ratios seem to go mad, not keeping the preset and not letting me set to anything that is actually 16:9?!
Basically I have media being parsed and played by reference of an XML document using AS3. These media files are gonna be seperated into seperate XML files then what I was planning was to just dynamically change which XML file is being referenced. Problem is, the code only fires once on frame 2 and I can't seem to figure out how to switch out the XML file for a different one upon an event trigger. "new URLRequest [URL]" isn't working...do I need to reload a whole other string of code to change to a different XML document?
Whilst I did some flash YEARS ago, I am now needing to get back into it. And whilst I have a course booked, I need to do something now. I have downloaded a flash file with a mask from an image website. I want to double the size of the file, but the masking now only highlights part of the image.
how can i change the color of a movie clip by a text file.i want to give option to user that he can pass a color code (0Xrrrrrr) and it got reflected in the swf.
Creating a non-interactive status display: I want to have theflash display reflect data in a server-based XML-file. So far thisis easy. But I want the display to change everytime the XML filechanges-- in order to reflect status changes. I've used anXMLConnector and specified it and the trigger in the first frame.The Flash code catches and shows the XML values initially . Butwhen I edit the XML file, the new values are never picked up byFlash- its almost as though the values are cached. How do I getFlash to regularly be updated from a changing XML file? I've alsotried putting the trigger in a loop- but that doesn't workeither.
I would like to have flash www page with dimentions 960x653 pixels. There will be 5 scenes navigated by buttons and each of the scene will have different background color. I would like to have fullscreen background also (filling the rest of the space), and to make it I used "Auto-Resizing and Centering Content", based on tutorial:
[URL]
To make it working with my existing animation I made 960x653 UILoader instead the centerRectangle, and I loaded my swf animation there. Fullscreen background is working - when I scale window of the viewer the main scene keeps its dimentions and background fills the rest of the space, what is what I wanted to. My included animation is working perfectly.
But I still have one issue to solve. How to change my fullscreen background while switching scenes? Is it possible to change it from included swf animation?
I have written an Air program that mirrors a directory tree. The problem is that the destination folder structure and content need to be identical - right down to the creationDate and modificaitonDate file attributes. How can I change these file attributes using Adobe Air? I'm able to READ them both just fine, but the properties are read-only. How do I change them?
I've re done a couple of pages on my website and as a result of the new design have had to change some of the coding from being on the timeline to being in an external as document linked to my fla. This is significant only because I can link to external pdf.zips no problem on the timeline but I can't seem to translate the code to the external file. Can anyone out there help me out with this (hopefully) simply problem?I'm playing with different variations of this below but I'm constantly getting the 1180: Call to a possibly undefined method navigateToURL.
function onEnglishClick(event:MouseEvent):void { var request:URLRequest = new URLRequest("http://www.bigredcreativeconcepts.com/UB_Flyer_English.pdf.zip");