Css :: Center Flash Element Based On The Elements Actual Size 2?
Mar 2, 2010how can I place a swf file in my webpage when the width of the file changes according to the user input. What I need is a sort of a dynamic css...
View 1 Replieshow can I place a swf file in my webpage when the width of the file changes according to the user input. What I need is a sort of a dynamic css...
View 1 RepliesI have a problem positioning a Flash element inside a div tag. The problem is, that the flash element is changing it's size based on the user input. I need a way how I can dynamically get the actual size of the flash element, and to change the behavior of the div element the flash is integrated in. actually I want to place it in the middle of the div. right now I gave the flash element width and height of 100% but that way I can not center the element inside the div...
View 2 RepliesI arrange all my panels side by side by using the design view in flex builder. But when I actually run it. One panel will actually be slightly taller than what I see in flex builder and overlap aother panel. I tried to refresh in design function, but still no change. What should I do?
View 2 RepliesI'm trying to implement a dragging system which can only be described as similar to dragging the map on Google Maps. I can set up dragging easily in Flex, but unfortunately the standard model of dragging i.e. dragging an element proxy and dropping it in another element is not what I'm after.
Is there anything built into flex where the actual element rather than a proxy can be repositioned in a different place within the same parent? Or will I have to hand code something using mouse events as you would if implementing a solution in JavaScript?
My flash movie is 1440x900 but the area where all the important stuff happens in within 1024x768, i am trying to keep the middle in the center regardless of browers size or aspect ratio.
I can center the page but it doesn't work as i need it to. If the browers is small (1024x768) the swf is justified against the left edge, but not keeping the middle in the middle of the brower.
[URL] is an example of exactly what i am trying to achieve.
Is there anyway to take take a "screenshot", "save" or "capture" the active SWF element on a page as an image? I'd like for users to be able to simply click a button on my page, instead of having to need to manually take a screenshot of the entire page and then crop the image to show only the SWF element.I found a Jquery method, although I am unsure if it could work with SWF files. It basically captures an area of an Image element on the page and allows you to save that as a separate image. What I would need however, is to capture the SWF as the image instead. Note: I do not have access to the SWF code so I cannot achieve this using Actionscript or anything like that
View 2 RepliesI have converted my MPEG video recorded from my camcorder to FLV to use on "Flash CS4" using "Adobe Media Converter". But the FLV playback on the "Flash player 10" is alot smaller than the playback of the MPEG video on "VLC". Is there anyway to adjust any properties to get the FLV to the actual size of the MPEG video?
View 1 RepliesI would like to dynamically create elements based on the array. I would like to just put the array name and append _panel. so menu_item_panel will become settings_panel, info_panel,etc. I cannot figure out how to do that?
[Code]...
increase the actual workspace. Not the size of my stage but the actual box that is around the stage. Mines a light gray. Its just I have stuff the needs to be way way off screen and there seems to be a limit on how far the project extends.
View 2 RepliesI'd like to get the actual height of a component after adding some children.
When inspecting the variables tab in debug mode, I see 2 different height variables:$height (which contains the correct value: 138) and height/_height (which contains a wrong value: 10).
I guess that the display is not updated and so I'm not getting the correct height using component.height, but how can I get the value in $height?
[Code]...
I am trying to create a fullscreen chat program using Flash AS3, and so far, everything is going well, except for when the window is resized, the whole thing is proportionally resized.I would like it to ONLY resize the chat text area, when the resize is done vertically, keeping the controls the same height consistently, also I would like the buttons for sending the chat to maintain their size, with the input box increasing in width when the size is increased horizontally.Obviously the SWF resizing will be done by JavaScript/jQuery .onResize() and thus I will be able to set a mimimum width and height for the swf, maintaining usability.
View 1 RepliesI've been able to accomplish this in other languages, but am having trouble in AS3.I have an XML file structured like:
<person>
<q0>answer1</q0>
<q1>answer2></q1>
</person>
And so on for multiple people who are all asked the same 13 questions (q0 - q12).I am trying to push these into an array in action script like so:
function push_array(e:Event):void
{
flashmo_xml = XML(e.target.data);[code].....
(NOTE: the array questions[] contains strings of all the questions and the xml file contains the answers in case that wasn't clear) However this is not working. I know there must be a way to do this rather than getting all the questions individually without a for() loop.
I'm tring to make the swf full screen. I published it with scale of 100%.I wish to have some movie clips like text or buttons in fixed size.first, I don't get Event.RESIZE when the stage changed its size second, I try to set their size , but their size is changed according to the stage size and do not stay in the height width values
View 7 RepliesHow do I horizontally center 1 element in my flash movie, so when the movie resizes it stays in the center.Im guessing Iconvert it to a movie clip,
View 2 RepliesI have Flash 8. I created a Flash movie a number of years ago, probably in an early version of Flash. I use it on my website. I want to redesign my site and make the movie smaller from the standpoint of making the canvas/stage size smaller. I don't mean just compressing the flash movie to a smaller swf. Is there some quick way to do this without having to recreate the movie and put in smaller elements?
View 3 Replies[URL]when you resize the browser window you'll notice that the background pattern remains the same size but there's never a browser-scrollbar, besides that the movie in the center that is loaded stays centered when resizing while keeping it's window-dimension constant (it's actually 2 seperate movies forming the center window).
View 6 RepliesI have the following function in Flex 4:
[Code]..
Isn't there a way to loop over each image in the hgroup and add the eventhandler? Something like this:
[code]...
My teacher told me this isn't possible but in case of 10+ images, I can't imagine doing it for every image separately. There has to be a better way to do this, no?
In below class I ave declared an array "selectedOptions". In click event Im storing the values in it. But everytime I click on the object the array gets initialized and stores the clicked element rather storing all the elements one by one. Could you tell me the reason?
[Code]...
how to center a 1966px wide flash regardless of the users resolution or size of the monitor?
..and without resizing it just cropping both sides of it in the browser.
I've written the following method (in actionscript 3, it's a flash application) which returns what transformation type is required for the current mouse position in relation to a given element position.
An element can be moved, scaled and rotated. This method returns if any of these transformations are applicable with the given coordinates[code]...
how I would go about to accomplish the following:
There should be 3 dropdown menus with predefined words
1. First menu has 3 predefined options
2. The second dropdown has 5 options.
3. The third dropdown has 3 options
--> Depending on which word is selected in dropdown #2, an img (of a total of 5 possibilities) is being displayed
In addition there is a dynamic textfield, where you can enter a name, which should then be displayed along with the img.
how to sort a sub array based on one element within it? I have an array which contains a number of sub arrays. The sub arrays each have an element consisting of a single number. I need to sort the sub arrays within the "mother" array using this number as the key.
View 4 RepliesI have a Flash file embedded into HTML - the objects inside are place based on the browser's screen size.Most of the time I don't want a scroll bar, as things are correctly placed, but once the browser window gets too small it'd be nice to have it.So, the main question: can I have a Javascript code listening for the browser window, then adding a scroll bar if it's smaller than a certain number?
View 1 RepliesI am developing a flash based website using mxml. My monitor's resolution is 1280x768 and is widescreen. The problem is while it appears properly in my screen it doesn't appear properly in others.
-Let scrollbars take care of it : If the screen is 14 inch screen with 800x600 resolution it appears zoomed in. So that's a problem
-Get screen resolution and resize using scaleX and scaleY : The graphic components will get resized but fonts give problem.
what's the size of the bootstrap code for cairngorm framework which is based on flex?
View 1 RepliesI'm trying to attach clips based on elements in an array. then when all the clips are attached, i'm using setinterval to have the attached clips slide onto the stage and stop in a row.the name of the dyamically attached clip isn't tracing in my function (the one with interval set).
Code:
stop();
import mx.transitions.Tween;
import mx.transitions.easing.*;[code]...........
I have been looking to scale an object up if it's less than 70-px from the center of the object. I started to use the below and at least the distance was working but when combined with the conditional it all falls apart as the object mousePoint changes rapidly.This works fine when tracing:
ActionScript Code:
var mousePoint:Point = new Point(this.mouseX,this.mouseY);
var mcPoint:Point = new Point(0,0);
[code]....
How can i make a image resize based on the users screen size in flash?
View 4 RepliesI'm using a Coldfusion Dreamweaver template with cfinclude tags. The header contains a flash movie where I'd like to pass 2 variables via a query string to load the correct image and menu button based on the variables in the ActionScript.
Example: <param name="movie" value="flash/header_v8.swf?pic=1&button=1" />
pic variable can be 1 - 3 and button variable can be 1 - 7 depending on the each pages body element id. So the logic would be something like this for my flash movie:
if body id =home, then pic=1 and button=1
if body id =about, then pic=current variable and button=2
if body id =page3, then pic=1 variable and button=3
[Code].....
What's the best way to pass these variables depending on the current page body element id?
In general, I haven't yet found a definitive way to get Flex and Spark containers to size themselves relative to their children. I have searched for good documentation for this concept many times but have yet to find anything that sufficiently explains the concepts. A simple example of something I often want to do is to draw a border uniformly around a set of controls. The goal here would be to have all UI elements to size themselves automatically.
<s:BorderContainer>
<s:HGroup>
<s:Label text="l1" />
<s:Label text="very long label 2" />
</s:HGroup>
</s:BorderContainer>
I would want the Labels to size themselves based on the text property, and the HGroup should be as big as needed to contain labels and BorderContainer should only just contain that HGroup. Now the more complicated example that I am working on now. I have a class that extends the BorderContainer. Within the class I create an HGroup with 5 Labels as children of the HGroup. Then the HGroup is added as a child of the ExtendedBorderContainer (using addElement() method).
Then the new class is used in the application as:
<mx:ViewStack>
<s:NavigatorContent>
<my:ExtendedBorderContainer />
</s:NavigatorContent>
<!-- more NavigatorContents here -->
</mx:ViewStack>
I have tried various [max|min]height/width combinations and I can not get the desired layout, which is very tight borders around elements without extraneous space starting from the deepest Label children all the way up to the NavigatorContent.