ActionScript 2.0 :: Swf Gets Shrunk When Loaded In Container?

Jan 22, 2010

scrolling TN that I purchased for $10. I want to create many different galleries (many swfs) using this XML gallery and then load them into a container inside a "master gallery swf" if that makes sense.The problem I am having is that the swfs are getting re-sized smaller when loaded in the container (maybe 70% of the original size) even though the container and swfs have the same dimensions.I've actually had this problem before where a swf displays smaller, even if it's just inserted into an HTML page. I'm wondering if there is a simple solution

View 0 Replies


Similar Posts:


ActionScript 2.0 :: Image Pixelation When Shrunk (even With Smoothing)

Apr 25, 2008

I have some high res images that I am zooming in and out of, I have smoothing enabled that works fine when zooming in on the image, but when I zoom out and make the image smaller it pixelates it really badly. Is there any way i can resample the image or make the smoothing better when the image is small?

View 3 Replies

ActionScript 3.0 :: Android, Hide Virtual Keyboard But Screen Stays Shrunk?

Dec 23, 2011

In my AIR app, when the virtual keyboard shows up the screen height shrinks. The problem I am having is after the virtual keyboard hides, the screen size stays shrunk and you can see a big black gap under the bottom of the app. The only way to adjust it is to rotate to landscape then back to portrait.
 
This seems to be a glitch with the virtual keyboard and programmers shouldn't be responsible for handling the screen size after it hides.

View 1 Replies

ActionScript 3.0 :: Communication Between Loaded And Container SWF

Jul 18, 2011

I need to communicate from loaded swf to the container swf in AS 3.0. This is the code for document class of loaded swf followed by code for source swf document class. How I can call the method xyz() from the external swf?

ActionScript Code:
package com.scottgmorgan {
import flash.display.Sprite;
public class ExternalMovie extends Sprite {
public function ExternalMovie():void {
Code] .....

View 1 Replies

IDE :: Guestbook Flash & Php Loaded Into Container?

Mar 24, 2009

I used guestbook form here:[URL] and when I load it into a container in the flash website the guestbook doesn't read the data from txt file. It works ok when it's alone.

View 1 Replies

Professional :: Detect The End Of An External Swf Loaded Into A Container

Oct 14, 2010

I have a main swf that will load external swfs into a container. I need to detect the end of the loaded external swf in order to start to load and play a new one into the same container. The problem is that i do not know what the length of the external swfs will be, and will have no control over the development of them, so i cannot place a variable at the end of their animation which would allow me to detect from the main movie its end. I also cannot rely on the _totalFrames property because the loaded swf might not have all the animation inside its main timeline.

View 5 Replies

ActionScript 3.0 :: Check If A Swf Is Standalone Or Loaded By A Container Swf?

Sep 16, 2009

I need a fairly foolproof way to check from a child swf whether it is loaded into a container swf through a loader object or if it is just loaded through html. I would like to do this without requiring a flashvar or any kind of function call from the parent swf that may be there. Any quick and simple solutions? I looked for something with loaderinfo but came up empty.

View 4 Replies

ActionScript 3.0 :: Container Scales Loaded Swf File?

Jul 5, 2010

I have a container on the stage in which a swf is to be loaded when you click a button. This works fine when the content of the .swf being loaded into the container does not have content floating outside of its stage, this is a problem for me because the .swf being loaded in has content that exceeds the width of its stage, but is masked. The masked content on that page will be made visible when the user mouses over the masks. So its essential that the .swf being loaded in exceed the dimensions of its stage.

Initially, when I click a button that is a child to the menu_mc, the swf loads into the container correctly, but when I MOUSE_OUT of the menu_mc the content within the swf scales to reflect any content that exceeds the width of its stage. I'm not sure if this is the result of the way I am the loaded swf. The swf is designed to scale up and down when the user MOUSE_OUT or MOUSE_OVER of the menu. The menu is designed to be hidden when not in use.Here's my code:

ActionScript Code:
import caurina.transitions.*;
import caurina.transitions.properties.DisplayShortcuts;[code].....

Additionally, I ran into a problem when I moused over the buttons that are children to the menu_mc. Whenever I rolled over them the content in the menu would hide itself off stage. So I came up with a solution that may not have been the appropriate course of action, but worked. In the MOUSE_OVER function of the buttons, I provided y coordinates for the other movie clips to prevent them from moving off stage. For the sake of better coding practices, would there have been a much more appropriate coarse of action.

View 0 Replies

ActionScript 3.0 :: Target A MC Being Loaded Into Empty Container?

Oct 1, 2010

I'm trying to somehow target a MC being loaded into an empty container MC. I've tried everything I could think of.

Basically, I'm making a movie editor. Right now clips are added to the stage on initial load, then when they are clicked on they are added to the "reel" and they can be previewed in the order that they are added. Now, I'm trying to get it so that when they are on the "reel" they can be click and dragged and rearranged.

Here's how the clips are added to the stage in a function called loadClips():

ActionScript Code:
addChild(clip1);
clip1.name = "1";

Here's how they are being added to the "reel" in addClips():

ActionScript Code:
if (currentTarget.name == "1")
{
clipCopy = new Clip1();

[Code]....

Now, I just want the clips that are on the reel to be click and drag-able (along the X axis but I'll worry about that later). I realize now they're all being added as clipCopy. That's going to be an issue huh? Is there a way that I can target the container and make that mobile?

View 2 Replies

Loaded Child Movie Controlling Container Parent

May 14, 2009

i'm a designer trying to step up my flash skills and have a scripting problem that's causing me trouble. essentially i have a child swf loaded into a container in a parent swf and want the child to be able to instruct the parent. to explain in full, the child contains an flv with bespoke video player components. it's container sits in one frame of the parent. when the flv finishes playing, i need the parent swf to move onto another frame.
as it's a controllable flv, it isnt possible to predict the exact length of time the child will need to be present, so it literally needs to tell the parent it's finished playing at that very point.

[Code]...

View 9 Replies

Actionscript 3.0 :: Bitmaps Loaded Into A MovieClip Container Are Blurry?

Sep 2, 2009

Running into an issue where the if I add a Bitmap image into a movieclip the bitmap will appear slightly Blurry.When I add the Bitmap directly to the scene it appears normal. Is their a property for a movieclip that would explain this behavior? or is their some other solution to keep bitmaps from becoming blurred?

View 2 Replies

ActionScript 2.0 :: Triggering A Sound Object Once The SWf Is Loaded Into A Container SWF

Jun 23, 2003

I have a created a sound object like so:

//Creating the Sound Object
sliderSound = new Sound();

[Code].....

It works great when viewed. the problem is that when I load this SWF file into an container SWF file (using loadMovie) the sound will not play.

View 1 Replies

ActionScript 2.0 :: Code Which Can Check To See If The Background Swf Is Already Loaded Into Its Container?

Jan 9, 2008

I am creating a site where there is a portfolio section with icons for each piece of artwork.Regardless of which icon 1-10 is clicked, for the first time ONLY, I want to load a swf which "draws in" a portfolio "background", and another swf on a higher level which corresponds to the icon clicked (lets say a sample artwork).

However, if the user has previously clicked another portfolio icon and is currently viewing one of the portfolio pages, there is no need to load the "background" swf again (it would be tedious watching the drawing in animation over again).

I've designated a target container movieclip for each.The icons swf file with the buttons is another swf on the timeline.Is there some code which can check to see if the background swf is already loaded into its container? And in which swf would I attach the code?

View 3 Replies

ActionScript 2.0 :: Targeted MovieClips Do Not Work Once Loaded Into Container

Oct 3, 2002

I have several external SWF (child) movies that are to be loaded upon demand into another SWF container (parent) movie file. Pretty straight forward. Each of the child movies has MCs communicating with other MCs within the same child movie. For instance the timeline of one MC will have a frame action, which targets another MC instance to play(). Again, Pretty straightforward stuff.

These files work beautifully when viewed independently. The problem is when they are loaded into the parent container movie the target MC functionality no longer works. I believe it's because once the child movie is loaded into the parent movie the absolute path of the targeted MC has changed and what was once the '_root' in the child movie is no longer the actual root?

I have tried both methods in the child movie:

//method without using 'with'
_root.ContentWindow.play();
And using the 'with action like so:
//method using 'with
with (_root.ContentWindow) {
play();
}

It would seem that in theory once the Child SWF file is loaded into the Parent SWF file the targeted path would have to have another level in it - cuz now the MC 'ContentWindow' is no longer one level down from the '_root' but two levels?
For example: _root.LoadedChildMovie.ContentWindow.play()

View 3 Replies

Actionscript 3 :: Movieclip Loaded In Container Reports Exaggerated .width Value?

Mar 9, 2010

I am trying to load a swf(as3) into another As3 Swf with the Movieclip loader. After loading however Loader.width/loader.content.width returns an exaggerated value than the actual width of the swf being loaded. Any pointers on where to begin looking for the discrepancy?

More Details (if it helps)

The swf being loaded has UI components like dropdowns, input boxes and combo boxes (its a Form to fill up), and a coded one-time tween. When the child MC loads into the parent movieclip, the Loader.width value returned is exaggerated by about 28 pixels (although the height remains the same). Loader.content.width also returns a 28 pixel exaggerated value. The Exaggerated value is more than even the stage width of the child MC. The extra ~30 px are upsetting subsequent code in the parent movie to scale and center the loaded swf.

update:

stage.stageWidth returns the correct Value.Code used in the parent MC, to load external SWF:

private var deadURL = "child.swf";
private var deadReq:URLRequest = new URLRequest(deadURL);
private var deadLoader:Loader = new Loader();[code].....

View 2 Replies

ActionScript 3.0 :: Place Two Or More Instances Of The Same Loaded From A Loader Bitmap In One Container??

Nov 29, 2009

Is it possible to place two or more instances of the same loaded from a loader Bitmap in one container?

View 1 Replies

ActionScript 2.0 :: Swf Called Main.swf Which Has A Container Movieclip That Gets External Swf's Loaded Into It

Jul 28, 2004

I have one swf called main.swf which has a container movieclip that gets external swf's loaded into it.

my external swf is called hosting and it calls an array of data that is loaded into a movieclip that is duplicate for each element from the database. The elements from the database are as follows:

Business
Economy
Power
Standard

Each one of these has a button over it that when press loads information from the database into a movieclip that contains a textbox. My button code is: _root.movieclip.loadVariables("url to database");

This works flawlessly when I run the hosting.swf by itself, but when it is loaded into the contianer in the main.swf the buttons dont work. I believe that it is the _root in the button call that is causing this but I dont know how to fix it. I think the _root variable changes when hosting is loaded into the main.swf.

View 1 Replies

ActionScript 2.0 :: Scaling Loaded Image Or Movie In Flash Container

Oct 11, 2010

I need to scale the loaded image or movie in a flash container without loss of quality, how to do it?

View 1 Replies

ActionScript 3.0 :: Error #1065: Variable Undefinedpath To Container Mc In Loaded Swf Not Recognised

Jun 23, 2009

One movie, named Gallery_1, with hotpots via which external swfs are loaded into a container mc of the main timeline of the Gallery_1 movie, works perfectly by now. Via another button function the Gallery_1.swf is loaded into a container mc on the timeline of the main swf, which works alright as well, but when one then clicks the hotspots of the Gallery_1.swf one gets following error message:

[Code]...

View 1 Replies

ActionScript 3.0 :: Error #1065: Variable Undefined, Path To Container Mc In Loaded Swf Not Recognized

Jun 23, 2009

One movie, named Gallery_1, with hotpots via which external swfs are loaded into a container mc of the main timeline of the Gallery_1 movie,

Via another button function the Gallery_1.swf is loaded into a container mc on the timeline of the main swf, which works alright as well, but when one then clicks the hotspots of the Gallery_1.swf one gets following error message:

ReferenceError: Error #1065: Variable GallerySite not defined.
at HotSpot1/PictureLoad()
at HotSpot1/PictureCall()

[code]....

The traces in the eventHandler function work alright.I wildly imported all relevant classes I could think of, e.g. the GallerySite class to the WebSite class and vice versa, and tried various variable definitions, but am at a loss by now as to where to define the GallerySite variable.

View 3 Replies

Flex :: Prevent Container In ItemRenderer From Exceeding Width Of List Container?

Jul 2, 2011

In a Flex Mobile project I have a simple itemRenderer where I'm trying to create an "bubble" texting effect, similar to ichat or iphone (just so you get what im going for). But if the text is longer than the screen it runs off, rather than just going down a line.

If I set Group thats holding the rectangle(to create the bubble effect) and the label to 100% it works and keeps it from exceeding the list containers bounds, BUT the group is always at 100% and looks bad, I'm trying to keep the "bubble" JUST AROUND the text.

Anyway so, at the top of my itemRenderer I tried specifying:

<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" width="100%" height="100%">

And here's my layout I figured since msg_container has a width of 100% I was hoping bubble_lable_group would just not exceed that but...it doesnt...it just runs off. I tried setting a max width but that does not allow you to input percents. And just to say it 1 more time. I know if i set bubble_lable_group width to 100% it works, and keeps it from going off the edge, but then the rectangle "bubble" stretches all the way across and just looks bad.

<s:VGroup id="main_container" horizontalAlign="left" paddingBottom="10" paddingTop="10"
verticalAlign="top" width="100%">

[Code]....

View 1 Replies

Professional :: Run Project (main Container SWF And Child SWFs) Into Another Container File Which Place On A Website?

Jun 17, 2010

I am facing a issue in Flash container. I am having a project which has main container which call different SWFs into it. Now I call this main container file into another container, and their problem starts. Many option doesn't work properly which generally have _root, _parent etc...
 
If I want to run project (main container SWF and child SWFs) into another container file which place on a website. I want to show whole project from this container file so what I need to do?

View 1 Replies

ActionScript 2.0 :: Targetting A Movie Clip - Loaded Into A Container Clip From Main Timeline

Nov 24, 2005

I am targeting a a movie clip. The problem is that all the syntax I have found for targetting clips looks like this: _root.sample_mc.sample2.mc. etc. The problem is, my target clip is in an swf that I've loaded into a container clip from my main timeline. So, essentially, I have a home.swf that loads menu.swf into a container called 'location'. In menu.swf, I have an MC called center, which contains the MC I am targetting called 'target'.

View 2 Replies

ActionScript 2.0 :: Is A Swf Loaded In The "content" Container That's NOT The The Swf Want To Load

Dec 18, 2003

1. If there is a swf loaded in the "content" container that's NOT the the swf I want to load

2. If there is one, then to play it's "end"ing label (which is an animation followed by an unloadMovie command)

3. and then finally load the swf that I DO want..

Here's the script that I came up with... But I have a feeling that it's not right (mainly because it doesn't work) But I do think that I'm going in the right direction.. This would be the script for the "message" button:

[Code]....

View 6 Replies

Flex :: Dynamically Adding Container To A Dynamic Container

Sep 21, 2011

I have a loop that goes through data from a book and displays it. The book is not consistent in it's layout so I am trying to display it in two different ways. First way(works fine) is to load the text from that section in to a panel and display it. The second way is to create a new panel (panel creates fine) and then add collapsable panels(nested) to that panel. Here is the code from the else loop.

else if (newPanel == false){
// simpleData is just for the title bar of the new panel
// otherwise the panel has no content

[Code]....

The error I get is: ReferenceError: Error #1069: Property panel4.4 not found on components.readTest and there is no default value.

I have tried setting the "name" property instead of the "id" property.

View 1 Replies

Flex - Hide Container Of A Viewstack Container?

Dec 23, 2010

I have a viewstack container w/ 3 views: red, black, and blue. How can I completely hide the black & not include it?

[Code]...

View 2 Replies

Flex :: Drag Circle From One Container To Another Container?

Jan 13, 2012

I am creating an flex Air project,so mxml file will run. I have circles in one Big circle at one side and will be same on other side.

Now how to drag any circle from any Big circle to other side. Or it could be like any two container having circles, then how to drag and drop circle?

For one circle i am able to do drag and drop.But I want one Big circle on left hand side and one big circle on right hand side .And small circles with class names will be in these big circles.Now i want to drag and drop those small circles in big circles.Big cicles should not move. Even i have tried this code in actionscript

package
{
import flash.display.Sprite;
import flash.events.MouseEvent;

[Code].....

But in this i want big circles should not move and small circles should only be dragged.

View 1 Replies

ActionScript 3.0 :: Scale Container In Another Variable Container?

May 6, 2010

I need to place an image into a container. The problem is that I will not know the size of the image or the container beforehand, so it all has to be dynamic.this is how I started (have not gotten to stage(or container) changing size yet. No matter what I try, either all the images are the same width, or they are all the same height. If some images are portrait and other landscape, I don't want all the images to be X pixels high. In this variation of the code, all the images turn out the same height, regardless of portrait or landscape.

ActionScript Code:
var ratio:Number = container.width/container.height;//get the ratio, if width is bigger than height then ratio is greater than 1, else ratio is smaller than 1

[code]........

View 0 Replies

Flex :: Moving Children Of A Container (defined In MXML) Inside An "inner Container"

Jan 27, 2010

I'm currently working on a custom component which extends Canvas (let's call it SuperCanvas) ; it's basically a container that let you zoom & pan its contents. It would be too long to explain why, but I can't use scrollRect, so I was forced to declare a Canvas object (called innerCanvas)... inside my SuperCanvas (I know, not very nice =/) I would like to know if there's a proper way to "redirect" the creation of my component's children in this canvas.

[Code]...

View 1 Replies

ActionScript 2.0 :: Flash Container Within A Flash Container

May 19, 2009

i have a flash document with buttons along the top which when clicked display different flash documents below in a container.. now one of these which gets displayed has 2 buttons on the side next to them another container and within that container you get 2 different documents displayed depending on which button you click on the side.

so i have managed to get it so you have the first document displayed within the second container with the buttons to the side, however when you click one of those side buttons to view the second document it appears to display it in the first container as the buttons that were next to it have now gone.. i've tried changing the names of each container so they wouldn't get confused with each other but that seemed to cause it not to work at all.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved