ActionScript 3.0 :: Flash External Loaded Swf Losing Component?
May 28, 2010
I have a parent movie that can load various "overlays", which are externally loaded swf's. For several of these overlays now, when the overlay is loaded into the parent movie, any components it was using seem to disappear, or more precisely, use the parent movie's component (so if the parent movie doesn't have an instance of whatever component it is in it's library, then the child won't display anything.) I have been able to (sort of) solve the problem by creating an instance of whatever component it is in the parent, but this is undesirable, especially since different overlays may use different versions of the same component (i.e., skinned UIScrollbars.)
So, code in the parent:
Code:
public function drawOverlay (rID:String, payload:String, x1:Number, y1:Number, w:Number, h:Number, o:Number, bg:String, bc:String, bw:Number) : void
{
trace("SKIN - "+rID,x1,y1,w,h,o,bg,bc,bw);
[code]....
The child runs perfectly standalone (of course), and everything except components work fine when loaded. Everything is CS4/AS3. It seems like I have a rooting issue, where the root of the loaded swf is being linked to the root of the parent, but I don't know what to check out...
View 4 Replies
Similar Posts:
Jul 7, 2010
I have a Flash file (call it main.swf) that contains an empty movie clip along with some buttons.In this Flash movie, depending on the button you press, another Flash movie (call it load.swf) is loaded into the empty movie clip.In this loaded swf,I have code to display a tooltip when the user rolls over certain objects within it. The tooltip code works with a movieclip called mcTooltip and changes the background color and text in the text box within mcTooltip.
If I open the load.swf standalone, the tooltips work fine. However, when I roll over the objects from within the main.swf file, they don't work.
View 1 Replies
Sep 10, 2004
I am trying to pause/play a swf loaded into a loader component.I tried putting it in a mc and contolling it that way but it aint work.
View 1 Replies
Sep 10, 2004
I am trying to pause/play a swf loaded into a loader component.I tried putting it in a mc and contolling it that way but it aint work.
View 1 Replies
Mar 1, 2011
I found the problem. I had my container as a guide. I took off the guide and it shows up in my server. But why did it show up on my local computer if it still was on guide then?I have external jpgs that are loading into a flash website. When I run it off my hard drive it works. But when I put it on my server the external jpgs are no longer loading. Does anyone know what I might be doing wrong with my paths?
[Code]...
View 0 Replies
Feb 18, 2010
I have loaded an external video with playback component in Flash CS4.
Now the question is do I need to add streaming script or not?
View 2 Replies
Feb 23, 2011
I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:
[Code]....
View 1 Replies
Jan 31, 2007
Google calendar is available to be embed into a HTML website.. But I have a Flash site.. I want to load that calendar into my site.. It has an option for a button. But would like to have the entire calendar view. Can this be loaded into a dynamic text box or a loader component??? Does anyone have a clue how to do this... Or create a monthly calendar with events.. I can't seem to find one anywhere, I am sure it can be done.. but not very good with AS.
View 1 Replies
Aug 27, 2010
I've noticed recently (the last week) that when I open Flash CS4, the Tools panel and the Actions/Timeline/Compiler Errors/Output panel group are not automatically open, like they always were before. Does anyone know of anything I could have changed by accident?
At the same time this started happening, I have a file that has a moving hot spot that is set with keyframes (depending where the active button is on the bitmaped screen capture behind the button). Even though the button's onRelease handlers are advancing the timeline correctly, my button is not in the right place in the runtime version. If's still fine in the development environment. It's like the layers are out of sync with each other.
View 1 Replies
Jul 13, 2011
I'm using Flash uploader(uploadify, swfupload) with CodeIgniter, want to get the session data. I have found out that the flash does not send the session data, so I have set $config['sess_match_useragent'] = FALSE;
Now for example i have set session value myname in session and I can get it on my backend PHP script using Internet Explorer.[code]...
View 1 Replies
Sep 10, 2009
I have a logo which I have created in photoshop, it is made up of 4 layers, some of which I want to animate. I create my movie, I do so by opening my PSD file and then animating the layers. However I have a problem in that when I view my movie the image quality is poor, and there is what I would describe as noise around some of the image.
View 1 Replies
Mar 1, 2010
I've created a globe in Flash CS3 and published it (no compression) as a swf The globe has a couple of layers with gradients used as highlights. When I import the file into another Flash document the gradients seem to disappear
View 1 Replies
Feb 2, 2010
I built this incredibly brilliant scrolling thumbnail image viewer for a client in flash actionscript 3. (Basically it just scrolls up or down depending on the mouse position). It works so so, (I can never get the percentages right so that it shows the top most image) but, that's beside the point. What is REALLY irking me is when I have the browser window open with my .swf loaded and I click on another app on my desktop, the stupid scrolling thumbnail area in the browser window starts to freak out.
"Where is my mouseY?" I assume it is thinking.
Is there a stage.Unfocus event I can tell my scrolling thumbnail area to STFU with?
I'd even consider writing some javascript to call a flash function, if that's a preferred technique.
function checkMousePos(e:Event):void
{
if(mouseX < 145){
try{
[Code]...
View 2 Replies
Aug 17, 2011
I have a flash file in a div. This div is set to visible (display:block;). The div has two sister divs. All three divs are controlled by custom built jQuery tabs, so when another tab is clicked, the currently visible div turns display:none;. When the tab is reclicked to set the flashes div to display:block, the flash file loses all its values that are stored (for example in a textarea, all the text gets reset, and where a element stores a path to the image, that gets reset).
I have tried other methods like width:0; height:0;, which sort of works, but as the flash file is larger than the other two divs, it is still visible underneath. So then I tried overflow:hidden; but the same issue still occurs as above (losing values).
visibility:hidden isn't applicable as there is a large white space where the flash file should be.
position:absolute; top:-800px; left:-600px; loses variables.
border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; also loses variables.
Is there any other method I can use? I have wmode=transparent aswell.
Below is the code of my flash embed:
<object wmode="transparent" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="690" height="2047" id="gdh_v3_1" align="middle">
[Code]....
View 2 Replies
Apr 10, 2010
I just completed a task for someones website and it is basically an animated banner. Well, I made it at 1350px wide, and they now want it resized to 900px. When I resize it in html, it loses a lot of the quality.
View 6 Replies
Jan 11, 2012
I have a higher resolution .flv file and I'm trying to replace an older version within my Flash file. However once replace (by use of the "swap video" feature when right clicking video), it blows the video up way bigger. When trying to scale down the video, it become fuzzy/pixelated upon output to .swf. Any proper way to resize this higher-res video without loosing picture quality?
View 1 Replies
Mar 30, 2010
I've been having this really annoying thing happen the past few days, that has happened before but not as frequently. I create a project in Flash Builder, import some classes, and then on occasion it keeps erasing those classes. So then I get errors in a lot of my datatypes, have to go back through my document and retype the datatype so that it reimports the class.
I know flash builder can be a bit buggy at times
View 2 Replies
Nov 17, 2011
there was that update that made it so you cleared flash saves out whenever you cleared your browser's... what was it, cookies or cache? I'm looking it up but Google is being shockingly unhelpful, only giving me advice from the Flash 8 days. The thing is, I would far prefer to manage my flash saves manually. I know that's not the universal preference, but it prevents me from losing saves when developing, and prevents me from losing game saves for that matter.
But I would really like to clear my browser cookies and cache! It's really getting gummed up in here. So my question is: is there a user-friendly way to manage flash saves directly? Is there a way to empty my cache and cookies without losing every flash save I have?
View 2 Replies
Apr 11, 2012
i developed application in action script 3.0 with adobe flash cs4 professional. In this application, i loaded another external swf which is having flash list component, but while loading the swf in main swf it showing TypeError: Error #1009: Cannot access a property or method of a null object reference.at fl.containers::BaseScrollPane/drawBackground()at fl.controls::List/draw()at fl.core::UIComponent/callLaterDispatcher() please, kindly suggest me for this issue.
View 3 Replies
Jul 29, 2010
I've a simple flash application that does counting on button click. I load it in a page and a javaScript code does some DOM manipulation to move it from one div tag to another. Problem: the state of the count is not preserved as the swf node is moved from one node to another. What I did:
I simply get the node using javascript getElementbyId function and then once I get the source and destination div nodes then I use destinationNode.appendChild(sourceNode); //javascript This works well in Internet explorer, but it doesn't work in Chrome and Firefox. So then I tried prototype library.
[Code]...
View 2 Replies
Dec 22, 2010
Possible Duplicate: losing extension when use FileReference download I'm having an issue that looks common when using the FileReference class in FP10 when saving a file. The whole thing works fine as long as I don't change the default filename. If I do, then I loose the extension of the file... which is annoying >_< I haven't found any "acceptable" workaround, but the posts I've seen are from a couple of months already. So I'm inquiring hoping that something's been done regarding this issue since then =)
View 1 Replies
Oct 12, 2010
i'm building an projector application in AS3, as a slide show.When the right and left keys are pressed on the keyboard, the slides change.the code to change the slide:
Code:
function setup() {
stage.addEventListener(KeyboardEvent.KEY_DOWN, displayKey);
}
setup();
[code]....
Some slides have button on it, that change the slide, jumping to a chapter the user whant to see.the problem i'm having is that when the button at a slide is clicked, the key press detection does not work anymore. To make it work, I have to click somewhere on the stage.
View 1 Replies
Apr 15, 2009
Code:
var slideNo:Number;
slideNo = 0;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, showXML);
[code]....
View 3 Replies
Nov 19, 2011
I have a main fla file that loads a game (with a Loader) and adds it to the stage (addChild(myLoader)).Is there a way to step through/debug the loaded swf? If so, how? My game.swf breakpoints aren't hitting.
View 2 Replies
Jan 20, 2012
I need to render styled xml into a flash game. Here is what I tried, but the css style is not working:[code]for experiment I added a h1-style to my stylesheet and flash DOES render that correctly. So it might be to do with the span-tag or the class?
View 1 Replies
Jul 15, 2010
I've got a problem with new flash player 10.1.53.64.2 (activex component) on windows 7 and windows XP (vista was not tested) no matter x86 or x64. This problem doesn't not appear on previous versions of player such as 10.0.42.34 and lower 9.0.45. The problem is: when I load external movie it loads as amv1movie thought both swf's are in ActionScript3.
[Code].....
View 2 Replies
Feb 8, 2010
How can be cloned shape loaded by Flex Action Script 3 from external swf (authored in the Flash CS4)?
View 3 Replies
Mar 4, 2010
I am using the 1.2 version of Uza's Global singleton (http://www.uza.lt/codex/as3-global-object/). The container swf stores some data and a link to a function in the "global" object.
Then another swf is loaded inside the container, it gets it's global instance with Global.getInstance();, and i suppose i can access the data and function stored in global by the container swf.
This works perfectly on localhost served by a webserver, but when i put the files on my external production server the loaded swf's global appears to not have anything stored by the container.
View 1 Replies
Aug 23, 2011
I´m loading some MP3 from an external URL. I need to wait to completely load the mp3 and then start to play it. Do you know how can I check when mp3 loads completely? This is my code:
var s:Sound = new Sound(new URLRequest("url.com/file.mp3"));
var channel:SoundChannel = new SoundChannel();
channel = s.play();
View 1 Replies
Jan 7, 2012
How do I get to the MovieClips within an externally loaded Movie Clip. Lets say I have a movie Called ONE in the swf I just loaded. How can I work with it alpha, position and other properties of the children of this clip? CODE IN MAIN TIMLINE:
[Code]...
Now its loaded I want to change the postino of the clip called ONE in the movie LoadedMC I just created.
View 1 Replies