Flex :: What Restrictions/workarounds Are Needed For Third Parties External Swf?
Jun 19, 2009
We are loading external swf content into an adobe air application. Content is provided by an increasing number of third parties.Being third party content, it will be loaded in a separate security domain (trustContent=false) and a sibling app domain (loadForCompatibility=true). We are doing this using the Loader class.What are the features/options/approaches that would cause problems when using the swf as external content?
I am interested in any kind of issues, as we have already reproduced issues with content that occur regardless of the app domain / security domain where its loaded ( and occurs also in both Loader and SWFLoader).
When you use Graphics object to draw very large shape(that does not fit in 10000x10000 pixels) stroke width may become much wider than value specified in lineStyle function.For now I have only two options:
1. When drawing line you can split it into several lines. However this trick does work only for drawing lines, polylines and polygons. There is no way to apply this to drawing circles and ellipses. Well, we can approximate circles via bezier curves, but this approach seems to be very inefficient.
2. Perform manual cliping. But this require manual implementation of different cliping techiniques, and I think ActionScript does not suit well for this sort of task. And again there is need to approximate visible parts of large circles.
I'm newly transitioning from AS2 to AS3, and trying to figure out the proper way to detect the end of an external swf, or, essentially put "restrictions" on next buttons for a flash site.Basically, I have a training course where the user watches a little demo then clicks "next" to proceed to the next slide. This works wonderfully so far; however, I need to restrict the next button from being active until the demo has finished playing (so they can't skip ahead).The way this is structurally set up is I have a main container (mainContainer.swf) that loads in external content through an empty MC (contentMC) and cycles through an array (content1.swf, content2.swf, content3.swf) and so on...I have tried comparing the currentFrame to totalFrames of the external swf before activating the next button, but with no luck. Again, new to AS3 so probably have the syntax wrong...
if (contentMC.currentFrame == contentMC.totalFrames) { trace("end of external swf"); //next button code here...continue cycling through array...
I have a main movie in wich i load external swf's. I would like to integrate a preloader in the main swf. I tried it with preloaders in the external swf's but that is only the first time functional.This is the code I have in the main movie:
Code: function pagina(page) { showContent(page); }
I have a client that would like a Flash animation that's 5440 pixels wide, to span 3 widescreen monitors for a tradeshow presentation. Flash won't let me make the stage any bigger than 2880 - does anyone know any ways around that limit?I Googled it and found out that you used to be able to scale the SWF beyond 2880 in an HTML file, and it would show well using Flash Player 7, but apparently that trick no longer works in Players 8+.Any other ways to make a single SWF that can span 3 large monitors?
I have a project both Flex and WWW and they are very closely connected. I want to put them both into into one SVN. I want to make revisions for changes that take place exactly both in flex and WWW at the same time. My question is that do I have to stick to "subclipse" (it would desynchronise changes for flex and WWW in one revision)? Would be possible to make revisions using only my tortoiseSVN without subclipse?
I have an app where a user puts in the required info into text inputs inside a titlewindow pop up and it sends the data entered into a datagrid. This first time when I call for the popup and enter info it works fine. Here's the problem: the next time I call the component pop up and click anywhere on the popup, including textInputs, the first the item in the array is automatically entered into the textInput where the user is supposed to enter the data themselves (BTW this textInput is also a autocomplete component).What I want is nothing to entered into textinput until the user inputs the data themselves. I've been tweaking with it for hours and im stumped. Here's the code: (this is main page)
I'm still learning how to compile with the Flex SDK. And I'm learning how to use SWC files and [EMBED] statements to pull my assets into my application.With the Flash IDE, I can link a library asset to a class and it's automatically embedded into my custom class. So that's 1 asset in 1 class. With the Flex SDK and SWC files, it seems I can only* pull in assets at the variable level, so I end up with my custom classes containing yet another class -- this means I have an extra wrapper/decorator (whatever you want to call it) class that I didn't have when using the Flash IDE.Is this what people typically do? Doesn't that seem superfluous?I've read Colin Moock's 'Essential Actionscript 3.0', where he mentions something about embedding a SWF at class-level as binary data.
Does anyone have any knowledge (preferably with links to make it official) about how/if Flash/Flex culls objects not in view, to stop them getting drawn when not needed? A specific cases: I have an 800x600 panel (a Canvas or Sprite, or other container) containing loads of Sprites representing individual game objects like asteroids or spaceships or missiles or map-tiles. The game world might be 5000x5000 so can I naively position Sprites anywhere in this range and let Flash cull them effectively? Or do I need to manage visibility somehow at a higher level (like manually removing them from the parent) to avoid performance issues?
I am trying to convert a .swf to .mov in Mac Leopard, and I have many rules to follow for this particular purpose.
.mov must be 640x480 or 720x480under 50 MB(my restriction) needs to look really good I have tried the following:
Export from Flash to .mov - I get 300 MB and it looks pretty badThis converter [URL] couldn't even take my .swf for some reasonThis converter [URL] works (37 MB) but the quality is pretty lowBring the .swf into Premiere and then export, which works great, but the file is 737 MB - even when I lower the quality all the way down to 1
I have a basic question. It seems like it should be simple but I am having a lot of problems resolving this on my own. The following code is what i used for an 'eyeball' on a Teddybear illustration.
I have a swf movie player located in [URL]. Normally this a.swf is used by a html page, the swf file is embedded in a [URL]. The website is not built by me but I know there is a restriction that only the html in [URL] can play the video . Now what I want to do is embed the a.swf into a c# project using swfloader, I will set the source property of swfloader to [URL]. My question is will the c# project be able to play to video file the same as in the html page?
A client wants to show complete html-pages inside a Flash movie. I've seen somewhere that this is possible through an IFrame, but then you can just rightclick the frame to view the source, and that's not what the client's looking for. I know it's possible to parse simple html tags in Flash in a TextField, such as <b></b> <a href=""></a> etc etc, but what are the restrictions? For example, all css should work, even flash movies inside the html page should work. I think they're asking too much, so what exactly is possible and what's not?
I have this box which is a MC and it is called "orangebox". Now I want this box to follow my mouse, but only over a certain region. I put a rectanlge MC over the area I want the box to follow. On that rectange I put this code...
PHP Code:
on (rollOver) { startDrag("_root.orangebox", true, 60, 362, 742, 362); }
That works fine and dandy, but I want it to ease when it follows, not stay on the mouse. I think it will give it a cooler look. The code Kirupa has for ease is...
I'm dynamically loading a CSS file and text file to populate a TextField. As far as the default styles are concerned, no problem!But as soon as I try stuff like p.title, the style is not applied. Is this a restriction of the CSS support that Flash/Flex offers? Do I have to resort to the "simpel-style-selectors" like ".title" or "p" in my CSS?
Works:
Code: .title { color:#FF0000; }
Doesn't work:
Code: p.title { color:#FF0000; }
ps: I know that Flash doesn't support everything that CSS has to offer, but I'm looking for confirmation of someone who can tell me for a fact that the above p.class-selector is not supported.
Googling and trying, I've found: Variables identifiers cant begin with numbers and can only contain letters, numbers and the _ character. I was wondering if there is a length restriction.
I'm studying John Lindquist's example from here: [URL] I'm trying to figure out how to add restrict his matrix3d method, so the sphere has limited movement.
Code: Select all override protected function onRenderTick(event:Event=null):void { var currentMousePoint:Point = new Point(viewport.containerSprite.mouseX, viewport.containerSprite.mouseY); if(isMouseDown) { var difference:Point = currentMousePoint.subtract(previousMousePoint); [Code] .....
I have the following code which works fine but I would like to set a restriction on how far the movie will travel on it's x and y axis. How can this be achieved?
Code: speed = .99; setInterval(CursorMovement, 40); function CursorMovement() {
As usual, I am tired of constantly developing something, only to realize that someone out there has already created something identical to it, and often times much better.
In an effort to avoid keep reinventing the wheel, I ask you all: What coding is needed?
What libraries do not yet exist out there that you would like to see, or would like mixed together in one easy to use package?
I'm using IE9 on a Windows 7 64bit machine. For testing, i've disabled my flash add-on in IE9. I expect IE9 to ask the user to install flash when it's required.
So does firefox and chrome, but IE9 does not do this for me.
Example: I go to this site [URL]
The only thing I get to see is a black screen with a small error icon on the top left of the screen. Here i expect IE9 to tell me that i need Flash and ask me to install it.
I'm currently having trouble with the file size of my latest project. This due to the file size of certain movie clips in my library. This obviously causes a long preloading time.
To get round this I thought I could load these movie cilps when I need them so the user can proceed normally until they appear. These movie clips have a linkage with 'Export for Actionscript' selected but I haven't selected 'Export in first frame' because I want to export it later when they're needed.
how to ignore loading these movie clips until I tell Flash I want them loading. Bearing in mind these aren't external .swf's.
I have a preloader that is not appearing until the movie has loaded 80% of its size. Until then all I get is a white screen. I have heard that it may have something to do classes and objects being exported/loaded on frame one before the preloader gets placed on screen. I have been into the publish flash settings and changed the Export classes on frame to 2, but it has'nt changed anything. The things I have importing is the caurina Tweener class and an XML file, both of which have been told to come into the movie after frame 1. Any graphics or movieclips are already on the stage after frame 1. All the code is contained within my stage, there are no external .as files.The code for the preloader im using has worked on a previous movie, here it is
First, if I am doing a full flash site (like I did), what is the web standard now as far as load times? You see I have the site fully loading all content first, before the home page even shows. I have heard of dynamically loading content, for instance, different sections and subsections of the site, to be called on when clicked, as opposed to loading the whole site first.Now are there any benefits to dynamically loading sections as opposed to loading ALL of the content first? What is the pro standard? Is loadingsections/subsections/content dynamically something very easy to do, left for aprofessional, or left for a seasoned professional?Second, How important is the "title tag" in the html page that I am embedding the flash site in? I recently changed it from "Untitled", was leaving it as "Untitled" a rookie mistake?
Third, I have set up several email addresses for the client, including some web forms, that i used php file to send it to their email when they hit the send button; My question is...in the php file, I have it sending email to the client, and myself. I don't plan on reading their email, but thought I would effectively cc myself, for backup, in case something was wrong with their email, then I would have the client's email in case...so is that ethical or legal to do? What would web pro's do? I don't want to get in trouble, but I don't want to ask the client, because I don't think she will understand my reasoning.Lastly, if you were an instructor and I was your student that did the site I did as a final project, how would you grade it? Look at is as a critique of the site based on professional web standards and protocol so to speak.
I would like to attempt to accomplish the following using Flash:I have a graphic representation of an LCD screen. The screen represents a display used to control a machine. Think of it as a kind of calculator. There are numeric keypads (1 - 0) as well as "enter" and "cancel" and "up" and "down" arrows.The LCD screen is two lines by 20 characters.First; I want to display in the two lines the data that would be displayed on the actual device. I have 160 lines of data in an ascii text file.I want to be able to "import" the ascii text file into the two line display, and be able to "scroll" up and down using the arrow buttons. What want to accomplish is that if the data changes,I can simply update the text file that is called. I saw a similar flash application, but it used a slider thing. I don't want a slider. I want to be able to scroll lines of text into and out the two line display. That is the first part, anyway. The second part will be to be able to change the displayed number values with the number keypad and update the text file with the data. But for now, just to get the text file to display and buttons to make it scroll.
a client has asked me to make modifications in a flash file used on his website. i am currently working on the same. the client has given me 'about.swf' file which i decompiled using sothink decompiler 4.5 build 90120 to 'about original.fla'. the xml folder resides in the same folder as ~about original.fla. it contains about_us.xml.you can download these files at [URL] online_questions.zip the change the client wants is as follows - if you view 'about.swf' - when you click on 'key people', the details of 4 people
Like some others here, I am trying to write a music player that will play live stream (shoutcast mp3). I've tried both Flex (Flash Builder 4.5.1) and Flash CS5.5, it works great when I play the SWF on the PC, but when tranferred to the phone I hear nothing, although it is streaming, I assume that it is something to do with the permissions, but I'm not sure. The permissions I am using at the moment (for android) are as follows: