ActionScript 3.0 :: Comunication Between Two SWF Imported?
Oct 21, 2009
have a film with two empty MCs, "mc1" and "mc2", each one load a external swf, so far so good. The film loaded in MC1 must control an especific MC ("mc3") from the film loaded in MC2, and here is the problem. Dont work. I can�t comunicate me with mc3. Here is the code that I use:
link1_mc.addEventListener(MouseEvent.CLICK,link1cl ickPlay);
function link1clickPlay(event:MouseEvent):void {
MovieClip(parent.parent.parent).mc2.mc3.alpha=0.5;
}
View 5 Replies
Similar Posts:
Apr 30, 2009
im having some trouble comunicating between two diferent classes, what i usualy do is to setup a simple class with static object vars inside of it, and on one class with the function "function doSomething(){}" i say in its constructor StaticClass._Var1=this;
and then on every other class i just need to make StaticClass._Var1.doSomething().but this doesnt seem to be a good pratic doesnt it? how can i do this other way? i sometimes have to comunicate with more than 1 class so extending a class its not an option for me, i tried to writte this.dispatchEvent(new Event("event")); in one class and then his.addEventListener("event", appear); in another, but it doesnt go
View 2 Replies
Apr 29, 2009
I'm using the following code to import class functions the import is fine but my question is what are the diffrent ways to use it once imported right now the cam:CameraExample line throws the error TypeError: Error #1009: Cannot access a property or method of a null object reference.[code]...
View 5 Replies
Jul 27, 2009
Is there a way to have imported images automatically update if the original file is changed?
View 1 Replies
Sep 28, 2009
i've imported an flv, it's about 8 seconds long. i'd like to loop it... i thought this would be simple enough... but after doing alot of searches online, i'm getting nowhere...
View 2 Replies
Aug 12, 2010
it seemed like a simple process but I cant seem to get this right... I got a button there, but the URL wont go, ie, the click does nothing.I imported a PSD layered image to Flash CS3, into a new blank layer. I need basically an area of this PSD to be "image mapped" so what I did was create a rectangle with the rect tool, over the area I needed the hot spot.Here I tried to do a transparent box and border (alpha 0) but the outline is still there even though the box is "empty." I did select the transparent box, no color, and tried alpha, both same result)I made that into a symbol, then I double clicked into there to fill in the key pts for the over, hit, etc., states.... I dont have any effects here btw, as simple as we can get.After that I right clicked on the buttonand entered the action script ("reserve" is the name of my button symbol)
reserve.onRelease=function(){
getURL("http://www.redeggnyc.com/menu2.htm");
}
[code].....
View 2 Replies
Apr 10, 2011
I'm putting together a website in Flash CS4, and my Actionscript knowledge is pretty minimal. The site has a portfolio section with a scrollbar, which I modified from a downloadable example I found here: http:[url]...The prewritten code uses xml to import the thumbnails into the scrollbar- all of this is fine and working beautifully so far. What I'd like to do is to have each thumbnail act as a button, so that when clicked, you jump to another page/frame on the timeline. I see that it's very straightforward to either open a 'full' image or to go have the thumbnail take you to an html page, but is there a command that can go into the xml text that will simply take you to another spot on the timeline?
View 3 Replies
Jul 17, 2009
I created an image in Photoshop that included a gradient layer fading from transparency to a foreground color (in this case, black). I saved this image as a PNG file and imported the file onto my Flash stage. The gradient appears on the image as expected when viewing the stage in the Flash editor, however, when I test the movie, the gradient no longer appears.
View 2 Replies
Sep 7, 2009
I created a flash file (I will refer to this a swf.1) that plays correct when published as swf.However when I place it into another flash file the nested animation inside the swf.1 does not run.The nested animation in swf1. that does not run has a mask. Would this have anything to do with it?
View 1 Replies
Sep 28, 2009
I am creating an animation that will be used in 60 or so countries so messages will have to be translated in-country. From what I understand, using XML is the best way to do this. So, I created the following XML file (number of items reduced for space) using notepad:
<?xml version="1.0"?><displays name="Transfer Case Messages"> <message text="Click on the igntion switch to advance the switch one position." messageNumber = "0"/> <message text="Please use the brake pedal hold button to shift into and out of Park (P)." messageNumber = "1"/> <message text="Speed is limited in 4WD LOW." messageNumber = "2"/></displays>
Then, I used the following code to load the XML file and verify that it loads:
[Code]...
View 9 Replies
Oct 29, 2009
I have imported some info from an xml file into my movie. The info from this file is then displayed in dynamic text boxes. Three of these text boxes show a price which displays fine. However i need the contents of these text boxes to be added together in another dynamic text box called total. I need this total to update as the price fields change. I just cant figure it out.
Here is my code which is placed at frame 1 of my movie:
The last line of code is along the lines of how i think it should work
stop();
bar._visible = false;
bar2._visible = false;
bar3._visible = false;
[Code]....
View 1 Replies
Nov 11, 2009
Im preparing a Flash piece that includes several audio files. I imported the audio successfully but for some reason when I play the swf, the audio sounds tinny. I set the settings to speech compression and synced to stream. Some of the audio files were edited in Soundbooth to add silence at the beginning of the audio files. HOwever, all files (edited in Soundbooth or not) sound tinny.
View 2 Replies
Nov 15, 2009
why I can't draw over impoted images? I've animated something on paper and scanned in the frames. When I import them to flash it either deletes the line as soon as I draw it, or if I create a new layer the drawing stays in all frames, not just one.
View 3 Replies
May 26, 2010
I have a AS3 portfolio site that loads older AS2 content. Currently the loaded AS2 content won't respond to rollovers or anything inside. Is this at all possible?
View 9 Replies
Mar 16, 2011
I am using Flash CS4 and Flash CS5.I bought some music from Amazon MP3 that I want to use in my Flash animation and I keep getting this error upon import:one or more files were not imported because there were problems reading them.
View 2 Replies
Sep 24, 2011
I am new to flash CS5 and I am having a problem creating a character with multiple parts.My problem is. I created the character parts in PS: CS5 and save it individually as PNG with transparent background, but when I Imported it to Flash CS5 and applied a bone on it and test the bone. The image is messed up and as I realize that the individual png transparent image has a background.That's why the imae pic is distorted, messed up.I know it's hard to imagine so I post a pic.As what I have said. It is only an example screen cap of the problem.When I apply a bone and test that is the result.I am unable to draw in Flash cause it's different from PS which where I draw the chars, parts, and everything.
View 12 Replies
Nov 2, 2011
I have an animated SWF that I created. It is supposed to be at 3FPS, however it runs at 24FPS which is my stage's current FPS. How do I have different FPS's for my stage, and my SWF?
View 1 Replies
Jun 23, 2009
I am wondering if there is a way in as 2.0 to allow flash to auto-execute an attachMovieClip (in the next frame) at the end of an imported video file? a 2 minute timer delay could potentially have flaws, and doesn't seem correct.the goal is this:- choose a language- attach imported video in selected language- at the end, go to the menu of the specified language.The auto-attach at the end of the movie is all I have left to do, and I am uncertain about it.
View 2 Replies
Feb 13, 2008
Can I import xml data, parse it into an array and then display it in flash with anchor links? I tried putting the links in the text and setting my text box to html = true; htmlText= but it didn't work.
View 2 Replies
Apr 29, 2008
Is it possible to have 2 different link/hover styles within the same file? i tried using: class A:link {details} class A:hover {details} but no luck.
View 2 Replies
Apr 9, 2009
've been building some website in pure flash with as2, where index.html is only a 100%x100% swf movie without any marginsi didn't expect there was supposed to be a gallery but oh well. our client decided that he wants to have some gallery in his flash website. this of course wouldn't be a problem if the swf weren't scaled but it unfortunately is so everytime it loads an image it is, of course, sacled up/down which produces a really ugly pixelated image (because nobody would want to have his gallery images scaled up 2 times)if i knew there was going to be a gallery, i would export it into html with "match movie" dimensions and dynamically reposition all the objects in the swf but i didn't. and i don't have time to rebuild the damn site againso i'm asking, is there any option for a loaded image that it would not get scaled up/down while the swf(browser window) is? or a variable that tells at how much % is the movie scaled in the browser?(so i could re-scale the images inside flash) i know there is probably not but i'm really desperate
View 1 Replies
May 25, 2009
I have a master SWF which has a menu and loads other swf's into holders so they can be animated. I have button's in one of the loaded swf's but i am unable to make these buttons alter whats in the main swf. I.e. addEventListener to button and root(but the root doesnt seem to root to the holding swf).
View 2 Replies
Aug 12, 2010
I got a button there, but the URL wont go, ie, the click does nothing.I imported a PSD layered image to Flash CS3, into a new blank layer. I need basically an area of this PSD to be "image mapped" so what I did was create a rectangle with the rect tool, over the area I needed the hot spot.
Here I tried to do a transparent box and border (alpha 0) but the outline is still there even though the box is "empty." I did select the transparent box, no color, and tried alpha, both same result)
I made that into a symbol, then I double clicked into there to fill in the key pts for the over, hit, etc., states.... I dont have any effects here btw, as simple as we can get.After that I right clicked on the buttonand entered the action script ("reserve" is the name of my button symbol)
[Code]...
which gave no errors on validation.When I preview in Flash, everything looks good except the thin black border and the fact that when the button is pressed, nothing happens.
View 4 Replies
Jun 9, 2010
Why do my photoshop saved PNG's get brighter when imported into Flash CS4. This is annoying me to the extreme.
View 2 Replies
Jun 22, 2010
When I import a psd layered file I get an unwanted (red) border appearing around the art and as a box around the art. This doesn't exist in the psd file, but appears in the flash file. Should I convert and import it as something else? Is it a resolution setting in flash?
View 2 Replies
Aug 4, 2011
I import my artwork from photoshop or internet, png8, or bitmap, i convert it to symbol, and double click the scenario, then i try to change color for example and instead of painting the color in the artwork it paints under the imported picture. When I draw a picture in flash it works good.
View 2 Replies
Oct 23, 2011
Imported .mov in movie clip does not autoloop. whhy?
View 1 Replies
Jan 15, 2009
I am attaching a swf. to to main document using AS3 to import the .swf and it is coming out a bit distorted. I think the default size is stretching it out and it is a logo, so it looks funny. I was wondering if and how I could set the size of the swf in the code, so that it doesn't appear at the default size.
View 3 Replies
May 18, 2009
when i import a jpg file in flash and then resize this with the transform tool to for example 50% of the original size then im not getting the same result as resizing it in photoshop.if i first resize it in photoshop and import the image is smooth and looks the way i want but if i resize in flash the image gets edgy and not so good.so is there a way in flash cs 4 to resize the image with the same result as resizing it in photoshop or similar?
View 4 Replies
Jun 3, 2009
New website - imported very good quality logo's but quality on finished site not great
View 9 Replies