ActionScript 2.0 :: Swf2 To Load Mcs Saved In Swf1 Array?
Oct 19, 2009
I have an interface file, which allows the user to drag mc's onto the stage and save their xy position in accordance to a position on a timeline. For example, mc1 is at x50, y50 at timeline position 1.I am using an array to save all parameters. When the user is finished they can click play to view an animation of the mc's moving about the stage.I want a button which will somehow save this animation into an external swf. This swf needs to be independent as it will be loaded onto a website.I have tried to figure this out in many ways. I am new to actionscript but slowlly getting there.I have looked into using a shared object, to save the xy positions etc which are then loaded into the swf2. The problem with this, is the swf2 is dependent on the SO plus the SO is temporary. I need to be able to hand swf2 over to the guy to put on his website.I have also looked into using an intermediate .as code file. I have worked out how to put an mc onto swf2 using the graphic held in the interfaces library. I started working out how to click a button on the interface swf which then attaches the mc into swf2.. but then I realised swf2 still isnt independent.
View 1 Replies
Similar Posts:
Oct 19, 2009
I have an interface file, which allows the user to drag mc's onto the stage and save their xy position in accordance to a position on a timeline. For example, mc1 is at x50, y50 at timeline position 1.
I am using an array to save all parameters. When the user is finished they can click play to view an animation of the mc's moving about the stage.
I want a button which will somehow save this animation into an external swf. This swf needs to be independent as it will be loaded onto a website.
I have tried to figure this out in many ways. I am new to actionscript but slowlly getting there.
I have looked into using a shared object, to save the xy positions etc which are then loaded into the swf2. The problem with this, is the swf2 is dependent on the SO plus the SO is temporary. I need to be able to hand swf2 over to the guy to put on his website.
I have also looked into using an intermediate .as code file. I have worked out how to put an mc onto swf2 using the graphic held in the interfaces library. I started working out how to click a button on the interface swf which then attaches the mc into swf2.. but then I realised swf2 still isnt independent.
Now I am completely pulling my hair out. This thing is due soon and I am out of ideas.
Failing everything I thought I could just use a capturing software to record the animation as it plays... but with all the time I have spent on this and how far I have come in actionscript it is annoying that I cant work this out.
View 3 Replies
Oct 25, 2009
I have a flash banner1.swf (AS2) on [URL] (html-file)
How do I send 4 values from banner.swf to banner2.swf?
- banner2.swf is on another domain
- send the values to [URL] (php-file)
- And output the values into textfields on banner2.swf
- Inside banner2.swf I also want to make all the comparison and editing of the values.
I send the values in banner1.swf:
Code:
$envelope.carValue1 = value1;
$envelope.carValue2 = value2;
$envelope.carValue3 = value3;
$envelope.carValue4 = value4;
_root.$envelope.send("[URL]","_blank","POST");
Is there any way to only send the values directly to banner2.swf without using any PHP script in test.php? The problem I get is that banner2.swf doesn't catch any values. How do receive the sent values into banner2.swf? Do I have to have banner1.swf in php-file and banner2.swf in php-file? Is there any difference if both the swf:s are on the same domain or not?
View 1 Replies
Nov 30, 2010
I have a swf(Swf1)that dispatches a CustomEvent
[code]....
View 1 Replies
Nov 8, 2010
I am gonna connect two swf file on the same domain. I actually want to connect button1 on swf1 to frame1 on swf2 and then the same like that button2 to frame2... I think localconnection class is usable for that I am open to other ideas, it's very simple I guess but I am novice at this and this is my first job.
View 1 Replies
Mar 6, 2012
I loaded multiple xml files inside Array now I am unable to use the xml files from array[code]...
How I can retrieve data from XML files saved in array ?
View 1 Replies
Aug 23, 2011
I have downloaded the latest flash pro cs5.5 package and installed it on 3 different windows XP machines and I get the same bad result. This is Flash Pro 11.5.0.325 on XP SP3.
I made a small slideshow swf consisting of two jpeg images and nothing else. No music or other bells or whistles.Just 2 images converted to symbols, some keyframe/tween definitions with altered alpha channels.The slideshow runs perfectly and as I expect.
I save the slideshow as a .fla file.I need to add some more functionality from this plateau to show that the product can do what we need to the boss.
When I later load this .fla file, I don't see my graphics on the stage anymore. I right-click on the images and click on the option in the dialog to update the images. I see that the white stage now has the image I expected. When I close the dialog that lets me update the image flash pro abends and I get the crash dialog from microsoft.
Why can I make this slideshow and have it run perfectly, save it successfully (so I think) and then it won't load properly or let me work on it after one save?I have downloaded the latest flash pro cs5.5 package and installed it on 3 different windows XP machines and I get the same bad result. This is Flash Pro 11.5.0.325 on XP SP3.
I made a small slideshow swf consisting of two jpeg images and nothing else. No music or other bells or whistles.Just 2 images converted to symbols, some keyframe/tween definitions with altered alpha channels.The slideshow runs perfectly and as I expect.
I save the slideshow as a .fla file.I need to add some more functionality from this plateau to show that the product can do what we need to the boss.
View 3 Replies
Feb 18, 2009
I have a flash audio player, and need to load a .mp3 file saved in a database. How can I do that?
I put the swf in the php file; I tried to insert some parameters, but nothing happens. I�m lost...
The connection in the php file is ok. I can see the data from the database.
View 2 Replies
Jul 31, 2009
I'm trying to figure out the best way to compare a single bitmap against perhaps an array of saved bitmaps to see how close of a match it may be to any one of the bitmaps stored in the array. Right now I'm running a for loop that uses the bitmapData.compare() method to try to compare to see how much of a variance there is but... to be honest I'm at a loss as to how to use the resulting data to do so. Does anyone know of any good method to accomplish what I am trying to do? Forget looking at my code it's a waste of time because simply, it's not working.
View 4 Replies
Sep 12, 2011
I have an issue with Flash CS 5.5When creating content and publish the swf and then save the fla file , all seem fine.When closing the fla and reopen it later, the last changes I made are not saved??This happens NOT every time.At first I thought it was me that I didn't save the document before closing, but no this really happens!
Menno
running Win7x64, 24 GB Ram, GTX 580
View 20 Replies
Feb 28, 2009
I only get this error when publishing in CS4 ''The parameter is incorrect' if I save the document. I really like saving my work,
View 9 Replies
Jun 10, 2009
I am testing Flash CS4 at the moment, but something is wrong with it. What I did hundreds of times in CS3, here it just doesn't work.I used Adobe Media Encoder to make F4V from AVI. Then I imported that file to flash (load external video with playback component). Then I previewed it (ctrl+enter) and everything was fine, but once I saved (or published) it, the movie didn't play anymore. There was just background and no movie nor playback component.I tried encoding that file to FLV, even for older flash versions (I have the newest one installed), but that didn't help.
View 5 Replies
Sep 3, 2009
How do you increase the size of an entire movie into an actual swf file? I note that increasing the stage size increases the "frame" that the movie opens in, but does not increase the size of the movie itself. I find a lot of stuff on the internet about sizing a flash movie using html embedding, and perhaps that is what I need...but what I really mean is change the size of the whole movie before it is saved as an SWF and within Flash itself. Is there a simple way to do this? I mean, once you have the movie in place but have simply not saved it to SWF yet. Again, I note that cghanging "size" on document properties enlarges the frame that the movie opens in but not the movie itself.
View 4 Replies
Mar 26, 2010
I have a client who has a Flash project that was used for a cd rom. The flas are 1000 x 1043. I need to know the best way to be able to save the entire presentation for the web. I already tried re saving the flas publishing in percentage that doesn't work. If I make the actual stage smaller the mc's and all dimensions would have to be made smaller manually am I correct.
View 1 Replies
Oct 14, 2011
if I created a customized class and I saved it as a "*.as" file, and now, I want to create a new "*.FLA" project and to use inside the "FLA" project at my customized class. how do I import my class into this project?
View 8 Replies
Jul 13, 2010
I am trying to use (sIFR) version 3, revision 419 When i test the defaults SWF files( that came whit the package ), it works fine. But when i edit with my own fonts, it does not work properly. Is there any issue, or something that i must to do?
View 1 Replies
Oct 30, 2008
i have files (.pdf, .doc or whatever) that i have to save from a CD projector to the user's computer.My problem is that the saved file is not the same as the original.[code]
View 4 Replies
Oct 27, 2011
check this code: [URL]
Try to record more than 2-3 seconds and then listen saved mix. Mixed sound is distorted after couple of seconds of recording Wav encoder is working ok...
View 1 Replies
Jun 7, 2010
I just started working CS4 and finished my firest simple web page([URL]), nearly the way I wanted. Having little or no action code experience, I did what I could. Then CS4 was upgraded to CS5. When I opend the CS4 project and saved it to CS5 (making it irreversible), the preloader that worked in CS4 did not work in CS5.
View 2 Replies
Jul 2, 2010
I am trying to drag and drop a text field. So I have created a text field, and saved it as a swf. I then load it in using xml and the loader class. When I go to pick it up, I get the error
TypeError: Error #1034: Type Coercion failed: cannot convert flash.text::TextField@10d59b51 to flash.display.Sprite. at GalleryNew_fla::MainTimeline/pickUp()[GalleryNew_fla.MainTimeline::frame1:81]
It is specifically pointing to
function pickUp(event:MouseEvent):void {
getPosition(event.target);
stage.addChild(event.target as DisplayObject);
Sprite(event.target).startDrag(true);
}
View 7 Replies
Jul 17, 2010
- I create a new fla file in Flash CS5 Professional,- I go to publish settings and select AIR2 as the target- I click the Settings button on the rightThese settings are supposed to be saved with the fla file, since all of them are related to the project.Application name, icons, files to include, etc, are all preferences related to the fla file of which you are editing the settings.However, when you go to the "Signature" tab and select a digital certificate to sign the air application with, this setting will NOT be saved into the file.Instead, whenever you publish ANY air application, it will use by default the lastcertificate you have used, even if you used it to publish _another_ application.That is absurd, because this is a tab within the "publish settings" and all publish settings are specific to a fla file.
View 2 Replies
May 16, 2011
FLV files are not getting saved at the particular location mentioned in the application.xml file on FMS. Instead we are getting log in the log folder and instance which is joined to the FMS in the http folder on the FMS. Is their any way to find out why we are not getting saved those files at that location?
View 2 Replies
Jan 24, 2012
I have a simple popup menu in flex, a mx Menu, and I use e Menu.initMenu to create the menu relying on an XML List defined as the data provider.The menu has check box items, and every time I call a load(values:Array) function in the class which contains the menu's instance, I want to check the relevant items.
View 1 Replies
Sep 19, 2009
I'm using AS3 in timeline. I can't make a SharedObject display saved information. I have several frame labels (parte1, parte2... parte20). On parte8 I have a movie clip (whole_master), which contains three children movie clips placed on a separate frames (level_1, level_2, level_3). I would like to save the level of a game a user ends up with or exits the game. Then, we user returns and be able to go to the level he/she was playing.PROBLEM: The movie clip is on frame parte8, which isn't the first frame. However, when the user re-starts the game, the Shared Object should be read on frame 1.[Code].....
View 0 Replies
Nov 2, 2009
I'm now able to create a .sol file which stores the variables required to continue a game where a player left off.
Now, I don't know how to retrieve the saved information back into the game.
I'm using Flash MX.
Here's my situation:
The game stores six vaiables when a button is pressed:
SaveFile = SharedObject.getlocal("gameinfo");
SaveFile.data.str = player.str;
SaveFile.data.fir = player.fir;
SaveFile.data.end = player.end;
[Code].....
Now, I have a button, named "LoadButton_bt", which, when pressed, I wish to have the game load the saved variables in "gameinfo.sol". The tutorial on the web site by Jesse Stratford doesn't explain how to retrieve the data from a .sol object. I'm sure there's a simple code to accomplish this. Can someone help me with the script?
Remember, I'm a novice non-programmer who just managed to learn this much by self-education and research and asking questions like this which probably have obvious answers to pros like you guys, so talk down to me!
View 0 Replies
Jan 18, 2005
Is there any ways to prevent the swf from running when someone tries to save the swf out from the website or from the Internet cache, retrived the swf and execute it?
I heard there is some codes to prevent it from happening, either to look for a web address or something.
View 1 Replies
Sep 27, 2007
Does anyone know how to generate a jpeg in Flash that can be saved, printed and sent via e-mail?
View 1 Replies
Mar 21, 2009
I made a small .GIF file to show my abilities to my friend and what I can do but when I save it and I open it up on my desktop little red dots appear on the image. I go to import>movie file(to save as an animated gif.) then the red dots appear on the image.
View 1 Replies
Oct 14, 2011
Just as title says is there a way to automaticly add extension to file name. when i create a new XML via flash it works but i have to type in the text field name of the file and extension i.e: full.xml, to save the file as xml, and i want to write just the filename and extension is added automatically
View 3 Replies
Nov 9, 2003
here my .fla I have a text file saved as news.txt with the first line name= [URL]..
View 4 Replies