You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Justin Mclean (Commented) (JIRA)" <ji...@apache.org> on 2012/02/14 07:10:59 UTC

[jira] [Commented] (FLEX-15) Change build script to download specified version of playerglobal.swc

    [ https://issues.apache.org/jira/browse/FLEX-15?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207537#comment-13207537 ] 

Justin Mclean commented on FLEX-15:
-----------------------------------

Patch to download correct player global.swc. Tested and works for version 11.0 and 10.3.

Does anyone know the paths for 11.1 and 10.2 version of the playerglobal.swc?
They are not:
http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_1.swc
http://fpdownload.macromedia.com/pub/flashplayer/updaters/10/playerglobal10_2.swc


### Eclipse Workspace Patch 1.0
#P Apache Flex SVN
Index: whiteboard/frameworks/build_framework.xml
===================================================================
--- whiteboard/frameworks/build_framework.xml	(revision 1243413)
+++ whiteboard/frameworks/build_framework.xml	(working copy)
@@ -49,7 +49,9 @@
     <property name="mobiletheme.dir" value="${projects.dir}/mobiletheme"/>
     <property name="wireframe.dir" value="${projects.dir}/wireframe"/>
     <property name="compc.jvm.args" value="-Xmx384m" />
-    <property name="playerglobal.version" value="11.1"/>
+	<property name="playerglobal.majorversion" value="11" />
+	<property name="playerglobal.minorversion" value="1" />
+    <property name="playerglobal.version" value="${playerglobal.majorversion}.${playerglobal.minorversion}"/>
     
     <taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar"/>
 
@@ -678,7 +680,7 @@
     <!-- Because this requires a network connection it copies playglobal.swc only if it doesn't already exist. -->
     <target name="playerglobal-download" depends="playerglobal-check" unless="playerglobal.swc.present" description="Copies playerglobal.swc from the Adobe website">
         <mkdir dir="${basedir}/libs/player/${playerglobal.version}"/>
-        <get src="http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_0.swc" 
+        <get src="http://fpdownload.macromedia.com/pub/flashplayer/updaters/${playerglobal.majorversion}/playerglobal${playerglobal.majorversion}_${playerglobal.minorversion}.swc" 
             dest="${basedir}/libs/player/${playerglobal.version}/playerglobal.swc" 
             verbose="false"/>
     </target>

                
> Change build script to download specified version of playerglobal.swc
> ---------------------------------------------------------------------
>
>                 Key: FLEX-15
>                 URL: https://issues.apache.org/jira/browse/FLEX-15
>             Project: Apache Flex
>          Issue Type: Sub-task
>            Reporter: Justin Mclean
>            Assignee: Bertrand Delacretaz
>            Priority: Minor
>
> Current build_framework.xml script hard codes the global player swc version that it downloads. It should download the correct version based on player version property in the build file.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Re: [jira] [Commented] (FLEX-15) Change build script to download specified version of playerglobal.swc

Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,

Perhaps Apache can host "official" versions of playerglobal.swc or they could be placed in SVN (we would need 10.2,10.3.11.0 (same as 11.1), 11.1 and soon 11.2). I'm not 100% sure but think I saw that while binary files in SVN in general are not allowed 3rd part files are allowed under some conditions? What would we need to do in order to get this to happen?

Thanks,
Justin

Re: [jira] [Commented] (FLEX-15) Change build script to download specified version of playerglobal.swc

Posted by Andras Csizmadia <an...@vpmedia.eu>.
11.1 SDK uses 11.0 playerglobal.swc -> I can confirm this.

And I think the player global 10.2 SWC is not available as a direct download 
only 10.3, you have to download older version of Flex SDK.

fyi: Flash Player archive is here, but the packages are not containing SWC 
files (they should be..)
http://kb2.adobe.com/cps/142/tn_14266.html


Best,
Andrew


-----Original Message----- 
From: Justin Mclean
Sent: Tuesday, February 14, 2012 11:23 PM
To: flex-dev@incubator.apache.org
Subject: Re: [jira] [Commented] (FLEX-15) Change build script to download 
specified version of playerglobal.swc

Hi,

After a little further research it seems that the 11.1 SDK uses the 11.0 
playerglobal.swc and there isn't a 11.1 playerglobal.swc. Can anyone confirm 
this?

Does anyone know if there is an official URL for the 10.2 playerglobal.swc?

Thanks,
Justin

On 14/02/2012, at 7:31 PM, Justin Mclean wrote:

> Hi,
>
> Flex-confg.xml has hard coded the Flash version number and the swf version 
> number. This file is included by build_framework.xml.
>
> The hard coded Flash version number can be easily fixed by changing this 
> (around line 22):
> <target-player>11.1</target-player>
> to
> <target-player>{targetPlayerMajorVersion}.{targetPlayerMinorVersion}</target-player>
>
> The hard coded swf version is a little harder to fix. The only way I see 
> around it is to have a flex-config.xml for each version eg a 
> flex-configXX.Y.xml were XX.Y is one of 10.2,10.3,11.0,11.1 and 11.2  and 
> change the build_framework.xml to include the correct version like so 
> (around line 323):
> <load-config 
> filename="${basedir}/flex-config${playerglobal.version}.xml"/>
> instead of
> <load-config filename="${basedir}/flex-config.xml"/>
>
> If the extra dot in the file name offends anyone it can be changed to a 
> "-" or a "_".
>
> Does anyone have any other ideas? It does seem to duplicate a lot of 
> information
>
> I'm fairly certain teh swf version which correspond to the Flash Player 
> version are:
> Flash Player 10.2 = swf version 11
> Flash Player 10.3 = swf version 12
> Flash Player 11.0 = swf version 13
> Flash Player 11.1 = swf version 14
> Flash Player 11.2 = swf version 15
>
> Anyone know anything different re swf version number vs flash player 
> numbers?
>
> Thanks,
> Justin 


Re: [jira] [Commented] (FLEX-15) Change build script to download specified version of playerglobal.swc

Posted by David Francis Buhler <da...@gmail.com>.
Seems right.

http://www.adobe.com/support/flashplayer/downloads.html#fp11

To test the 11.1 APIs, the playerglobal.swc the link points to is 11.0

On Tue, Feb 14, 2012 at 5:23 PM, Justin Mclean <ju...@classsoftware.com>wrote:

> Hi,
>
> After a little further research it seems that the 11.1 SDK uses the 11.0
> playerglobal.swc and there isn't a 11.1 playerglobal.swc. Can anyone
> confirm this?
>
> Does anyone know if there is an official URL for the 10.2 playerglobal.swc?
>
> Thanks,
> Justin
>
> On 14/02/2012, at 7:31 PM, Justin Mclean wrote:
>
> > Hi,
> >
> > Flex-confg.xml has hard coded the Flash version number and the swf
> version number. This file is included by build_framework.xml.
> >
> > The hard coded Flash version number can be easily fixed by changing this
> (around line 22):
> > <target-player>11.1</target-player>
> > to
> >
> <target-player>{targetPlayerMajorVersion}.{targetPlayerMinorVersion}</target-player>
> >
> > The hard coded swf version is a little harder to fix. The only way I see
> around it is to have a flex-config.xml for each version eg a
> flex-configXX.Y.xml were XX.Y is one of 10.2,10.3,11.0,11.1 and 11.2  and
> change the build_framework.xml to include the correct version like so
> (around line 323):
> > <load-config
> filename="${basedir}/flex-config${playerglobal.version}.xml"/>
> > instead of
> > <load-config filename="${basedir}/flex-config.xml"/>
> >
> > If the extra dot in the file name offends anyone it can be changed to a
> "-" or a "_".
> >
> > Does anyone have any other ideas? It does seem to duplicate a lot of
> information
> >
> > I'm fairly certain teh swf version which correspond to the Flash Player
> version are:
> > Flash Player 10.2 = swf version 11
> > Flash Player 10.3 = swf version 12
> > Flash Player 11.0 = swf version 13
> > Flash Player 11.1 = swf version 14
> > Flash Player 11.2 = swf version 15
> >
> > Anyone know anything different re swf version number vs flash player
> numbers?
> >
> > Thanks,
> > Justin
>
>

Re: [jira] [Commented] (FLEX-15) Change build script to download specified version of playerglobal.swc

Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,

After a little further research it seems that the 11.1 SDK uses the 11.0 playerglobal.swc and there isn't a 11.1 playerglobal.swc. Can anyone confirm this?

Does anyone know if there is an official URL for the 10.2 playerglobal.swc?

Thanks,
Justin

On 14/02/2012, at 7:31 PM, Justin Mclean wrote:

> Hi,
> 
> Flex-confg.xml has hard coded the Flash version number and the swf version number. This file is included by build_framework.xml.
> 
> The hard coded Flash version number can be easily fixed by changing this (around line 22):
> <target-player>11.1</target-player>
> to
> <target-player>{targetPlayerMajorVersion}.{targetPlayerMinorVersion}</target-player>
> 
> The hard coded swf version is a little harder to fix. The only way I see around it is to have a flex-config.xml for each version eg a flex-configXX.Y.xml were XX.Y is one of 10.2,10.3,11.0,11.1 and 11.2  and change the build_framework.xml to include the correct version like so (around line 323):
> <load-config filename="${basedir}/flex-config${playerglobal.version}.xml"/>
> instead of
> <load-config filename="${basedir}/flex-config.xml"/>
> 
> If the extra dot in the file name offends anyone it can be changed to a "-" or a "_".
> 
> Does anyone have any other ideas? It does seem to duplicate a lot of information
> 
> I'm fairly certain teh swf version which correspond to the Flash Player version are:
> Flash Player 10.2 = swf version 11
> Flash Player 10.3 = swf version 12
> Flash Player 11.0 = swf version 13
> Flash Player 11.1 = swf version 14
> Flash Player 11.2 = swf version 15
> 
> Anyone know anything different re swf version number vs flash player numbers?
> 
> Thanks,
> Justin


Re: [jira] [Commented] (FLEX-15) Change build script to download specified version of playerglobal.swc

Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,

Flex-confg.xml has hard coded the Flash version number and the swf version number. This file is included by build_framework.xml.

The hard coded Flash version number can be easily fixed by changing this (around line 22):
<target-player>11.1</target-player>
to
<target-player>{targetPlayerMajorVersion}.{targetPlayerMinorVersion}</target-player>

The hard coded swf version is a little harder to fix. The only way I see around it is to have a flex-config.xml for each version eg a flex-configXX.Y.xml were XX.Y is one of 10.2,10.3,11.0,11.1 and 11.2  and change the build_framework.xml to include the correct version like so (around line 323):
<load-config filename="${basedir}/flex-config${playerglobal.version}.xml"/>
instead of
<load-config filename="${basedir}/flex-config.xml"/>

If the extra dot in the file name offends anyone it can be changed to a "-" or a "_".

Does anyone have any other ideas? It does seem to duplicate a lot of information

I'm fairly certain teh swf version which correspond to the Flash Player version are:
Flash Player 10.2 = swf version 11
Flash Player 10.3 = swf version 12
Flash Player 11.0 = swf version 13
Flash Player 11.1 = swf version 14
Flash Player 11.2 = swf version 15

Anyone know anything different re swf version number vs flash player numbers?

Thanks,
Justin