Flash Component Problem in D11
I have a project where I am using flash component CheckBoxes. I loaded them onto the screen and when I try to make the sprite width of each checkbox wider, the sprite seems to disappear on the stage. If I dont mess with the width, they display just fine and work correctly.
Is this a common error for flash components in director 11? Is it even possible to use lingo to adjust a flash component's sprite width?
BTW - the setting of the Flash Component's sprite width occurs on an exitframe, not on a beginsprite
Any help or info to point me in the right direction woiuld be appreciated.
Thanks guys
I specifically asked you for a file with a single component and a script attached that demonstrated what you were reporting. I asked for this so that I didn't have to waste time wading through extraneous code trying to figure out what was at issue.
Your problem is that when you set the width, the height drops to zero. I don't know why. In a simple test case with a single component and a behavior attached that sets the sprite.width in the #beginSprite handler this doesn't happen - the width changes and the (original) height is maintained. Perhaps it's a consequence of makeScriptedSprite() - possibly because there is no sprite in place to start with, and therefore no original height to maintain.
Here is your script "SetStaticProp" with my amendments:
property pMyLinkInfo
property pSetMyFlashProps
property mySprite
on new me, iNum, bSetProps, lInfo
mySprite = sprite(iNum)
pSetMyFlashProps = bSetProps
pMyLinkInfo = lInfo
return me
end
on endSprite me
mySprite = VOID
end
on exitFrame me
if pSetMyFlashProps = 1 then
mySprite.static = not (pMyLinkInfo.enabled)
mySprite.label = pMyLinkInfo.name
tHeight = mySprite.height
mySprite.width = 160
mySprite.height = tHeight
pSetMyFlashProps = 0
end if
end
and here is the amended fragment from your "Generate Link Instance" parent script:
--****Next Line causes CheckBox to go missing********
-- sprite(CheckBoxSnum).width = 160
myScript = script("SetStaticProp").new( CheckBoxSnum, 1, duplicate(myInfo) )
sprite(CheckBoxSnum).scriptInstanceList.add(myScript)
gItemSelectionList.add(myInfo)
Similar Messages
-
Flash Component Loading Problem
Some times Flash inbuilt Component will not load perfectly. I
checked in Firfox and for Flash Player 9.0.45.0.
And i checked in IE8 and flash player 10 then its working
fine.
And i worked in Flash CS3. So can any body tell me how to
resolve this problem for previous version? atleast it should work
for player 9 and firefoxSergius Lashutka wrote:
> I have an embedded Flash component on my home page.
Unless www. is added to my
> address, this component will not load properly. All the
variables show up as
> "undefined". But if www. is added to my address
"www.sergeglass.com", all is
> well. I really want to fix this to move to the next
thing. Thanks!
>
> Serge
>
Serge,
You need to talk to your host and get them to fix this for
you. All you
need is
http://sergeglass.com redirected
to
http://www.sergeglass.com
Steve -
Animated Flash Component Scaling when used as Button Skin
I am trying to skin the overSkin of a Flex Button component with an animated Flash .swc component. (Actually, an Accordion Header, but for all practical purposes the same.)
All works completely fine, in most cases. The problem I run into is when I have any objects in the Flash animation moving on and off stage. When this happens, although the objects cannot be seen when moved off-stage, the viewable area of the Flash animation scales down in either direction, or both, to make room in the button for the objects off stage.
If I play the animation directly in the application, or a Canvas, everything works fine and no scaling occurs. But for a Button, where I really need it, I get the constant scaling back and forth as the Flash movie runs. This can be REALLY annoying when trying to click on a button! (Or you find that you are no longer "over" the button (because it scaled down) so you get flicker back and forth between the Up and Over states.)
Any ideas on how I can keep this from happening, either on the Flash or Flex side would be much appreciated.
Pertinent Code:
[Bindable]
[Embed(source="assets//btn_StaticHollywood.jpg")]
private var Film:Class;
[Bindable]
[Embed(skinClass="fc.HollywoodWithSearchlights")]
private var FilmOver:Class;
animatedButton.setStyle("upSkin", Film);
animatedButton.setStyle("overSkin", FilmOver);
<mx:Button id="animatedButton" cornerRadius="0" />
Note: I tried all assortments of setting dimensions I believe.
Remember, the Flash component has objects that move in and off the stage from both directions, and this is the cause of the automatic resizing of the Button when it runs.I am assuming that you are using Flex 4 and this does not work. In Flex 4, the default theme used is the "Spark" theme. In Flex 3, we used the "Halo" theme. The Halo theme supports styles like borderStyle, but, the Spark theme does not.
If you want to use these styles, you will need to compile with the Halo theme. You can do this by adding an additional compiler argument -theme=<SDK_DIR>/frameworks/themes/Halo/halo.swc (point to the halo.swc in your SDK installation)
Joan -
Safari freeze on screen with flash component
Our website have a few screens that have embedded flash components. For some reason, on Mac OSX 10.5.x, after accessing a certain screen that has flash component, safari screen freezes (javascript is still functional, but you are unable to navigate away from the screen, reload doesn't help either) on another screen that has embedded flash component. It's reproducible on safari 3.2 and 4.0.1. How to troubleshoot this problem?
Thanks
Message was edited by: Dev B.
Message was edited by: Dev B.Hi
Welcome to Apple Discussions
I suggest posting on the Adobe Flash forums. There, you'll be reaching those employing Flash on their or client web sites. -
Adobe Flash Player Problem: "Movie Not Loaded"
new user to mac.
i'm getting more and more frustrated with this computer.
what's bugging me the most right now is
i am unable to view videos on certain websites.
rather than showing the content,
a white box appears.
when i right click on the white box,
it says "movie not loaded" (in gray) and adobe flash player 9 (in black).
i can't click on the gray line.
when i click on the black line, it brings me to the adobe website and tells me adobe flash player 9 has been successfully installed.
i am fairly sure this has nothing to do with heavy traffic.
any insights on how to resolve this issue?
cheers.Adobe Flash Player Problem
http://www.adobeforums.com -
The documentation for Flash Builder 4 beta says that after opening flash from flash builder, I should click a "done" button in flash and flash should close and what I created in flash should be included as a component or container in Flash Builder. Using the Flash Builder 4 beta on Windows, when I click on the "create in flash" button on the properties panel for either the new flash component or container, Flash CS4 opens, I create something in Flash and no "done" button is present. Nor is anything present in the menus resembling a "done" option. Where is it?
Hi Jeffrey:
Still no done button. Now under commands in Flash I can convert symbols to flex components and containers and these show up in the Flash library.
Thanks:
Jim
Date: Wed, 30 Sep 2009 09:58:10 -0600
From: [email protected]
To: [email protected]
Subject: Where is the "done" button in Flash CS4 when using Flash Builder 4's new flash component or container?
Hi,
You may need to install FlexComponentKit.mxp to your Flash CS4 beforehand.
Jeffrey
Date: Tue, 29 Sep 2009 17:04:36 -0600
From: mailto:[email protected]
To: mailto:[email protected]
Subject: Flex Where is the "done" button in Flash CS4 when using Flash Builder 4's new flash component or container?
I apparently didn't get one. I've looked under various workspace configurations. Another thing that seems odd is that when Flash opens I get the opening panel that allows me to select the type of file and version of AS I want to use. I select new file with AS3. Any ideas on why the "done" button wouldn't be present and if the opening panel is what I should expect on opening Flash after clicking the "create in Flash" button?
>
> -
Sizing a Scene7 flash component
Does anyone know how to size a flash component? I am using the BasicZoom and Flash Flyout Zoom. Both seem to have a ton of unnecessary whitespace around them. I've seen smaller examples, but I haven't been able to figure out how to size them as cq:includes
thanksThe solution I came up with was to override the component and add properties to adjust the size of the Flash canvas and the viewport.
-
Revision: 7765
Author: [email protected]
Date: 2009-06-11 15:58:18 -0700 (Thu, 11 Jun 2009)
Log Message:
Fixing up some copyrights, adding copyrights, and fixing up some legal-eese for the Flash Component Kit For Flex.
Also, updating the MXP to get latest changes to base classes.
QE Notes: -
Doc Notes: -
Bugs: SDK-21670
Reviewer: No one (just header updates)
tests: checkintest (seem to fail due to local changes to ScrollBar, which I'm not checking in here)
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-21670
Modified Paths:
flex/sdk/trunk/frameworks/flash-integration/FlexComponentKit.mxp
flex/sdk/trunk/frameworks/flash-integration/readme.txt
flex/sdk/trunk/frameworks/projects/flash-integration/FlexComponentKit.mxi
flex/sdk/trunk/frameworks/projects/flash-integration/JSFL/Convert Symbol to Flex Component.jsfl
flex/sdk/trunk/frameworks/projects/flash-integration/JSFL/Convert Symbol to Flex Container.jsfl
flex/sdk/trunk/frameworks/projects/flash-integration/JSFL/MakeFlexComponent.jsfl
flex/sdk/trunk/frameworks/projects/flash-integration/readme.txt
flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as
flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as -
Will Apple reject a Flash iPhone app that uses a Flash component? I want to create the app with a Flash plug-in component.
Thanks.I don't understand your explanation.
Is the SWFLoader loading a full SWF or an embedded symbol? What is an invisible mode and how do you know it is in that mode?
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui -
Retrieve changing values from TextInput Flash Component
Hi,
I've been banging my head against the wall with this one....
I've placed aTextInput Flash Component on the stage which
reads/displays a value from an external text file. So far so good.
If I enter new text during run-time - editable is set to true
- the TextInput component updates to reflect what I've typed. BUT,
how do I retrieve that text to a variable? (I need to save the new
value back to the external text file).
Current code:
myfieldtext = sprite(51).text
And eventPassMode is set to passAlways
this retrieves the initial value regardless of what I type.
Any help appreciated!I'm not sure if this all helps, but I had to make a flash
name input box
recently. I was getting all sorts of weird results trying to
get the text
out of flash. It was giving me all the font info etc, and I
just needed the
name. So what I ended up doing is when they were done
entering the text, I
put the text into a variable within flash, then pulled the
data from that
variable rather than striaght out of the text.
in director, in the behaviour attached to the flash sprite:
myText = sprite("nameInput").getVariable( "myNameString",
True)
where the sprite is named "nameInput". It seems better to
name the sprite
and refer to it that way than using the sprite number, such
as sprite(51).
In flash I have the text input field named "textInput", and
the following
code attached to the save button. You may have to use a
different event,
like when they text input loses focus.
on (release) {
var myNameString = "";
myNameString = textInput.text
trace(myNameString)
getURL('event:doEvent,1')
Timm
"tayl" <[email protected]> wrote in message
news:edjutm$ptl$[email protected]..
> Hi,
>
> I've been banging my head against the wall with this
one....
>
> I've placed aTextInput Flash Component on the stage
which reads/displays a
> value from an external text file. So far so good.
>
> If I enter new text during run-time - editable is set to
true - the
> TextInput
> component updates to reflect what I've typed. BUT, how
do I retrieve that
> text
> to a variable? (I need to save the new value back to the
external text
> file).
>
> Current code:
> myfieldtext = sprite(51).text
> And eventPassMode is set to passAlways
>
> this retrieves the initial value regardless of what I
type.
>
> Any help appreciated!
>
>
> -
Strange flashing cursor problem
Hi,
I've just finished installing Vista 32bit on my Macbook Air (1.6) and its working fine apart from one small problem - when starting up it freezes on a black screen with a flashing cursor for 2-4 mins and then will start loading Vista fine. Once in there is no problem and its stable and what not. I have had a look at some on the articles on here and other forums and the flashing cursor problem usually refers to when people try to first install a MS OS and not once one has been installed successfully.
I only have to boot into Vista every now and then and only for a few minutes at a time so I usually spend as much time in Vista as it does loading.
Any help appreciated.General purpose Mac troubleshooting guide:
Isolating issues in Mac OS X
Creating a temporary user to isolate user-specific problems:
Isolating an issue by using another user account
Identifying resource hogs and other tips:
Using Activity Monitor to read System Memory and determine how much RAM is being used
Starting the computer in "safe mode":
Mac OS X: What is Safe Boot, Safe Mode?
To identify potential hardware problems:
Apple Hardware Test
General Mac maintenance:
Tips to keep your Mac in top form
Direct you to the proper forum for MacBook :
MacBook Series Forums
https://discussions.apple.com/community/notebooks?view=discussions
http://www.apple.com/support/macbookpro
Mac OS X Forum
https://discussions.apple.com/community/mac_os?view=discussions
This forum deals with a desktop/tower 65lb Mac Pro
http://www.apple.com/support/macpro
TimeMachine 101
https://support.apple.com/kb/HT1427
http://www.apple.com/support/timemachine
Mac OS X & Mountain Lion Community
https://discussions.apple.com/community/mac_os
https://discussions.apple.com/community/mac_os/os_x_mountain_lion?view=discussio ns
Recovery Mode
http://support.apple.com/kb/HT4718
Unless you did a clean install, and I can't tell what your system maintenance is whether it is what I would do. Backup / clone your system, use ML RECOVERY and erase the system partition and update with just Apple updates, don't restore anything.
Run Apple Hardware Test.
Take it in for a free check and diagnosis. -
Flash player problem after updating to belle on my...
flash player problem after updating to belle on my nokia c7.when I try to play .flv videos screen goes blank as show in image,previously these videos runs fine on symbian anna plz help plz help or tell me the way to downgrade to anna
Attachments:
scr000002.jpg 10 KB1) product code 059B7W0
2) software version 111.030.0609
3) it is actually stored .flv files on my phone workes fine on symbian anna
Attachments:
Scr000003.jpg 17 KB
Scr000004.jpg 15 KB -
Integrate flash component into JSP page
Hi,
I need to integrate a flash component into my JSP page. flash component is used to put signature via mouse drag. the signature that is put should be captured and stored in DB. can anyone help me how to do it. Thanks in advance...I thought about including it in an outputText tag but i never tried it because the output text shouldn't be rendered as html code (by definition).
Thank you for your brilliant solution, it works fine now. -
I succesfully installed the flash component kit.
unfortunately the "make flex component" menu is not added. The only
thing I found was (right click on movie in Library) "export swc".
Could it be, that it won't work with the German Flash Version?
regards - mI succesfully installed the flash component kit.
unfortunately the "make flex component" menu is not added. The only
thing I found was (right click on movie in Library) "export swc".
Could it be, that it won't work with the German Flash Version?
regards - m -
pixelation problems occurs in my videos when using adobe flash but using chromes pepper flash no problemes so its definitely adobe problems on my WIndows 8.1
Problem is:
Flash Player for IE11 (which is the worst browser ever developed - BAR NONE) is a Microsoft product, when it comes right down to it.
Adobe writes the base code and yes, they do collaborate on updates for it, but the gang in Redmond alter the plug-in and add "proprietary" code before embedding it, and at that point it's "their baby".
There are two (2) registry keys - 1 for 32 bit IE and the other for 64 bit IE, as well as a KB patch that prevent all but the most experienced Windows users from ever touching the Flash Player plug-in for IE. So there's NO WAY you could have done a clean install of the ActiveX plug-in in Windows 8. Unless you're an uber-geek, you can only update it through Windows Update.
WIn 8 is an abomination and IE11 made it worse. IE has always been the "problem child" of browsers, failing to handle CSS, Javascript, some PHP and most design "tweaks" that good webmasters can use with other browsers, trouble free.
I have IE8 on XP, 9 on VIsta, 11 on 7, 10 on 8 and 11 on 8.1... but they're all for testing only. I'd have to be out of my mind to ever think of using IE as my primary browser. ActiveX controls have to be disabled formost stuff and that opens millions of security holes in IE.
You've got a good video card and a decent sound card. It's a shame to waste them on a pile of garbage like IE, just because it came with Windows.
Maybe you are looking for
-
Report for loans given to customer
hi to all, i m new to abap, i have requirement for developing a report that list loans given to customer.im unable to find table for loans please help me out .its very very urgent.
-
Include LabVIEW Run-Time Engine in C# Project Distribution
I have written a software package in Visual Studio using C# which calls a number of functions from a dll which I have built in LabVIEW. I am now trying to produce an installation program for my C# package but can't quite work out how to include the L
-
How to use IWEB for multiple websites?
Okay. I have two websites. One on a 3rd party, one on .MAC. Computer 1 = .MAC website Computer 2= 3rd party website I want to use computer 2 to edit my .MAC website and moved the DOMAIN file but haven't open it in iWEB on the second computer as I nee
-
Events created on iPhone don't appear in iCal on my computer...
...but events created on the computer do appear on the iPhone. I'm using iCloud and other functions (e.g. Photo Stream) work fine. I've browsed the community for suggestions, but keep ending up reading articles from 2007 or 2008. Thanks in advance
-
Publish Handouts in Word 2007 not working
Our office recently upgraded to Word 2007 and now I am unable to publish Word handouts in Captivate. I have tried both Captivate 2 and 3, and neither work. I get the following message: An error was encountered while publishing to Word. Please check a